Repository navigation
Expand file tree
/
Copy pathAP_CON_SalvarModeloCentral_Multiplayer.dyn
More file actions
204 lines (204 loc) · 6.67 KB
/
Copy pathAP_CON_SalvarModeloCentral_Multiplayer.dyn
File metadata and controls
204 lines (204 loc) · 6.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
{
"Uuid": "e160911b-1067-42a9-8626-5a7ff727e069",
"IsCustomNode": false,
"Description": "",
"Name": "BB_SalvarModeloCentral_Multiplayer",
"ElementResolver": {
"ResolutionMap": {}
},
"Inputs": [],
"Outputs": [],
"Nodes": [
{
"ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
"Code": "import clr\r\nclr.AddReference('RevitAPI')\r\nclr.AddReference('RevitAPIUI')\r\n\r\nfrom Autodesk.Revit.DB import *\r\n\r\n# Documento pasado desde Dynamo\r\ndoc = IN[0]\r\n\r\n# Iniciar transacción\r\nt = Transaction(doc, \"Guardar como Central\")\r\nt.Start()\r\n\r\n# Obtener ruta actual\r\npath = doc.PathName\r\n\r\n# Opciones de guardado\r\nsave_options = SaveAsOptions()\r\nsave_options.OverwriteExistingFile = True\r\n\r\n# Guardar como central\r\ntry:\r\n doc.SaveAs(path, save_options)\r\n OUT = \"Documento guardado exitosamente\"\r\nexcept Exception as e:\r\n OUT = str(e)\r\n\r\n# Cerrar transacción\r\nt.Commit()",
"Engine": "IronPython2",
"EngineName": "IronPython2",
"VariableInputPorts": true,
"Id": "32f8be506249415a8592521a1f6ca58e",
"NodeType": "PythonScriptNode",
"Inputs": [
{
"Id": "b5d472a8da16446e98198f32f8b3679a",
"Name": "IN[0]",
"Description": "Input #0",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Outputs": [
{
"Id": "1630ba3988744637b0d8c86f98ccacf5",
"Name": "OUT",
"Description": "Resultado de la secuencia de comandos de Python",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Disabled",
"Description": "Ejecuta una secuencia de comandos de Python incrustada."
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Function, DynamoCore",
"FunctionSignature": "5b9b1cd5-c248-4799-b689-6b31fe525bd2",
"FunctionType": "Graph",
"Id": "1404b90ba8d44c0ebb0587d7808b0a08",
"NodeType": "FunctionNode",
"Inputs": [],
"Outputs": [
{
"Id": "9c41943ebbda47719b9d36134050c691",
"Name": "_out",
"Description": "valor de retorno",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "Retrieves Current Document"
}
],
"Connectors": [
{
"Start": "9c41943ebbda47719b9d36134050c691",
"End": "b5d472a8da16446e98198f32f8b3679a",
"Id": "81672df0be724d9c963db60af69fd6f9",
"IsHidden": "False"
}
],
"Dependencies": [
"5b9b1cd5-c248-4799-b689-6b31fe525bd2"
],
"NodeLibraryDependencies": [
{
"Name": "archi-lab.net",
"Version": "2024.217.1024",
"ReferenceType": "Package",
"Nodes": [
"1404b90ba8d44c0ebb0587d7808b0a08"
]
}
],
"Thumbnail": "",
"GraphDocumentationURL": null,
"ExtensionWorkspaceData": [
{
"ExtensionGuid": "28992e1d-abb9-417f-8b1b-05e053bee670",
"Name": "Properties",
"Version": "3.2",
"Data": {}
},
{
"ExtensionGuid": "DFBD9CC0-DB40-457A-939E-8C8555555A9D",
"Name": "Generative Design",
"Version": "8.1",
"Data": {}
}
],
"Author": "",
"Linting": {
"activeLinter": "Ninguno",
"activeLinterId": "7b75fb44-43fd-4631-a878-29f4d5d8399a",
"warningCount": 0,
"errorCount": 0
},
"Bindings": [],
"View": {
"Dynamo": {
"ScaleFactor": 1.0,
"HasRunWithoutCrash": true,
"IsVisibleInDynamoLibrary": true,
"Version": "2.19.3.6394",
"RunType": "Manual",
"RunPeriod": "1000"
},
"Camera": {
"Name": "_Vista preliminar en segundo plano",
"EyeX": -17.0,
"EyeY": 24.0,
"EyeZ": 50.0,
"LookX": 12.0,
"LookY": -13.0,
"LookZ": -58.0,
"UpX": 0.0,
"UpY": 1.0,
"UpZ": 0.0
},
"ConnectorPins": [],
"NodeViews": [
{
"Id": "32f8be506249415a8592521a1f6ca58e",
"Name": "Python Script",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"ShowGeometry": true,
"X": 849.5586550501165,
"Y": 319.30370270625286
},
{
"Id": "1404b90ba8d44c0ebb0587d7808b0a08",
"Name": "Current Document",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"ShowGeometry": true,
"X": 539.95865505011648,
"Y": 319.30370270625286
}
],
"Annotations": [
{
"Id": "0cd9f0f1c1694a6c8335823adf5379e5",
"Title": "INSTRUCCIONES",
"DescriptionText": "------------------------------------------------------",
"IsExpanded": true,
"WidthAdjustment": 0.0,
"HeightAdjustment": 0.0,
"Nodes": [
"ef134353120745c5ad52f80edf586425"
],
"HasNestedGroups": false,
"Left": 571.96753629533623,
"Top": 40.21801037248445,
"Width": 318.4,
"Height": 230.59999999999997,
"FontSize": 18.0,
"GroupStyleId": "00000000-0000-0000-0000-000000000000",
"InitialTop": 91.818010372484451,
"InitialHeight": 209.0,
"TextblockHeight": 41.6,
"Background": "#FFA4E1FF"
},
{
"Id": "ef134353120745c5ad52f80edf586425",
"Title": "INSTRUCCIONES:\n• • • • • • • • • • • • • • • • • • • • • • • • \n• Definición concebida para ejecutarla con DynamoMultiplayer de BirdTools.\n• Está pensada para aquellos modelos centrales que se han movido de su ubicación inicial (o se han descargado de Drive o el ACC) y necesitamos convertirlos a central nuevamente a un grupo de modelos.\n• ",
"DescriptionText": null,
"IsExpanded": true,
"WidthAdjustment": 0.0,
"HeightAdjustment": 0.0,
"Nodes": [],
"HasNestedGroups": false,
"Left": 581.96753629533623,
"Top": 99.818010372484451,
"Width": 0.0,
"Height": 0.0,
"FontSize": 36.0,
"GroupStyleId": "00000000-0000-0000-0000-000000000000",
"InitialTop": 0.0,
"InitialHeight": 0.0,
"TextblockHeight": 0.0,
"Background": "#FFC1D676"
}
],
"X": 853.18912212069233,
"Y": 364.45026308972916,
"Zoom": 0.88878922829715545
}
}