Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
andydandy74 committed Nov 9, 2024
1 parent 1ce2890 commit 961ccc6
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions nodes/3.x/Sheet.Scale.dyf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
"Sheet": {
"Key": "Revit.Elements.Views.Sheet",
"Value": "RevitNodes.dll"
},
"Revit.Elements.Views.Sheet": {
"Key": "Revit.Elements.Views.Sheet",
"Value": "RevitNodes.dll"
}
}
},
Expand All @@ -21,7 +25,7 @@
"Parameter": {
"Name": "sheet",
"TypeName": "Revit.Elements.Views.Sheet",
"TypeRank": 0,
"TypeRank": -1,
"DefaultValue": null,
"Description": ""
},
Expand All @@ -39,7 +43,7 @@
}
],
"Replication": "Disabled",
"Description": "A function parameter, use with custom nodes.\r\n\r\nYou can specify the type and default value for parameter. E.g.,\r\n\r\ninput : var[]..[]\r\nvalue : bool = false"
"Description": "Ein Funktionsparameter zur Verwendung mit benutzerdefinierten Blöcken.\r\n\r\nSie können den Typ und den Vorgabewert für den Parameter angeben, z. B.\r\n\r\ninput : var[]..[]\r\nvalue : bool = false"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore",
Expand All @@ -60,12 +64,13 @@
],
"Outputs": [],
"Replication": "Disabled",
"Description": "A function output, use with custom nodes"
"Description": "Eine Funktionsausgabe zur Verwendung mit benutzerdefinierten Blöcken"
},
{
"ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
"NodeType": "PythonScriptNode",
"Code": "import clr\r\nclr.AddReference('RevitAPI')\r\nfrom Autodesk.Revit.DB import *\r\n\r\ndef GetViewScale(view):\r\n\tif hasattr(view, \"Scale\"): return view.Scale\r\n\telse: return None\r\n\r\nviews = UnwrapElement(IN[0])\r\nif isinstance(IN[0], list): OUT = [GetViewScale(x) for x in views]\r\nelse: OUT = GetViewScale(views)",
"Code": "import clr\r\nclr.AddReference('RevitAPI')\r\nfrom Autodesk.Revit.DB import *\r\n\r\ndef GetSheetScale(sheet):\r\n\tif hasattr(sheet, \"Scale\"): return sheet.get_Parameter(BuiltInParameter.SHEET_SCALE).AsValueString()\r\n\telse: return None\r\n\r\nsheets = UnwrapElement(IN[0])\r\nif isinstance(IN[0], list): OUT = [GetSheetScale(x) for x in sheets]\r\nelse: OUT = GetSheetScale(sheets)",
"Engine": "CPython3",
"VariableInputPorts": true,
"Id": "a00ac6ded7a945eebeb898bffd31745d",
"Inputs": [
Expand All @@ -91,7 +96,7 @@
}
],
"Replication": "Disabled",
"Description": "Runs an embedded IronPython script."
"Description": "Führt ein eingebettetes Python-Skript aus."
}
],
"Connectors": [
Expand All @@ -108,18 +113,19 @@
],
"Dependencies": [],
"NodeLibraryDependencies": [],
"Author": "None provided",
"Bindings": [],
"View": {
"Dynamo": {
"ScaleFactor": 1.0,
"HasRunWithoutCrash": false,
"IsVisibleInDynamoLibrary": true,
"Version": "2.6.1.8786",
"Version": "2.12.1.8246",
"RunType": "Manual",
"RunPeriod": "1000"
},
"Camera": {
"Name": "Background Preview",
"Name": "Hintergrundvorschau",
"EyeX": -17.0,
"EyeY": 24.0,
"EyeZ": 50.0,
Expand Down Expand Up @@ -163,8 +169,8 @@
}
],
"Annotations": [],
"X": 136.131221049167,
"Y": 402.700063131834,
"Zoom": 1.12516208312547
"X": -224.89252674938305,
"Y": 373.41468576967708,
"Zoom": 1.2137055604400553
}
}

0 comments on commit 961ccc6

Please sign in to comment.