Added ImportObj_Batch
This commit is contained in:
211
importobj-batch/1.x/ImportObj_Batch_1.3.dyn
Normal file
211
importobj-batch/1.x/ImportObj_Batch_1.3.dyn
Normal file
@@ -0,0 +1,211 @@
|
|||||||
|
<Workspace Version="1.3.2.2480" X="37.8907820272016" Y="407.266794327504" zoom="0.375944463577094" ScaleFactor="1" Name="Home" Description="" RunType="Manual" RunPeriod="1000" HasRunWithoutCrash="False">
|
||||||
|
<NamespaceResolutionMap />
|
||||||
|
<Elements>
|
||||||
|
<Dynamo.Graph.Nodes.ZeroTouch.DSFunction guid="3f970217-81a2-4848-b525-f84a69efe1ba" type="Dynamo.Graph.Nodes.ZeroTouch.DSFunction" nickname="Mesh.ImportFile" x="-380.533842865653" y="-36.3283947405824" isVisible="false" isUpstreamVisible="true" lacing="Shortest" isSelectedInput="False" IsFrozen="false" isPinned="false" assembly="C:\Users\gyetpet\AppData\Roaming\Dynamo\Dynamo Revit\1.3\packages\MeshToolkit\bin\MeshToolkit.dll" function="Autodesk.Dynamo.MeshToolkit.Mesh.ImportFile@string">
|
||||||
|
<PortInfo index="0" default="False" />
|
||||||
|
</Dynamo.Graph.Nodes.ZeroTouch.DSFunction>
|
||||||
|
<Dynamo.Graph.Nodes.ZeroTouch.DSFunction guid="e78e3fff-7b7a-4a4d-a46c-737b7bb5ad12" type="Dynamo.Graph.Nodes.ZeroTouch.DSFunction" nickname="Mesh.Reduce" x="711.598750772938" y="-72.2273937391009" isVisible="false" isUpstreamVisible="true" lacing="Shortest" isSelectedInput="False" IsFrozen="false" isPinned="false" assembly="C:\Users\gyetpet\AppData\Roaming\Dynamo\Dynamo Revit\1.3\packages\MeshToolkit\bin\MeshToolkit.dll" function="Autodesk.Dynamo.MeshToolkit.Mesh.Reduce@double">
|
||||||
|
<PortInfo index="0" default="False" />
|
||||||
|
<PortInfo index="1" default="False" />
|
||||||
|
</Dynamo.Graph.Nodes.ZeroTouch.DSFunction>
|
||||||
|
<Dynamo.Graph.Nodes.ZeroTouch.DSFunction guid="18cdf34e-b5c4-4fb7-88a1-fb8f9053be9b" type="Dynamo.Graph.Nodes.ZeroTouch.DSFunction" nickname="Mesh.TriangleCount" x="251.039534783541" y="-263.983934849569" isVisible="true" isUpstreamVisible="true" lacing="Shortest" isSelectedInput="False" IsFrozen="false" isPinned="false" assembly="C:\Users\gyetpet\AppData\Roaming\Dynamo\Dynamo Revit\1.3\packages\MeshToolkit\bin\MeshToolkit.dll" function="Autodesk.Dynamo.MeshToolkit.Mesh.TriangleCount">
|
||||||
|
<PortInfo index="0" default="False" />
|
||||||
|
</Dynamo.Graph.Nodes.ZeroTouch.DSFunction>
|
||||||
|
<CoreNodeModels.Input.StringInput guid="3bdd9b31-a3b5-4804-a5e0-0743ed8e0e96" type="CoreNodeModels.Input.StringInput" nickname="Family name" x="-985.276561085881" y="308.977403823147" isVisible="true" isUpstreamVisible="true" lacing="Disabled" isSelectedInput="True" IsFrozen="false" isPinned="false">
|
||||||
|
<System.String>Test_BRA</System.String>
|
||||||
|
<System.String value="Test_BRA" />
|
||||||
|
</CoreNodeModels.Input.StringInput>
|
||||||
|
<Dynamo.Graph.Nodes.CustomNodes.Function guid="225639b4-9bca-46ed-ac57-025ec5e864cd" type="Dynamo.Graph.Nodes.CustomNodes.Function" nickname="Springs.ToolkitMeshToMesh" x="1662.69574245132" y="1343.69253629643" isVisible="true" isUpstreamVisible="true" lacing="Shortest" isSelectedInput="False" IsFrozen="false" isPinned="false">
|
||||||
|
<PortInfo index="0" default="False" />
|
||||||
|
<ID value="d5628e40-52de-47c9-b35b-c201d87344e0" />
|
||||||
|
<Name value="Springs.ToolkitMeshToMesh" />
|
||||||
|
<Description value="Attempts to convert a toolkit mesh to a Dynamo mesh. You obviously need to have the appropriate version of the mesh toolkit package downloaded first." />
|
||||||
|
<Inputs>
|
||||||
|
<Input value="tkMesh" />
|
||||||
|
</Inputs>
|
||||||
|
<Outputs>
|
||||||
|
<Output value="mesh" />
|
||||||
|
</Outputs>
|
||||||
|
</Dynamo.Graph.Nodes.CustomNodes.Function>
|
||||||
|
<Dynamo.Graph.Nodes.ZeroTouch.DSFunction guid="255971a5-8599-4308-b747-97e2eeac0aa9" type="Dynamo.Graph.Nodes.ZeroTouch.DSFunction" nickname="DirectShape.ByMesh" x="2011.1460761361" y="1461.92933828754" isVisible="true" isUpstreamVisible="true" lacing="Shortest" isSelectedInput="False" IsFrozen="false" isPinned="false" assembly="RevitNodes.dll" function="Revit.Elements.DirectShape.ByMesh@Autodesk.DesignScript.Geometry.Mesh,Revit.Elements.Category,Revit.Elements.Material,string">
|
||||||
|
<PortInfo index="0" default="False" />
|
||||||
|
<PortInfo index="1" default="False" />
|
||||||
|
<PortInfo index="2" default="True" />
|
||||||
|
<PortInfo index="3" default="True" />
|
||||||
|
</Dynamo.Graph.Nodes.ZeroTouch.DSFunction>
|
||||||
|
<Dynamo.Graph.Nodes.ZeroTouch.DSFunction guid="d804a019-f02b-4712-9d65-9b5779aac356" type="Dynamo.Graph.Nodes.ZeroTouch.DSFunction" nickname="Material.ByName" x="1644.0934358921" y="1622.46283291264" isVisible="true" isUpstreamVisible="true" lacing="Shortest" isSelectedInput="False" IsFrozen="false" isPinned="false" assembly="RevitNodes.dll" function="Revit.Elements.Material.ByName@string">
|
||||||
|
<PortInfo index="0" default="False" />
|
||||||
|
</Dynamo.Graph.Nodes.ZeroTouch.DSFunction>
|
||||||
|
<CoreNodeModels.Input.StringInput guid="d2a08fff-7769-4ab2-abd7-031ea48eb52f" type="CoreNodeModels.Input.StringInput" nickname="Material name" x="-985.276561085881" y="397.438625045225" isVisible="true" isUpstreamVisible="true" lacing="Disabled" isSelectedInput="True" IsFrozen="false" isPinned="false">
|
||||||
|
<System.String>Default</System.String>
|
||||||
|
<System.String value="Default" />
|
||||||
|
</CoreNodeModels.Input.StringInput>
|
||||||
|
<DSRevitNodesUI.Categories guid="93148737-800d-4389-b8cf-3ee67c37bbb4" type="DSRevitNodesUI.Categories" nickname="Categories" x="1659.69313407377" y="1478.9558364157" isVisible="true" isUpstreamVisible="true" lacing="Disabled" isSelectedInput="True" IsFrozen="false" isPinned="false" index="211:Furniture" />
|
||||||
|
<Dynamo.Graph.Nodes.ZeroTouch.DSFunction guid="cc4cbe20-4bc6-4542-80df-e0fb5752166a" type="Dynamo.Graph.Nodes.ZeroTouch.DSFunction" nickname="Mesh.Rotate" x="1067.58850953418" y="1001.84235227724" isVisible="true" isUpstreamVisible="true" lacing="Shortest" isSelectedInput="False" IsFrozen="false" isPinned="false" assembly="C:\Users\gyetpet\AppData\Roaming\Dynamo\Dynamo Revit\1.3\packages\MeshToolkit\bin\MeshToolkit.dll" function="Autodesk.Dynamo.MeshToolkit.Mesh.Rotate@Autodesk.DesignScript.Geometry.Vector,double">
|
||||||
|
<PortInfo index="0" default="False" />
|
||||||
|
<PortInfo index="1" default="False" />
|
||||||
|
<PortInfo index="2" default="True" />
|
||||||
|
</Dynamo.Graph.Nodes.ZeroTouch.DSFunction>
|
||||||
|
<CoreNodeModels.Input.BoolSelector guid="67926e18-8f6a-428e-9fa0-9655c5fa307d" type="CoreNodeModels.Input.BoolSelector" nickname="Reduce mesh" x="-985.276561085881" y="43.5937401569119" isVisible="true" isUpstreamVisible="true" lacing="Disabled" isSelectedInput="True" IsFrozen="false" isPinned="false">
|
||||||
|
<System.Boolean>True</System.Boolean>
|
||||||
|
</CoreNodeModels.Input.BoolSelector>
|
||||||
|
<CoreNodeModels.Logic.If guid="5caaaa49-fb35-454c-be2d-52db75079f4e" type="CoreNodeModels.Logic.If" nickname="If" x="716.430590247846" y="522.53198941251" isVisible="true" isUpstreamVisible="true" lacing="Disabled" isSelectedInput="False" IsFrozen="false" isPinned="false">
|
||||||
|
<PortInfo index="0" default="False" />
|
||||||
|
<PortInfo index="1" default="False" />
|
||||||
|
<PortInfo index="2" default="False" />
|
||||||
|
</CoreNodeModels.Logic.If>
|
||||||
|
<Dynamo.Graph.Nodes.ZeroTouch.DSFunction guid="1c1719fd-1d98-46f8-8982-d2c0598e7fd7" type="Dynamo.Graph.Nodes.ZeroTouch.DSFunction" nickname="Vector.XAxis" x="876.58850953418" y="988.842352277237" isVisible="true" isUpstreamVisible="true" lacing="Shortest" isSelectedInput="False" IsFrozen="false" isPinned="false" assembly="ProtoGeometry.dll" function="Autodesk.DesignScript.Geometry.Vector.XAxis" />
|
||||||
|
<Dynamo.Graph.Nodes.CodeBlockNodeModel guid="a61b0c62-1f3b-498f-92a6-338de7d8698e" type="Dynamo.Graph.Nodes.CodeBlockNodeModel" nickname="Code Block" x="876.58850953418" y="1097.05568561057" isVisible="true" isUpstreamVisible="true" lacing="Disabled" isSelectedInput="False" IsFrozen="false" isPinned="false" CodeText="90;" ShouldFocus="false" />
|
||||||
|
<Dynamo.Graph.Nodes.ZeroTouch.DSFunction guid="fa6f1cc1-9c8d-4d78-87eb-da96cfbff009" type="Dynamo.Graph.Nodes.ZeroTouch.DSFunction" nickname="Document.Current" x="-1428.64928461165" y="-758.965266679275" isVisible="true" isUpstreamVisible="true" lacing="Shortest" isSelectedInput="False" IsFrozen="false" isPinned="false" assembly="RevitNodes.dll" function="Revit.Application.Document.Current" />
|
||||||
|
<Dynamo.Graph.Nodes.ZeroTouch.DSFunction guid="b9c3efa8-8382-42f9-8b30-9f9249be0d88" type="Dynamo.Graph.Nodes.ZeroTouch.DSFunction" nickname="Document.FilePath" x="-1174.89077070087" y="-831.411087053338" isVisible="true" isUpstreamVisible="true" lacing="Shortest" isSelectedInput="False" IsFrozen="false" isPinned="false" assembly="RevitNodes.dll" function="Revit.Application.Document.FilePath">
|
||||||
|
<PortInfo index="0" default="False" />
|
||||||
|
</Dynamo.Graph.Nodes.ZeroTouch.DSFunction>
|
||||||
|
<Dynamo.Graph.Nodes.ZeroTouch.DSVarArgFunction guid="b1d0c6ba-0be0-452e-87fb-8bd0013f8b72" type="Dynamo.Graph.Nodes.ZeroTouch.DSVarArgFunction" nickname="String.Split" x="-885.649284611648" y="-719.965266679275" isVisible="true" isUpstreamVisible="true" lacing="Shortest" isSelectedInput="False" IsFrozen="false" isPinned="false" assembly="DSCoreNodes.dll" function="DSCore.String.Split@string,string[]" inputcount="2">
|
||||||
|
<PortInfo index="0" default="False" />
|
||||||
|
<PortInfo index="1" default="False" />
|
||||||
|
</Dynamo.Graph.Nodes.ZeroTouch.DSVarArgFunction>
|
||||||
|
<Dynamo.Graph.Nodes.CodeBlockNodeModel guid="486afab8-0628-49e7-9759-d8466b383e6d" type="Dynamo.Graph.Nodes.CodeBlockNodeModel" nickname="Code Block" x="-1200.64928461165" y="-650.751933345942" isVisible="true" isUpstreamVisible="true" lacing="Disabled" isSelectedInput="False" IsFrozen="false" isPinned="false" CodeText="".";" ShouldFocus="false" />
|
||||||
|
<Dynamo.Graph.Nodes.CodeBlockNodeModel guid="ea459e6d-7749-421b-a473-153a6ed36b60" type="Dynamo.Graph.Nodes.CodeBlockNodeModel" nickname="Code Block" x="-555.649284611648" y="-715.751933345942" isVisible="true" isUpstreamVisible="true" lacing="Disabled" isSelectedInput="False" IsFrozen="false" isPinned="false" CodeText="a[0];" ShouldFocus="false">
|
||||||
|
<PortInfo index="0" default="False" />
|
||||||
|
</Dynamo.Graph.Nodes.CodeBlockNodeModel>
|
||||||
|
<Dynamo.Graph.Nodes.ZeroTouch.DSVarArgFunction guid="fcfb6a6b-5201-45c8-bc0d-4b454031bd3a" type="Dynamo.Graph.Nodes.ZeroTouch.DSVarArgFunction" nickname="String.Concat" x="-365.649284611648" y="-678.965266679275" isVisible="true" isUpstreamVisible="true" lacing="Shortest" isSelectedInput="False" IsFrozen="false" isPinned="false" assembly="DSCoreNodes.dll" function="DSCore.String.Concat@string[]" inputcount="3">
|
||||||
|
<PortInfo index="0" default="False" />
|
||||||
|
<PortInfo index="1" default="False" />
|
||||||
|
<PortInfo index="2" default="False" />
|
||||||
|
</Dynamo.Graph.Nodes.ZeroTouch.DSVarArgFunction>
|
||||||
|
<CoreNodeModels.Input.StringInput guid="fda71e3c-c5bb-4491-8e58-702305b55354" type="CoreNodeModels.Input.StringInput" nickname="File extension" x="-985.276561085881" y="-44.8674810651664" isVisible="true" isUpstreamVisible="true" lacing="Disabled" isSelectedInput="True" IsFrozen="false" isPinned="false">
|
||||||
|
<System.String>OBJ</System.String>
|
||||||
|
<System.String value="OBJ" />
|
||||||
|
</CoreNodeModels.Input.StringInput>
|
||||||
|
<Dynamo.Graph.Nodes.CodeBlockNodeModel guid="d4ca5964-e6c0-4fb1-807c-86dff154d4eb" type="Dynamo.Graph.Nodes.CodeBlockNodeModel" nickname="Code Block" x="-555.649284611648" y="-607.751933345942" isVisible="true" isUpstreamVisible="true" lacing="Disabled" isSelectedInput="False" IsFrozen="false" isPinned="false" CodeText="".";" ShouldFocus="false" />
|
||||||
|
<CoreNodeModels.Input.BoolSelector guid="d1dda7b5-c2a5-49fb-a162-2824ff17314c" type="CoreNodeModels.Input.BoolSelector" nickname="Rotate" x="-983.88448887407" y="201.658571969558" isVisible="true" isUpstreamVisible="true" lacing="Disabled" isSelectedInput="True" IsFrozen="false" isPinned="false">
|
||||||
|
<System.Boolean>False</System.Boolean>
|
||||||
|
</CoreNodeModels.Input.BoolSelector>
|
||||||
|
<CoreNodeModels.Logic.If guid="e3b1627c-4d3b-44db-983c-2fbff7c987ef" type="CoreNodeModels.Logic.If" nickname="If" x="1341.42105218415" y="840.454203379238" isVisible="true" isUpstreamVisible="true" lacing="Disabled" isSelectedInput="False" IsFrozen="false" isPinned="false">
|
||||||
|
<PortInfo index="0" default="False" />
|
||||||
|
<PortInfo index="1" default="False" />
|
||||||
|
<PortInfo index="2" default="False" />
|
||||||
|
</CoreNodeModels.Logic.If>
|
||||||
|
<CoreNodeModels.Input.DoubleSlider guid="25b7684e-51f5-4241-8c2a-4881b4b982fd" type="CoreNodeModels.Input.DoubleSlider" nickname="Percent of remaining tris" x="-985.276561085881" y="132.815633256953" isVisible="true" isUpstreamVisible="true" lacing="Disabled" isSelectedInput="True" IsFrozen="false" isPinned="false">
|
||||||
|
<System.Double>5</System.Double>
|
||||||
|
<Range min="0" max="100" step="1" />
|
||||||
|
</CoreNodeModels.Input.DoubleSlider>
|
||||||
|
<Dynamo.Graph.Nodes.CodeBlockNodeModel guid="86ba9b6a-86e5-4e9a-8859-331f8b0c9902" type="Dynamo.Graph.Nodes.CodeBlockNodeModel" nickname="Code Block" x="521.204008265415" y="-179.421931266918" isVisible="true" isUpstreamVisible="true" lacing="Disabled" isSelectedInput="False" IsFrozen="false" isPinned="false" CodeText="x*y*0.01;" ShouldFocus="false">
|
||||||
|
<PortInfo index="0" default="False" />
|
||||||
|
<PortInfo index="1" default="False" />
|
||||||
|
</Dynamo.Graph.Nodes.CodeBlockNodeModel>
|
||||||
|
<Dynamo.Graph.Nodes.CustomNodes.Function guid="59fd3449-17f4-4b0e-a6dd-bc168822b41c" type="Dynamo.Graph.Nodes.CustomNodes.Function" nickname="Document.SaveAs" x="2402.81644004072" y="-309.826829821177" isVisible="true" isUpstreamVisible="true" lacing="Shortest" isSelectedInput="False" IsFrozen="false" isPinned="false">
|
||||||
|
<PortInfo index="0" default="False" />
|
||||||
|
<PortInfo index="1" default="True" />
|
||||||
|
<PortInfo index="2" default="True" />
|
||||||
|
<ID value="19ce6b9f-f4cf-4a3f-9788-1482e94528d6" />
|
||||||
|
<Name value="Document.SaveAs" />
|
||||||
|
<Description value="Saves the active Revit document under the given name." />
|
||||||
|
<Inputs>
|
||||||
|
<Input value="filePath" />
|
||||||
|
<Input value="compactFile" />
|
||||||
|
<Input value="saveAsCentral" />
|
||||||
|
</Inputs>
|
||||||
|
<Outputs>
|
||||||
|
<Output value="success" />
|
||||||
|
</Outputs>
|
||||||
|
</Dynamo.Graph.Nodes.CustomNodes.Function>
|
||||||
|
<Dynamo.Graph.Nodes.CustomNodes.Function guid="6f104a89-e0ed-4c9c-bb2b-38bcee1d6bc0" type="Dynamo.Graph.Nodes.CustomNodes.Function" nickname="Passthrough" x="2025.81644004072" y="-309.826829821177" isVisible="true" isUpstreamVisible="true" lacing="Shortest" isSelectedInput="False" IsFrozen="false" isPinned="false">
|
||||||
|
<PortInfo index="0" default="False" />
|
||||||
|
<PortInfo index="1" default="False" />
|
||||||
|
<ID value="ecce77dc-1290-438e-a056-970b256fd553" />
|
||||||
|
<Name value="Passthrough" />
|
||||||
|
<Description value="Forces a sequential order of execution. The node wired into the output of the Passthrough node will be executed *after* the node wired into the waitFor input (e.g. important for some Revit operations). The value of the passThrough input will be passed on to the node wired into the output port of the Passthrough node." />
|
||||||
|
<Inputs>
|
||||||
|
<Input value="passThrough" />
|
||||||
|
<Input value="waitFor" />
|
||||||
|
</Inputs>
|
||||||
|
<Outputs>
|
||||||
|
<Output value="passThrough" />
|
||||||
|
</Outputs>
|
||||||
|
</Dynamo.Graph.Nodes.CustomNodes.Function>
|
||||||
|
</Elements>
|
||||||
|
<Connectors>
|
||||||
|
<Dynamo.Graph.Connectors.ConnectorModel start="3f970217-81a2-4848-b525-f84a69efe1ba" start_index="0" end="18cdf34e-b5c4-4fb7-88a1-fb8f9053be9b" end_index="0" portType="0" />
|
||||||
|
<Dynamo.Graph.Connectors.ConnectorModel start="3f970217-81a2-4848-b525-f84a69efe1ba" start_index="0" end="e78e3fff-7b7a-4a4d-a46c-737b7bb5ad12" end_index="0" portType="0" />
|
||||||
|
<Dynamo.Graph.Connectors.ConnectorModel start="3f970217-81a2-4848-b525-f84a69efe1ba" start_index="0" end="5caaaa49-fb35-454c-be2d-52db75079f4e" end_index="2" portType="0" />
|
||||||
|
<Dynamo.Graph.Connectors.ConnectorModel start="e78e3fff-7b7a-4a4d-a46c-737b7bb5ad12" start_index="0" end="5caaaa49-fb35-454c-be2d-52db75079f4e" end_index="1" portType="0" />
|
||||||
|
<Dynamo.Graph.Connectors.ConnectorModel start="18cdf34e-b5c4-4fb7-88a1-fb8f9053be9b" start_index="0" end="86ba9b6a-86e5-4e9a-8859-331f8b0c9902" end_index="0" portType="0" />
|
||||||
|
<Dynamo.Graph.Connectors.ConnectorModel start="3bdd9b31-a3b5-4804-a5e0-0743ed8e0e96" start_index="0" end="255971a5-8599-4308-b747-97e2eeac0aa9" end_index="3" portType="0" />
|
||||||
|
<Dynamo.Graph.Connectors.ConnectorModel start="225639b4-9bca-46ed-ac57-025ec5e864cd" start_index="0" end="255971a5-8599-4308-b747-97e2eeac0aa9" end_index="0" portType="0" />
|
||||||
|
<Dynamo.Graph.Connectors.ConnectorModel start="255971a5-8599-4308-b747-97e2eeac0aa9" start_index="0" end="6f104a89-e0ed-4c9c-bb2b-38bcee1d6bc0" end_index="1" portType="0" />
|
||||||
|
<Dynamo.Graph.Connectors.ConnectorModel start="d804a019-f02b-4712-9d65-9b5779aac356" start_index="0" end="255971a5-8599-4308-b747-97e2eeac0aa9" end_index="2" portType="0" />
|
||||||
|
<Dynamo.Graph.Connectors.ConnectorModel start="d2a08fff-7769-4ab2-abd7-031ea48eb52f" start_index="0" end="d804a019-f02b-4712-9d65-9b5779aac356" end_index="0" portType="0" />
|
||||||
|
<Dynamo.Graph.Connectors.ConnectorModel start="93148737-800d-4389-b8cf-3ee67c37bbb4" start_index="0" end="255971a5-8599-4308-b747-97e2eeac0aa9" end_index="1" portType="0" />
|
||||||
|
<Dynamo.Graph.Connectors.ConnectorModel start="cc4cbe20-4bc6-4542-80df-e0fb5752166a" start_index="0" end="e3b1627c-4d3b-44db-983c-2fbff7c987ef" end_index="1" portType="0" />
|
||||||
|
<Dynamo.Graph.Connectors.ConnectorModel start="67926e18-8f6a-428e-9fa0-9655c5fa307d" start_index="0" end="5caaaa49-fb35-454c-be2d-52db75079f4e" end_index="0" portType="0" />
|
||||||
|
<Dynamo.Graph.Connectors.ConnectorModel start="5caaaa49-fb35-454c-be2d-52db75079f4e" start_index="0" end="cc4cbe20-4bc6-4542-80df-e0fb5752166a" end_index="0" portType="0" />
|
||||||
|
<Dynamo.Graph.Connectors.ConnectorModel start="5caaaa49-fb35-454c-be2d-52db75079f4e" start_index="0" end="e3b1627c-4d3b-44db-983c-2fbff7c987ef" end_index="2" portType="0" />
|
||||||
|
<Dynamo.Graph.Connectors.ConnectorModel start="1c1719fd-1d98-46f8-8982-d2c0598e7fd7" start_index="0" end="cc4cbe20-4bc6-4542-80df-e0fb5752166a" end_index="1" portType="0" />
|
||||||
|
<Dynamo.Graph.Connectors.ConnectorModel start="a61b0c62-1f3b-498f-92a6-338de7d8698e" start_index="0" end="cc4cbe20-4bc6-4542-80df-e0fb5752166a" end_index="2" portType="0" />
|
||||||
|
<Dynamo.Graph.Connectors.ConnectorModel start="fa6f1cc1-9c8d-4d78-87eb-da96cfbff009" start_index="0" end="b9c3efa8-8382-42f9-8b30-9f9249be0d88" end_index="0" portType="0" />
|
||||||
|
<Dynamo.Graph.Connectors.ConnectorModel start="b9c3efa8-8382-42f9-8b30-9f9249be0d88" start_index="0" end="b1d0c6ba-0be0-452e-87fb-8bd0013f8b72" end_index="0" portType="0" />
|
||||||
|
<Dynamo.Graph.Connectors.ConnectorModel start="b9c3efa8-8382-42f9-8b30-9f9249be0d88" start_index="0" end="6f104a89-e0ed-4c9c-bb2b-38bcee1d6bc0" end_index="0" portType="0" />
|
||||||
|
<Dynamo.Graph.Connectors.ConnectorModel start="b1d0c6ba-0be0-452e-87fb-8bd0013f8b72" start_index="0" end="ea459e6d-7749-421b-a473-153a6ed36b60" end_index="0" portType="0" />
|
||||||
|
<Dynamo.Graph.Connectors.ConnectorModel start="486afab8-0628-49e7-9759-d8466b383e6d" start_index="0" end="b1d0c6ba-0be0-452e-87fb-8bd0013f8b72" end_index="1" portType="0" />
|
||||||
|
<Dynamo.Graph.Connectors.ConnectorModel start="ea459e6d-7749-421b-a473-153a6ed36b60" start_index="0" end="fcfb6a6b-5201-45c8-bc0d-4b454031bd3a" end_index="0" portType="0" />
|
||||||
|
<Dynamo.Graph.Connectors.ConnectorModel start="fcfb6a6b-5201-45c8-bc0d-4b454031bd3a" start_index="0" end="3f970217-81a2-4848-b525-f84a69efe1ba" end_index="0" portType="0" />
|
||||||
|
<Dynamo.Graph.Connectors.ConnectorModel start="fda71e3c-c5bb-4491-8e58-702305b55354" start_index="0" end="fcfb6a6b-5201-45c8-bc0d-4b454031bd3a" end_index="2" portType="0" />
|
||||||
|
<Dynamo.Graph.Connectors.ConnectorModel start="d4ca5964-e6c0-4fb1-807c-86dff154d4eb" start_index="0" end="fcfb6a6b-5201-45c8-bc0d-4b454031bd3a" end_index="1" portType="0" />
|
||||||
|
<Dynamo.Graph.Connectors.ConnectorModel start="d1dda7b5-c2a5-49fb-a162-2824ff17314c" start_index="0" end="e3b1627c-4d3b-44db-983c-2fbff7c987ef" end_index="0" portType="0" />
|
||||||
|
<Dynamo.Graph.Connectors.ConnectorModel start="e3b1627c-4d3b-44db-983c-2fbff7c987ef" start_index="0" end="225639b4-9bca-46ed-ac57-025ec5e864cd" end_index="0" portType="0" />
|
||||||
|
<Dynamo.Graph.Connectors.ConnectorModel start="25b7684e-51f5-4241-8c2a-4881b4b982fd" start_index="0" end="86ba9b6a-86e5-4e9a-8859-331f8b0c9902" end_index="1" portType="0" />
|
||||||
|
<Dynamo.Graph.Connectors.ConnectorModel start="86ba9b6a-86e5-4e9a-8859-331f8b0c9902" start_index="0" end="e78e3fff-7b7a-4a4d-a46c-737b7bb5ad12" end_index="1" portType="0" />
|
||||||
|
<Dynamo.Graph.Connectors.ConnectorModel start="6f104a89-e0ed-4c9c-bb2b-38bcee1d6bc0" start_index="0" end="59fd3449-17f4-4b0e-a6dd-bc168822b41c" end_index="0" portType="0" />
|
||||||
|
</Connectors>
|
||||||
|
<Notes>
|
||||||
|
<Dynamo.Graph.Notes.NoteModel guid="1d85dc65-9790-4d95-a28f-3fe450ea10cf" text="Required:
Meshtoolkit
Springs
Clockwork" x="-890.593798094722" y="-148.242016761718" />
|
||||||
|
</Notes>
|
||||||
|
<Annotations>
|
||||||
|
<Dynamo.Graph.Annotations.AnnotationModel guid="28a53aca-b2bb-4ee3-82cb-2d5ffaa52b2c" annotationText="Input" left="-995.276561085881" top="-90.8674810651664" width="319" height="556.306106110391" fontSize="30" InitialTop="-44.8674810651664" InitialHeight="280.259508160807" TextblockHeight="36" backgrouund="#FFD4B6DB">
|
||||||
|
<Models ModelGuid="3bdd9b31-a3b5-4804-a5e0-0743ed8e0e96" />
|
||||||
|
<Models ModelGuid="d2a08fff-7769-4ab2-abd7-031ea48eb52f" />
|
||||||
|
<Models ModelGuid="67926e18-8f6a-428e-9fa0-9655c5fa307d" />
|
||||||
|
<Models ModelGuid="fda71e3c-c5bb-4491-8e58-702305b55354" />
|
||||||
|
<Models ModelGuid="d1dda7b5-c2a5-49fb-a162-2824ff17314c" />
|
||||||
|
<Models ModelGuid="25b7684e-51f5-4241-8c2a-4881b4b982fd" />
|
||||||
|
</Dynamo.Graph.Annotations.AnnotationModel>
|
||||||
|
<Dynamo.Graph.Annotations.AnnotationModel guid="1c238b3a-a286-411a-9a0a-2a5d15c63e7c" annotationText="Reduce mesh" left="241.039534783541" top="-309.983934849569" width="716.559215989397" height="356.756541110468" fontSize="30" InitialTop="-263.983934849569" InitialHeight="332.462142329396" TextblockHeight="36" backgrouund="#FFC1D676">
|
||||||
|
<Models ModelGuid="e78e3fff-7b7a-4a4d-a46c-737b7bb5ad12" />
|
||||||
|
<Models ModelGuid="18cdf34e-b5c4-4fb7-88a1-fb8f9053be9b" />
|
||||||
|
<Models ModelGuid="86ba9b6a-86e5-4e9a-8859-331f8b0c9902" />
|
||||||
|
</Dynamo.Graph.Annotations.AnnotationModel>
|
||||||
|
<Dynamo.Graph.Annotations.AnnotationModel guid="480b3b55-e829-4711-af19-643ccb19ffea" annotationText="Convert and create" left="1634.0934358921" top="1297.69253629643" width="632.052640244" height="417.770296616207" fontSize="30" InitialTop="1343.69253629643" InitialHeight="401.770296616209" TextblockHeight="36" backgrouund="#FFC1D676">
|
||||||
|
<Models ModelGuid="225639b4-9bca-46ed-ac57-025ec5e864cd" />
|
||||||
|
<Models ModelGuid="255971a5-8599-4308-b747-97e2eeac0aa9" />
|
||||||
|
<Models ModelGuid="d804a019-f02b-4712-9d65-9b5779aac356" />
|
||||||
|
<Models ModelGuid="93148737-800d-4389-b8cf-3ee67c37bbb4" />
|
||||||
|
</Dynamo.Graph.Annotations.AnnotationModel>
|
||||||
|
<Dynamo.Graph.Annotations.AnnotationModel guid="06950958-bf31-471b-a8cd-f4a719cd350b" annotationText="Rotate" left="866.58850953418" top="794.454203379238" width="611.83254264997" height="395.601482231333" fontSize="30" InitialTop="840.454203379238" InitialHeight="594.385340589429" TextblockHeight="36" backgrouund="#FFC1D676">
|
||||||
|
<Models ModelGuid="cc4cbe20-4bc6-4542-80df-e0fb5752166a" />
|
||||||
|
<Models ModelGuid="1c1719fd-1d98-46f8-8982-d2c0598e7fd7" />
|
||||||
|
<Models ModelGuid="a61b0c62-1f3b-498f-92a6-338de7d8698e" />
|
||||||
|
<Models ModelGuid="e3b1627c-4d3b-44db-983c-2fbff7c987ef" />
|
||||||
|
</Dynamo.Graph.Annotations.AnnotationModel>
|
||||||
|
<Dynamo.Graph.Annotations.AnnotationModel guid="552e4b50-e4c4-4779-9b7f-a1516e92ad52" annotationText="Reduce?" left="706.430590247846" top="476.53198941251" width="147" height="191" fontSize="30" InitialTop="522.53198941251" InitialHeight="175" TextblockHeight="36" backgrouund="#FFC1D676">
|
||||||
|
<Models ModelGuid="5caaaa49-fb35-454c-be2d-52db75079f4e" />
|
||||||
|
</Dynamo.Graph.Annotations.AnnotationModel>
|
||||||
|
<Dynamo.Graph.Annotations.AnnotationModel guid="70fa6106-9cef-4155-9cbc-1c8f48eb8010" annotationText="Filepath" left="-1438.64928461165" top="-877.411087053338" width="1264" height="362.659153707396" fontSize="30" InitialTop="-831.411087053338" InitialHeight="274.213333333333" TextblockHeight="36" backgrouund="#FFC1D676">
|
||||||
|
<Models ModelGuid="fa6f1cc1-9c8d-4d78-87eb-da96cfbff009" />
|
||||||
|
<Models ModelGuid="b9c3efa8-8382-42f9-8b30-9f9249be0d88" />
|
||||||
|
<Models ModelGuid="b1d0c6ba-0be0-452e-87fb-8bd0013f8b72" />
|
||||||
|
<Models ModelGuid="486afab8-0628-49e7-9759-d8466b383e6d" />
|
||||||
|
<Models ModelGuid="ea459e6d-7749-421b-a473-153a6ed36b60" />
|
||||||
|
<Models ModelGuid="fcfb6a6b-5201-45c8-bc0d-4b454031bd3a" />
|
||||||
|
<Models ModelGuid="d4ca5964-e6c0-4fb1-807c-86dff154d4eb" />
|
||||||
|
</Dynamo.Graph.Annotations.AnnotationModel>
|
||||||
|
<Dynamo.Graph.Annotations.AnnotationModel guid="4a1dc6a7-ae81-4493-a253-467173422d19" annotationText="Save file" left="2015.81644004072" top="-355.826829821177" width="648" height="191" fontSize="30" InitialTop="-309.826829821177" InitialHeight="186.325038956114" TextblockHeight="36" backgrouund="#FFC1D676">
|
||||||
|
<Models ModelGuid="59fd3449-17f4-4b0e-a6dd-bc168822b41c" />
|
||||||
|
<Models ModelGuid="6f104a89-e0ed-4c9c-bb2b-38bcee1d6bc0" />
|
||||||
|
</Dynamo.Graph.Annotations.AnnotationModel>
|
||||||
|
</Annotations>
|
||||||
|
<Presets />
|
||||||
|
<Cameras>
|
||||||
|
<Camera Name="Background Preview" eyeX="-1477.12963867188" eyeY="3359.07763671875" eyeZ="-798.9140625" lookX="1477.14196777344" lookY="-2671.07470703125" lookZ="1486.93872070313" upX="0.448286175727844" upY="0.771624565124512" upZ="0.451259315013886" />
|
||||||
|
</Cameras>
|
||||||
|
</Workspace>
|
||||||
0
importobj-batch/2.x/empty-dir
Normal file
0
importobj-batch/2.x/empty-dir
Normal file
28
importobj-batch/obj-copy.bat
Normal file
28
importobj-batch/obj-copy.bat
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
@echo off
|
||||||
|
SETLOCAL EnableDelayedExpansion
|
||||||
|
REM Obj import template copier
|
||||||
|
REM Copies and renames the default rfa file to all obj files in the folder.
|
||||||
|
REM Current revit file is for revit 2016 update it for later revit versions first
|
||||||
|
REM Created by Peter Gyetvai: gyetpet@gmail.com
|
||||||
|
|
||||||
|
REM ---------
|
||||||
|
REM VARIABLES
|
||||||
|
REM ---------
|
||||||
|
|
||||||
|
SET FILEEXT=OBJ
|
||||||
|
SET TEMPLATEFILENAME=obj-empty2016
|
||||||
|
|
||||||
|
REM -----------------------
|
||||||
|
REM Beginning of the script
|
||||||
|
REM -----------------------
|
||||||
|
|
||||||
|
for /R "%~dp0" %%f in (*.%FILEEXT%) do (
|
||||||
|
echo processing: %%f
|
||||||
|
|
||||||
|
copy "%~dp0\%TEMPLATEFILENAME%.rfa" "%~dp0%%~nf.rfa"
|
||||||
|
echo "%~dp0%%~nf.rfa">> "%~dp0filelist.txt"
|
||||||
|
)
|
||||||
|
|
||||||
|
REM -----------------
|
||||||
|
REM End of the script
|
||||||
|
REM -----------------
|
||||||
BIN
importobj-batch/obj-empty2016.rfa
Normal file
BIN
importobj-batch/obj-empty2016.rfa
Normal file
Binary file not shown.
15
importobj-batch/readme.md
Normal file
15
importobj-batch/readme.md
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# importobj-batch
|
||||||
|
|
||||||
|
Script for batch importing obj files to separate revit families
|
||||||
|
|
||||||
|
Written for Revit 2016
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
1. Copy the .bat and the .rfa to the same folder as the objs
|
||||||
|
|
||||||
|
2. Run obj-copy.bat
|
||||||
|
|
||||||
|
3. If you want to change settings for the import script open the script in dynamo and modify the input values and save.
|
||||||
|
|
||||||
|
4. In Revit batch processor select the created filelist and the dynamo script and it will create the objs inside the rfa files.
|
||||||
Reference in New Issue
Block a user