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 b7eca1c commit c3bc421
Show file tree
Hide file tree
Showing 7 changed files with 288 additions and 270 deletions.
35 changes: 19 additions & 16 deletions nodes/3.x/View.ConvertTemporaryHideIsolateToPermanent.dyf
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,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,7 +60,7 @@
],
"Outputs": [],
"Replication": "Disabled",
"Description": "A function output, use with custom nodes"
"Description": "Eine Funktionsausgabe zur Verwendung mit benutzerdefinierten Blöcken"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore",
Expand All @@ -81,12 +81,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\nclr.AddReference(\"RevitServices\")\r\nimport RevitServices\r\nfrom RevitServices.Persistence import DocumentManager\r\nfrom RevitServices.Transactions import TransactionManager\r\n\r\ndef TempHideIsolateToPerm(view):\r\n\ttry:\r\n\t\tview.ConvertTemporaryHideIsolateToPermanent()\r\n\t\treturn True\r\n\texcept: return False\r\n\r\ndoc = DocumentManager.Instance.CurrentDBDocument\r\nviews = UnwrapElement(IN[0])\r\n\r\nTransactionManager.Instance.EnsureInTransaction(doc)\r\nif isinstance(IN[0], list): OUT = [TempHideIsolateToPerm(x) for x in views]\r\nelse: OUT = TempHideIsolateToPerm(views)\r\nTransactionManager.Instance.TransactionTaskDone()",
"Engine": "CPython3",
"VariableInputPorts": true,
"Id": "c70fe12573c54797a3ff23934222aba7",
"Inputs": [
Expand All @@ -112,7 +113,7 @@
}
],
"Replication": "Disabled",
"Description": "Runs an embedded IronPython script."
"Description": "Führt ein eingebettetes Python-Skript aus."
}
],
"Connectors": [
Expand All @@ -133,18 +134,20 @@
}
],
"Dependencies": [],
"NodeLibraryDependencies": [],
"Author": "None provided",
"Bindings": [],
"View": {
"Dynamo": {
"ScaleFactor": 1.0,
"HasRunWithoutCrash": false,
"IsVisibleInDynamoLibrary": true,
"Version": "2.0.1.5055",
"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 All @@ -157,49 +160,49 @@
},
"NodeViews": [
{
"ShowGeometry": true,
"Name": "Input",
"Id": "de36aed23fbe431b992d3347f37d5570",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Input",
"ShowGeometry": true,
"Excluded": false,
"X": 72.5,
"Y": 65.7891674238156
},
{
"ShowGeometry": true,
"Name": "Output",
"Id": "3c4a3b2f907e4868a06d72623db07c60",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Output",
"ShowGeometry": true,
"Excluded": false,
"X": 459.5,
"Y": 23.7891674238156
},
{
"ShowGeometry": true,
"Name": "Output",
"Id": "eaf78ea2fbd344b59b14bcaf5f5aed0a",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Output",
"ShowGeometry": true,
"Excluded": false,
"X": 459.5,
"Y": 107.789167423816
},
{
"ShowGeometry": true,
"Name": "Python Script",
"Id": "c70fe12573c54797a3ff23934222aba7",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Python Script",
"ShowGeometry": true,
"Excluded": false,
"X": 235.5,
"Y": 107.789167423816
}
],
"Annotations": [],
"X": 515.358954652376,
"Y": 402.331394628425,
"X": -39.041045347623935,
"Y": 228.731394628425,
"Zoom": 1.53934758073422
}
}
53 changes: 28 additions & 25 deletions nodes/3.x/View.DisableTemporaryHideIsolate.dyf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
"NodeType": "PythonScriptNode",
"Code": "import clr\r\nclr.AddReference('RevitAPI')\r\nfrom Autodesk.Revit.DB import *\r\n\r\nclr.AddReference(\"RevitServices\")\r\nimport RevitServices\r\nfrom RevitServices.Persistence import DocumentManager\r\nfrom RevitServices.Transactions import TransactionManager\r\n\r\ndoc = DocumentManager.Instance.CurrentDBDocument\r\nview = UnwrapElement(IN[0])\r\nTransactionManager.Instance.EnsureInTransaction(doc)\r\ntry:\r\n\tif view.IsTemporaryHideIsolateActive() == True:\r\n\t\tview.DisableTemporaryViewMode(TemporaryViewMode.TemporaryHideIsolate)\r\n\t\tOUT = (view,True)\r\n\telse: OUT = (view, False)\r\nexcept: OUT = (view, False)\r\nTransactionManager.Instance.TransactionTaskDone()",
"Engine": "CPython3",
"VariableInputPorts": true,
"Id": "36d4220c566a42438ddec1fbb15b490d",
"Inputs": [
Expand All @@ -44,7 +45,7 @@
}
],
"Replication": "Disabled",
"Description": "Runs an embedded IronPython script."
"Description": "Führt ein eingebettetes Python-Skript aus."
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Symbol, DynamoCore",
Expand All @@ -70,7 +71,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 @@ -91,7 +92,7 @@
],
"Outputs": [],
"Replication": "Disabled",
"Description": "A function output, use with custom nodes"
"Description": "Eine Funktionsausgabe zur Verwendung mit benutzerdefinierten Blöcken"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
Expand All @@ -102,7 +103,7 @@
{
"Id": "4602a1080c8741258856e9ca7416ee4f",
"Name": "list",
"Description": "List to get the first item from.\n\nvar[]..[]",
"Description": "Liste, deren erstes Element abgerufen werden soll\n\nvar[]..[]",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand All @@ -113,15 +114,15 @@
{
"Id": "ae265406ac6045aaa40b1c469a9bfcb7",
"Name": "item",
"Description": "First item in the list.",
"Description": "Das erste Element in der Liste",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "Returns the first item in a list.\n\nList.FirstItem (list: var[]..[]): var[]..[]"
"Description": "Gibt das erste Element in einer Liste zurück.\n\nList.FirstItem (list: var[]..[]): var[]..[]"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
Expand All @@ -132,7 +133,7 @@
{
"Id": "a5a9a15f827d4ceb950fbe7b493baac0",
"Name": "list",
"Description": "List to get the last item of.\n\nvar[]..[]",
"Description": "Liste, deren letztes Element abgerufen werden soll\n\nvar[]..[]",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand All @@ -142,16 +143,16 @@
"Outputs": [
{
"Id": "34d2bb6d912e419b9ce36936babca7eb",
"Name": "last",
"Description": "Last item in the list.",
"Name": "item",
"Description": "Das letzte Element in der Liste",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "Retrieves the last item in a list.\n\nList.LastItem (list: var[]..[]): var[]..[]"
"Description": "Ruft das letzte Element in einer Liste ab.\n\nList.LastItem (list: var[]..[]): var[]..[]"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore",
Expand All @@ -172,7 +173,7 @@
],
"Outputs": [],
"Replication": "Disabled",
"Description": "A function output, use with custom nodes"
"Description": "Eine Funktionsausgabe zur Verwendung mit benutzerdefinierten Blöcken"
}
],
"Connectors": [
Expand Down Expand Up @@ -203,18 +204,20 @@
}
],
"Dependencies": [],
"NodeLibraryDependencies": [],
"Author": "None provided",
"Bindings": [],
"View": {
"Dynamo": {
"ScaleFactor": 1.0,
"HasRunWithoutCrash": false,
"IsVisibleInDynamoLibrary": true,
"Version": "2.0.1.5055",
"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 All @@ -227,61 +230,61 @@
},
"NodeViews": [
{
"ShowGeometry": true,
"Name": "Python Script",
"Id": "36d4220c566a42438ddec1fbb15b490d",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Python Script",
"ShowGeometry": true,
"Excluded": false,
"X": 104.0,
"Y": 135.878122535377
},
{
"ShowGeometry": true,
"Name": "Input",
"Id": "3db5f638e94142e68df91e5e083e94b2",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Input",
"ShowGeometry": true,
"Excluded": false,
"X": -59.0,
"Y": 135.878122535377
},
{
"ShowGeometry": true,
"Name": "Output",
"Id": "bc7a880a0d9c48a1b73514eecb125d64",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Output",
"ShowGeometry": true,
"Excluded": false,
"X": 591.0,
"Y": 93.8781225353771
},
{
"ShowGeometry": true,
"Name": "List.FirstItem",
"Id": "51657a00ce1a41bba05941fa690c467c",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "List.FirstItem",
"ShowGeometry": true,
"Excluded": false,
"X": 328.0,
"Y": 81.8781225353771
},
{
"ShowGeometry": true,
"Name": "List.LastItem",
"Id": "15ed4d9b6dd54ecb88b8d358452a9848",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "List.LastItem",
"ShowGeometry": true,
"Excluded": false,
"X": 328.0,
"Y": 189.878122535377
},
{
"ShowGeometry": true,
"Name": "Output",
"Id": "ab016141d8474a418f3604b788dbd62d",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Output",
"ShowGeometry": true,
"Excluded": false,
"X": 591.0,
"Y": 177.878122535377
Expand Down
Loading

0 comments on commit c3bc421

Please sign in to comment.