diff --git a/nodes/2.x/Document.SaveAs.dyf b/nodes/2.x/Document.SaveAs.dyf index f49ec8c3..7cd3c1b9 100644 --- a/nodes/2.x/Document.SaveAs.dyf +++ b/nodes/2.x/Document.SaveAs.dyf @@ -23,7 +23,7 @@ "TypeName": "string", "TypeRank": 0, "DefaultValue": null, - "Description": " File path to save to. File extension (*.rvt/*.rfa) will be automatically added." + "Description": " File path to save to. File extension (*.rvt/*.rte/*.rfa/*.rft) will be automatically added." }, "Id": "9b4d59a4daba4f3084c963f270e219f9", "Inputs": [], @@ -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", @@ -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.CodeBlockNodeModel, DynamoCore", @@ -91,7 +91,7 @@ { "Id": "09cd60034bc54e99b24391af402c2f31", "Name": "", - "Description": "Value of expression at line 4", + "Description": "Wert des Ausdrucks in Zeile 4", "UsingDefaultValue": false, "Level": 2, "UseLevels": false, @@ -99,7 +99,7 @@ } ], "Replication": "Disabled", - "Description": "Allows for DesignScript code to be authored directly" + "Description": "Ermöglicht die direkte Erstellung von DesignScript-Code." }, { "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Function, DynamoCore", @@ -111,7 +111,7 @@ { "Id": "6c9eae37fc9145fd9acff64f2f314f63", "Name": "toggle", - "Description": "bool\nDefault value : true", + "Description": "bool\nVorgabewert : true", "UsingDefaultValue": true, "Level": 2, "UseLevels": false, @@ -120,7 +120,7 @@ { "Id": "39242b96aa134e3b8601fcab2b94d608", "Name": "docOrRevitLinkInstance", - "Description": " Use only if you want to query a linked model\n\nvar\nDefault value : null", + "Description": " Use only if you want to query a linked model\n\nvar\nVorgabewert : null", "UsingDefaultValue": true, "Level": 2, "UseLevels": false, @@ -131,7 +131,7 @@ { "Id": "183f2ab035f441048ec2c7bf0caf1df8", "Name": "bool", - "Description": "return value", + "Description": "Rückgabewert", "UsingDefaultValue": false, "Level": 2, "UseLevels": false, @@ -144,7 +144,8 @@ { "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\npath = IN[0]\r\ncompact = IN[1]\r\nnewcentral = IN[2]\r\nisworkshared = IN[3]\r\n\r\nTransactionManager.Instance.ForceCloseTransaction()\r\nif doc.IsFamilyDocument:\r\n\tpath += '.rfa'\r\nelse:\r\n\tpath += '.rvt'\r\nopt = SaveAsOptions()\r\nopt.OverwriteExistingFile = True\r\nopt.Compact = compact\r\nif isworkshared and newcentral:\r\n\twsopt = WorksharingSaveAsOptions()\r\n\twsopt.ClearTransmitted = True\r\n\twsopt.SaveAsCentral = True\r\n\topt.SetWorksharingOptions(wsopt)\r\ntry:\r\n\tdoc.SaveAs(path, opt)\r\n\tOUT = True\r\nexcept:\r\n\ttry:\r\n\t\twsopt.ClearTransmitted = False\r\n\t\topt.SetWorksharingOptions(wsopt)\r\n\t\tdoc.SaveAs(path, opt)\r\n\t\tOUT = True\r\n\texcept:\r\n\t\tOUT = False", + "Code": "import clr\r\nclr.AddReference('RevitAPI')\r\nfrom Autodesk.Revit.DB import *\r\nimport os\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\npath = IN[0]\r\ncompact = IN[1]\r\nnewcentral = IN[2]\r\nisworkshared = IN[3]\r\nastemplate = IN[4]\r\n\r\nTransactionManager.Instance.ForceCloseTransaction()\r\nif doc.IsFamilyDocument:\r\n\tpath += '.rfa'\r\nelse:\r\n\tif astemplate: path += '.rte'\r\n\telse: path += '.rvt'\r\nopt = SaveAsOptions()\r\nopt.OverwriteExistingFile = True\r\nopt.Compact = compact\r\nif isworkshared and newcentral and not astemplate:\r\n\twsopt = WorksharingSaveAsOptions()\r\n\twsopt.ClearTransmitted = True\r\n\twsopt.SaveAsCentral = True\r\n\topt.SetWorksharingOptions(wsopt)\r\ntry:\r\n\tdoc.SaveAs(path, opt)\r\n\tif doc.IsFamilyDocument and astemplate: \r\n\t\tnewpath = path.replace(\".rfa\", \".rft\")\r\n\t\tos.rename(path, newpath)\r\n\tOUT = True\r\nexcept:\r\n\ttry:\r\n\t\twsopt.ClearTransmitted = False\r\n\t\topt.SetWorksharingOptions(wsopt)\r\n\t\tdoc.SaveAs(path, opt)\r\n\t\tOUT = True\r\n\texcept:\r\n\t\tOUT = False", + "Engine": "IronPython2", "VariableInputPorts": true, "Id": "d67d0a3a6284425a9debb2758ca1546e", "Inputs": [ @@ -183,6 +184,15 @@ "Level": 2, "UseLevels": false, "KeepListStructure": false + }, + { + "Id": "dcd63b0dd810461abf5f75a754cd2fde", + "Name": "IN[4]", + "Description": "Input #4", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false } ], "Outputs": [ @@ -197,7 +207,7 @@ } ], "Replication": "Disabled", - "Description": "Runs an embedded IronPython script." + "Description": "Führt ein eingebettetes Python-Skript aus." }, { "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Symbol, DynamoCore", @@ -223,7 +233,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.Symbol, DynamoCore", @@ -233,7 +243,7 @@ "TypeName": "bool", "TypeRank": 0, "DefaultValue": "false", - "Description": " Should the file be saved as a new central file? Will be ignored for non-workshared projects and families" + "Description": " Should the file be saved as a new central file? Will be ignored for templates, non-workshared projects and families" }, "Id": "7ea26bc99f7448f1976d7a771fe73f85", "Inputs": [], @@ -249,7 +259,33 @@ } ], "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.Symbol, DynamoCore", + "NodeType": "InputNode", + "Parameter": { + "Name": "saveAsTemplate", + "TypeName": "bool", + "TypeRank": 0, + "DefaultValue": "false", + "Description": " Should the file be saved as a template?" + }, + "Id": "da5ef522abe54d7eb10692c6f793825a", + "Inputs": [], + "Outputs": [ + { + "Id": "8eed3e834be440248eac964d2ebe2568", + "Name": "", + "Description": "Symbol", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "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" } ], "Connectors": [ @@ -282,23 +318,39 @@ "Start": "b678176aebbf44279069c259704cee16", "End": "f3f58db1c1cc4128a6f90b62d3ca02ff", "Id": "69d774b919214004a43afbb7a11d6eea" + }, + { + "Start": "8eed3e834be440248eac964d2ebe2568", + "End": "dcd63b0dd810461abf5f75a754cd2fde", + "Id": "87d5d4e07c6f41428eeb0a680588ea45" } ], "Dependencies": [ "070f6953-0854-4645-8eb5-9b4663673b79" ], + "NodeLibraryDependencies": [ + { + "Name": "Clockwork for Dynamo 2.x", + "Version": "2.6.0", + "ReferenceType": "Package", + "Nodes": [ + "0c9b683ef90c4e4db6cf3302be082290" + ] + } + ], + "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, @@ -327,8 +379,8 @@ "IsSetAsInput": false, "IsSetAsOutput": false, "Excluded": false, - "X": 1143.5, - "Y": 194.900617473738 + "X": 1185.7357447558782, + "Y": 196.48445790208348 }, { "ShowGeometry": true, @@ -357,8 +409,8 @@ "IsSetAsInput": false, "IsSetAsOutput": false, "Excluded": false, - "X": 921.5, - "Y": 194.900617473738 + "X": 963.73574475587816, + "Y": 196.48445790208348 }, { "ShowGeometry": true, @@ -379,11 +431,21 @@ "Excluded": false, "X": 123.413527828486, "Y": 261.706723992539 + }, + { + "ShowGeometry": true, + "Name": "Input", + "Id": "da5ef522abe54d7eb10692c6f793825a", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "X": 225.0774068903487, + "Y": 490.03805901573247 } ], "Annotations": [], - "X": 319.045432074429, - "Y": 273.636633061509, - "Zoom": 0.533106590168744 + "X": -105.23123657848953, + "Y": 193.98821487548693, + "Zoom": 0.78732297701633347 } } \ No newline at end of file