Added dwg-import-cleaner and list-all-inplace-elements

This commit is contained in:
2019-04-24 19:06:21 +02:00
parent 664f5e4767
commit 7354c9ae4d
7 changed files with 1465 additions and 3 deletions

View File

@@ -0,0 +1,33 @@
<Workspace Version="1.3.2.2480" X="-1160.89022373573" Y="857.279567267629" zoom="0.87895433218201" ScaleFactor="1" Name="Home" Description="" RunType="Manual" RunPeriod="1000" HasRunWithoutCrash="True">
<NamespaceResolutionMap />
<Elements>
<Dynamo.Graph.Nodes.ZeroTouch.DSFunction guid="d578fcdc-b11c-4fb9-a626-59a8d205ad4c" type="Dynamo.Graph.Nodes.ZeroTouch.DSFunction" nickname="CAD.ReportInstances" x="1739.59871231378" y="-378.88466189891" isVisible="true" isUpstreamVisible="true" lacing="Shortest" isSelectedInput="False" IsFrozen="false" isPinned="true" assembly="C:\Users\gyetp\AppData\Roaming\Dynamo\Dynamo Revit\1.3\packages\bimorphNodes\bin\BimorphNodes.dll" function="CAD.ReportInstances@string,bool,bool">
<PortInfo index="0" default="True" />
<PortInfo index="1" default="True" />
<PortInfo index="2" default="True" />
</Dynamo.Graph.Nodes.ZeroTouch.DSFunction>
<CoreNodeModels.Input.BoolSelector guid="c456f88c-b662-433d-bd83-d6220cdec336" type="CoreNodeModels.Input.BoolSelector" nickname="Boolean" x="1509.94450445684" y="-349.105934757922" isVisible="true" isUpstreamVisible="true" lacing="Disabled" isSelectedInput="True" IsFrozen="false" isPinned="false">
<System.Boolean>True</System.Boolean>
</CoreNodeModels.Input.BoolSelector>
<Dynamo.Graph.Nodes.ZeroTouch.DSFunction guid="0f8b5685-3fca-498e-a235-493c88ee163a" type="Dynamo.Graph.Nodes.ZeroTouch.DSFunction" nickname="Elements.Delete" x="2081.42568542399" y="-328.086319149476" isVisible="true" isUpstreamVisible="true" lacing="Shortest" isSelectedInput="False" IsFrozen="false" isPinned="false" assembly="C:\Users\gyetp\AppData\Roaming\Dynamo\Dynamo Revit\1.3\packages\archi-lab.net\bin\archilab.dll" function="archilab.Revit.Elements.Elements.Delete@Revit.Elements.Element">
<PortInfo index="0" default="False" />
</Dynamo.Graph.Nodes.ZeroTouch.DSFunction>
</Elements>
<Connectors>
<Dynamo.Graph.Connectors.ConnectorModel start="d578fcdc-b11c-4fb9-a626-59a8d205ad4c" start_index="2" end="0f8b5685-3fca-498e-a235-493c88ee163a" end_index="0" portType="0" />
<Dynamo.Graph.Connectors.ConnectorModel start="c456f88c-b662-433d-bd83-d6220cdec336" start_index="0" end="d578fcdc-b11c-4fb9-a626-59a8d205ad4c" end_index="1" portType="0" />
</Connectors>
<Notes />
<Annotations>
<Dynamo.Graph.Annotations.AnnotationModel guid="9f0fdb9e-944c-4637-bdac-6684d9d08a2c" annotationText="Bimorph" left="1729.59871231378" top="-424.88466189891" width="267" height="191" fontSize="30" InitialTop="-378.88466189891" InitialHeight="175" TextblockHeight="36" backgrouund="#FFA4E1FF">
<Models ModelGuid="d578fcdc-b11c-4fb9-a626-59a8d205ad4c" />
</Dynamo.Graph.Annotations.AnnotationModel>
<Dynamo.Graph.Annotations.AnnotationModel guid="25fc7463-fb2a-423a-9c8a-e9ac18bb66af" annotationText="Archilab" left="2071.42568542399" top="-374.086319149476" width="216" height="139" fontSize="30" InitialTop="-328.086319149476" InitialHeight="123" TextblockHeight="36" backgrouund="#FFA4E1FF">
<Models ModelGuid="0f8b5685-3fca-498e-a235-493c88ee163a" />
</Dynamo.Graph.Annotations.AnnotationModel>
</Annotations>
<Presets />
<Cameras>
<Camera Name="Background Preview" eyeX="-17" eyeY="24" eyeZ="50" lookX="12" lookY="-13" lookZ="-58" upX="0" upY="1" upZ="0" />
</Cameras>
</Workspace>

View File

@@ -0,0 +1,248 @@
{
"Uuid": "3c9d0464-8643-5ffe-96e5-ab1769818209",
"IsCustomNode": false,
"Description": "",
"Name": "dwg-import-cleaner",
"ElementResolver": {
"ResolutionMap": {}
},
"Inputs": [],
"Outputs": [],
"Nodes": [
{
"ConcreteType": "CoreNodeModels.Input.BoolSelector, CoreNodeModels",
"NodeType": "BooleanInputNode",
"InputValue": true,
"Id": "c456f88cb662433dbd83d6220cdec336",
"Inputs": [],
"Outputs": [
{
"Id": "d7078398e3cf47789204428886c997c1",
"Name": "",
"Description": "Boolean",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Disabled",
"Description": "Selection between a true and false."
},
{
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
"NodeType": "FunctionNode",
"FunctionSignature": "archilab.Revit.Elements.Elements.Delete@Revit.Elements.Element",
"Id": "0f8b56853fca498ea235493c88ee163a",
"Inputs": [
{
"Id": "80205f73b377487d899892f932079d67",
"Name": "element",
"Description": "Element to delete.\n\nElement",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Outputs": [
{
"Id": "b06dc8b5fa10410a85541eeab4c5de06",
"Name": "bool",
"Description": "bool",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "Delete element from Revit DB.\n\nElements.Delete (element: Element): bool"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
"NodeType": "FunctionNode",
"FunctionSignature": "CAD.ReportInstances@string,bool,bool",
"Id": "2ed47be158014ff7b7d4e241959ac189",
"Inputs": [
{
"Id": "c8844e163bd84e45a512e1832f8b4bae",
"Name": "filePath",
"Description": "Leave unconnected to report the active document or input a File Path to report an external Revit document or Family\n\nstring\nDefault value : null",
"UsingDefaultValue": true,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
},
{
"Id": "45837f9bfa10481da8655172bc56bc65",
"Name": "refresh",
"Description": "To refresh, switch a bool input to its opposing state\n\nbool\nDefault value : true",
"UsingDefaultValue": true,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
},
{
"Id": "718687162c684a6da7e5b6aa6ccb5f0e",
"Name": "close",
"Description": "Set to true to close any external files opened using the filePath input. Closing disposes all ouput objects\n\nbool\nDefault value : false",
"UsingDefaultValue": true,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Outputs": [
{
"Id": "d3acd40bec3e4ef4bf9d47f5ee624c03",
"Name": "report[][]",
"Description": "string[][]",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
},
{
"Id": "b22317c0c19649479ac73f3308a5835b",
"Name": "CADLinks[]",
"Description": "ImportInstance[]",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
},
{
"Id": "e4e1cd9565464a7e9b3beabda5061648",
"Name": "CADImports[]",
"Description": "ImportInstance[]",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "Generates a report of all CAD links and imports in the document with key metrics. Linked and Imported CAD links are output into lists to aid with CAD link management.\r\rVisit bimorph.com/bimorph-nodes for support\n\nCAD.ReportInstances (filePath: string = null, refresh: bool = true, close: bool = false): var[]..[]"
}
],
"Connectors": [
{
"Start": "d7078398e3cf47789204428886c997c1",
"End": "45837f9bfa10481da8655172bc56bc65",
"Id": "de3d442892064c19a65508245de79ecb"
},
{
"Start": "e4e1cd9565464a7e9b3beabda5061648",
"End": "80205f73b377487d899892f932079d67",
"Id": "4a4bb8eea590405a969f817beb280cad"
}
],
"Dependencies": [],
"Bindings": [],
"View": {
"Dynamo": {
"ScaleFactor": 1.0,
"HasRunWithoutCrash": true,
"IsVisibleInDynamoLibrary": true,
"Version": "2.0.2.6826",
"RunType": "Manual",
"RunPeriod": "1000"
},
"Camera": {
"Name": "Background Preview",
"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
},
"NodeViews": [
{
"ShowGeometry": true,
"Name": "Boolean",
"Id": "c456f88cb662433dbd83d6220cdec336",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 1509.94450445684,
"Y": -349.105934757922
},
{
"ShowGeometry": true,
"Name": "Elements.Delete",
"Id": "0f8b56853fca498ea235493c88ee163a",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 2081.42568542399,
"Y": -328.086319149476
},
{
"ShowGeometry": true,
"Name": "CAD.ReportInstances",
"Id": "2ed47be158014ff7b7d4e241959ac189",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 1730.3999211777927,
"Y": -377.98014266790528
}
],
"Annotations": [
{
"Id": "25fc7463fb2a423a9c8ae9ac18bb66af",
"Title": "Archilab",
"Nodes": [
"0f8b56853fca498ea235493c88ee163a"
],
"Left": 2071.42568542399,
"Top": -374.086319149476,
"Width": 216.0,
"Height": 139.0,
"FontSize": 30.0,
"InitialTop": -328.086319149476,
"InitialHeight": 123.0,
"TextblockHeight": 36.0,
"Background": "#FFA4E1FF"
},
{
"Id": "d3f5bcc6561542eb9f3763522cefa238",
"Title": "Bimorph",
"Nodes": [
"2ed47be158014ff7b7d4e241959ac189"
],
"Left": 1720.3999211777927,
"Top": -430.98014266790528,
"Width": 267.0,
"Height": 198.0,
"FontSize": 36.0,
"InitialTop": -377.98014266790528,
"InitialHeight": 175.0,
"TextblockHeight": 43.0,
"Background": "#FFA4E1FF"
},
{
"Id": "9eea704f77ce4ab39eba777525df9278",
"Title": "Bimorph\r\nArchilab",
"Nodes": [],
"Left": 1654.1729802016073,
"Top": -630.55299187257719,
"Width": 0.0,
"Height": 0.0,
"FontSize": 36.0,
"InitialTop": 0.0,
"InitialHeight": 0.0,
"TextblockHeight": 0.0,
"Background": "#FFC1D676"
}
],
"X": -1269.89022373573,
"Y": 710.279567267629,
"Zoom": 0.87895433218201
}
}

View File

@@ -0,0 +1,9 @@
# Dwg import cleaner
Removes **all** imported dwgs from drawing
## Required packages
- Bimorph nodes
- Archilab