Added AddTitleblockAsParameterToAllSheets.dyn

This commit is contained in:
2019-06-01 14:11:01 +02:00
parent e6920ffc13
commit 67692d1db0
4 changed files with 754 additions and 0 deletions

View File

@@ -0,0 +1,739 @@
{
"Uuid": "00d15c1b-c18d-4a30-ab5f-e278f43ba219",
"IsCustomNode": false,
"Description": null,
"Name": "AddTitleblockAsParameterToAllSheets",
"ElementResolver": {
"ResolutionMap": {}
},
"Inputs": [
{
"Id": "82061c19a52e41a8a9bd8f35ee165931",
"Name": "Parameter to fill",
"Type": "string",
"Value": "Titleblock",
"Description": "Creates a string."
}
],
"Outputs": [],
"Nodes": [
{
"ConcreteType": "DSRevitNodesUI.ElementsOfCategory, DSRevitNodesUI",
"NodeType": "ExtensionNode",
"Id": "fe5f17c12e6e4cfb8517cb002bb59143",
"Inputs": [
{
"Id": "47e128639a674f2a81f9e557bb63c5d8",
"Name": "Category",
"Description": "The Category",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Outputs": [
{
"Id": "50d1282fdcbc4667b6093f0c49d20450",
"Name": "Elements",
"Description": "An element type.",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Disabled",
"Description": "Get all elements of the specified category from the model."
},
{
"ConcreteType": "DSRevitNodesUI.Categories, DSRevitNodesUI",
"SelectedIndex": 447,
"NodeType": "ExtensionNode",
"Id": "6fe4ce1857d44b36aee831cc3431428f",
"Inputs": [],
"Outputs": [
{
"Id": "aa7458c53b154cf6a4ad4170fa6d70c8",
"Name": "Category",
"Description": "The selected Category.",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Disabled",
"Description": "All built-in categories."
},
{
"ConcreteType": "DSRevitNodesUI.Categories, DSRevitNodesUI",
"SelectedIndex": 586,
"NodeType": "ExtensionNode",
"Id": "17eaad8d3f634ad486e85425ef6db379",
"Inputs": [],
"Outputs": [
{
"Id": "1c13d37f7151436d9fae329843d3044f",
"Name": "Category",
"Description": "The selected Category.",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Disabled",
"Description": "All built-in categories."
},
{
"ConcreteType": "DSRevitNodesUI.ElementsOfCategory, DSRevitNodesUI",
"NodeType": "ExtensionNode",
"Id": "33e3cdea849748009e9df4f36fdbf476",
"Inputs": [
{
"Id": "8f26b8a0f45a4a329a48d5578fd3016e",
"Name": "Category",
"Description": "The Category",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Outputs": [
{
"Id": "ccbe17a2e244485b8b17966768038a41",
"Name": "Elements",
"Description": "An element type.",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Disabled",
"Description": "Get all elements of the specified category from the model."
},
{
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
"NodeType": "FunctionNode",
"FunctionSignature": "Revit.Elements.Element.GetParameterValueByName@string",
"Id": "0ba7a2319d2f45eab9ce50b68edfd455",
"Inputs": [
{
"Id": "6587ffe1d0154ecda79a71e67c11004d",
"Name": "element",
"Description": "Revit.Elements.Element",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
},
{
"Id": "449c387db21941a5ad803f9db062934a",
"Name": "parameterName",
"Description": "The name of the parameter whose value you want to obtain.\n\nstring",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Outputs": [
{
"Id": "e7f48ed43aee4d6bb731e4fab1654e1a",
"Name": "var[]..[]",
"Description": "var[]..[]",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "Get the value of one of the element's parameters.\n\nElement.GetParameterValueByName (parameterName: string): var[]..[]"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore",
"NodeType": "CodeBlockNode",
"Code": "\"Sheet Number\";",
"Id": "849ec080251b4e7aac946bd31420fe79",
"Inputs": [],
"Outputs": [
{
"Id": "9dcda4952a1f45d8bb59c79ffb5826f4",
"Name": "",
"Description": "Value of expression at line 1",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Disabled",
"Description": "Allows for DesignScript code to be authored directly"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
"NodeType": "FunctionNode",
"FunctionSignature": "List.SortByFunction@var[]..[],Function",
"Id": "71ef30ffc3ae4cccb964a2517d2a5765",
"Inputs": [
{
"Id": "5469dc5135884d338fea064c5e9231db",
"Name": "list",
"Description": "list of values\n\nvar[]..[]",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
},
{
"Id": "546d28fd48e9422d9dbe76721becfd70",
"Name": "func",
"Description": "Function",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Outputs": [
{
"Id": "afcf7c501f3d4d6d986df90ded99dbf2",
"Name": "var[]..[]",
"Description": "var[]..[]",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "Use a function to determine how list items should be sorted.\n\nList.SortByFunction (list: var[]..[], func: Function): var[]..[]"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
"NodeType": "FunctionNode",
"FunctionSignature": "Revit.Elements.Element.SetParameterByName@string,var",
"Id": "6e29baa7d6c8422d83ad1746717dfd22",
"Inputs": [
{
"Id": "91dce4ece5f141268581e42eb4a0e9ee",
"Name": "element",
"Description": "Revit.Elements.Element",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
},
{
"Id": "bba4ecb3eac244159be068350d96c252",
"Name": "parameterName",
"Description": "The name of the parameter to set.\n\nstring",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
},
{
"Id": "66170788b98b401eaaa75df7a9c5245b",
"Name": "value",
"Description": "The value.\n\nvar",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Outputs": [
{
"Id": "e01657bd0b9548759aaf2c5da9a07920",
"Name": "Element",
"Description": "Element",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "Set one of the element's parameters.\n\nElement.SetParameterByName (parameterName: string, value: var): Element"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
"NodeType": "FunctionNode",
"FunctionSignature": "Revit.Elements.FamilyType.Name",
"Id": "2a923849d22c4f94b4b389d1e1583051",
"Inputs": [
{
"Id": "e221d67d4d6a44339ba30cacd4aa86a0",
"Name": "familyType",
"Description": "Revit.Elements.FamilyType",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Outputs": [
{
"Id": "2503c23ea3884f9bbed40a78a9c2c5dd",
"Name": "string",
"Description": "string",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "Get the name of this Family Type\n\nFamilyType.Name: string"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore",
"NodeType": "CodeBlockNode",
"Code": "\"Sheet Number\";",
"Id": "77b2500d3ddf4370a2525cc4304f3be2",
"Inputs": [],
"Outputs": [
{
"Id": "86ab5b476fb149fca7cc3c63282fca05",
"Name": "",
"Description": "Value of expression at line 1",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Disabled",
"Description": "Allows for DesignScript code to be authored directly"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
"NodeType": "FunctionNode",
"FunctionSignature": "Revit.Elements.Element.GetParameterValueByName@string",
"Id": "d2f107955d6042a79affc1a1e9ae79a9",
"Inputs": [
{
"Id": "63dc4bc98e814d0eabc3109ca6246481",
"Name": "element",
"Description": "Revit.Elements.Element",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
},
{
"Id": "9e1749c309314079b28a3460bc52561d",
"Name": "parameterName",
"Description": "The name of the parameter whose value you want to obtain.\n\nstring",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Outputs": [
{
"Id": "53af92cd5bbc47b18228e3b536da5a82",
"Name": "var[]..[]",
"Description": "var[]..[]",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "Get the value of one of the element's parameters.\n\nElement.GetParameterValueByName (parameterName: string): var[]..[]"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
"NodeType": "FunctionNode",
"FunctionSignature": "List.SortByFunction@var[]..[],Function",
"Id": "d30fadbd0f3d448d9304f321bccb8d59",
"Inputs": [
{
"Id": "efcf99dba86e4715962f8862ad5699b5",
"Name": "list",
"Description": "list of values\n\nvar[]..[]",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
},
{
"Id": "8e3d6e6463234cff945d79365a1b145e",
"Name": "func",
"Description": "Function",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Outputs": [
{
"Id": "c60a4a1b34ff4111bca66862038104d5",
"Name": "var[]..[]",
"Description": "var[]..[]",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "Use a function to determine how list items should be sorted.\n\nList.SortByFunction (list: var[]..[], func: Function): var[]..[]"
},
{
"ConcreteType": "CoreNodeModels.Input.StringInput, CoreNodeModels",
"NodeType": "StringInputNode",
"InputValue": "Titleblock",
"Id": "82061c19a52e41a8a9bd8f35ee165931",
"Inputs": [],
"Outputs": [
{
"Id": "af83638cb64d406d82fc4d4c3da9c465",
"Name": "",
"Description": "String",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Disabled",
"Description": "Creates a string."
}
],
"Connectors": [
{
"Start": "50d1282fdcbc4667b6093f0c49d20450",
"End": "efcf99dba86e4715962f8862ad5699b5",
"Id": "9a6f0758a15b4092a97c4f94247b0106"
},
{
"Start": "aa7458c53b154cf6a4ad4170fa6d70c8",
"End": "47e128639a674f2a81f9e557bb63c5d8",
"Id": "630685bd7efd49eba66a8549da59ddad"
},
{
"Start": "1c13d37f7151436d9fae329843d3044f",
"End": "8f26b8a0f45a4a329a48d5578fd3016e",
"Id": "0042b287862a4c8397ad66e072240ba0"
},
{
"Start": "ccbe17a2e244485b8b17966768038a41",
"End": "5469dc5135884d338fea064c5e9231db",
"Id": "2081cc3fdcd8410dbee44f3228effb2f"
},
{
"Start": "e7f48ed43aee4d6bb731e4fab1654e1a",
"End": "546d28fd48e9422d9dbe76721becfd70",
"Id": "7d74d6bd73544bc98816bf575080c457"
},
{
"Start": "9dcda4952a1f45d8bb59c79ffb5826f4",
"End": "449c387db21941a5ad803f9db062934a",
"Id": "50bb0c18d4d74d7495863f5d27d5918a"
},
{
"Start": "afcf7c501f3d4d6d986df90ded99dbf2",
"End": "e221d67d4d6a44339ba30cacd4aa86a0",
"Id": "6eb583544450499fa26765a174bf8d14"
},
{
"Start": "2503c23ea3884f9bbed40a78a9c2c5dd",
"End": "66170788b98b401eaaa75df7a9c5245b",
"Id": "f724b3439be74ce4bb68f8c2a0039423"
},
{
"Start": "86ab5b476fb149fca7cc3c63282fca05",
"End": "9e1749c309314079b28a3460bc52561d",
"Id": "d57bf9103b3940399165e30c729cce1d"
},
{
"Start": "53af92cd5bbc47b18228e3b536da5a82",
"End": "8e3d6e6463234cff945d79365a1b145e",
"Id": "3c77c8e1d6754f8e961aa948bc8b2f69"
},
{
"Start": "c60a4a1b34ff4111bca66862038104d5",
"End": "91dce4ece5f141268581e42eb4a0e9ee",
"Id": "f81ad3bd4fb94b1cae3c6620258b5111"
},
{
"Start": "af83638cb64d406d82fc4d4c3da9c465",
"End": "bba4ecb3eac244159be068350d96c252",
"Id": "0a84c7dafafb44d68dbbc684d983d8ae"
}
],
"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": "All Elements of Category",
"Id": "fe5f17c12e6e4cfb8517cb002bb59143",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 1036.4660802992857,
"Y": -147.57456887474393
},
{
"ShowGeometry": true,
"Name": "Categories",
"Id": "6fe4ce1857d44b36aee831cc3431428f",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 770.46608029928586,
"Y": -147.57456887474393
},
{
"ShowGeometry": true,
"Name": "Categories",
"Id": "17eaad8d3f634ad486e85425ef6db379",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 696.83419968138048,
"Y": 593.55107238660457
},
{
"ShowGeometry": true,
"Name": "All Elements of Category",
"Id": "33e3cdea849748009e9df4f36fdbf476",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 962.83419968138048,
"Y": 593.55107238660457
},
{
"ShowGeometry": true,
"Name": "Element.GetParameterValueByName",
"Id": "0ba7a2319d2f45eab9ce50b68edfd455",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 910.96389290936258,
"Y": 840.29253878525344
},
{
"ShowGeometry": true,
"Name": "Code Block",
"Id": "849ec080251b4e7aac946bd31420fe79",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 656.96389290936258,
"Y": 870.50587211858681
},
{
"ShowGeometry": true,
"Name": "List.SortByFunction",
"Id": "71ef30ffc3ae4cccb964a2517d2a5765",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 1273.9638929093626,
"Y": 814.29253878525344
},
{
"ShowGeometry": true,
"Name": "Element.SetParameterByName",
"Id": "6e29baa7d6c8422d83ad1746717dfd22",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 1869.0774958298389,
"Y": 498.39637696473858
},
{
"ShowGeometry": true,
"Name": "FamilyType.Name",
"Id": "2a923849d22c4f94b4b389d1e1583051",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 1583.5164691941497,
"Y": 677.78294216211259
},
{
"ShowGeometry": true,
"Name": "Code Block",
"Id": "77b2500d3ddf4370a2525cc4304f3be2",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 686.49039509048987,
"Y": 95.469354379964955
},
{
"ShowGeometry": true,
"Name": "Element.GetParameterValueByName",
"Id": "d2f107955d6042a79affc1a1e9ae79a9",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 940.49039509048987,
"Y": 65.256021046631645
},
{
"ShowGeometry": true,
"Name": "List.SortByFunction",
"Id": "d30fadbd0f3d448d9304f321bccb8d59",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 1303.49039509049,
"Y": 39.256021046631645
},
{
"ShowGeometry": true,
"Name": "Parameter to fill",
"Id": "82061c19a52e41a8a9bd8f35ee165931",
"IsSetAsInput": true,
"IsSetAsOutput": false,
"Excluded": false,
"X": 698.62531875264438,
"Y": 309.25950061043807
}
],
"Annotations": [
{
"Id": "5b6fd38221f341c887fc2d17f7efbca1",
"Title": "Get all titleblocks",
"Nodes": [
"17eaad8d3f634ad486e85425ef6db379",
"33e3cdea849748009e9df4f36fdbf476"
],
"Left": 686.83419968138048,
"Top": 540.55107238660457,
"Width": 460.0,
"Height": 146.0,
"FontSize": 36.0,
"InitialTop": 593.55107238660457,
"InitialHeight": 133.80596373342848,
"TextblockHeight": 43.0,
"Background": "#FFC1D676"
},
{
"Id": "80f8a554bccd4bf08207b8df8baf9293",
"Title": "Sort titleblocks by sheet number",
"Nodes": [
"0ba7a2319d2f45eab9ce50b68edfd455",
"849ec080251b4e7aac946bd31420fe79",
"71ef30ffc3ae4cccb964a2517d2a5765"
],
"Left": 646.96389290936258,
"Top": 761.29253878525344,
"Width": 826.0,
"Height": 202.21333333333337,
"FontSize": 36.0,
"InitialTop": 814.29253878525344,
"InitialHeight": 422.97611670303991,
"TextblockHeight": 43.0,
"Background": "#FFC1D676"
},
{
"Id": "e376eea54ec54dbebd5e66cb0d2e8dbf",
"Title": "Get all sheets",
"Nodes": [
"fe5f17c12e6e4cfb8517cb002bb59143",
"6fe4ce1857d44b36aee831cc3431428f"
],
"Left": 760.46608029928586,
"Top": -200.57456887474393,
"Width": 459.99999999999989,
"Height": 146.0,
"FontSize": 36.0,
"InitialTop": -147.57456887474393,
"InitialHeight": 140.98498291185666,
"TextblockHeight": 43.0,
"Background": "#FFC1D676"
},
{
"Id": "386b3537be104e80be6f6e63ba5e1ce0",
"Title": "Sort sheets by sheet number",
"Nodes": [
"77b2500d3ddf4370a2525cc4304f3be2",
"d2f107955d6042a79affc1a1e9ae79a9",
"d30fadbd0f3d448d9304f321bccb8d59"
],
"Left": 676.49039509048987,
"Top": -13.743978953368355,
"Width": 826.00000000000011,
"Height": 202.21333333333331,
"FontSize": 36.0,
"InitialTop": 39.256021046631645,
"InitialHeight": 422.97611670304,
"TextblockHeight": 43.0,
"Background": "#FFC1D676"
},
{
"Id": "ac8fdd44e4b44149ad8563a259fb2866",
"Title": "Fill parameters",
"Nodes": [
"6e29baa7d6c8422d83ad1746717dfd22",
"2a923849d22c4f94b4b389d1e1583051"
],
"Left": 1573.5164691941497,
"Top": 445.39637696473858,
"Width": 575.56102663568913,
"Height": 325.386565197374,
"FontSize": 36.0,
"InitialTop": 498.39637696473858,
"InitialHeight": 440.8653749903512,
"TextblockHeight": 43.0,
"Background": "#FFC1D676"
},
{
"Id": "b6e3af17a10b48fca4c3bfc86f4ae529",
"Title": "Input",
"Nodes": [
"82061c19a52e41a8a9bd8f35ee165931"
],
"Left": 688.62531875264438,
"Top": 256.25950061043807,
"Width": 132.0,
"Height": 121.0,
"FontSize": 36.0,
"InitialTop": 309.25950061043807,
"InitialHeight": 98.0,
"TextblockHeight": 43.0,
"Background": "#FFFFB8D8"
}
],
"X": 5.3429113943172979,
"Y": 549.72279360896778,
"Zoom": 0.31212081180106271
}
}

View File

@@ -0,0 +1,7 @@
# AddTitleblockAsParameterToAllSheets
Adds the type name of the titleblocks to each sheet as aparameter. Useful for showing the sheet size in a sheet list. The parameter have to be created beforehand, can be shared or project, must be instance and text. The name of the parameter can be modified in Player. The default parameter name is "Titleblock".
UI: DynamoPlayer
Package requirements: None

View File

@@ -12,6 +12,14 @@ State: stable
UI: Data-shapes UI: Data-shapes
### AddTitleblockAsParameterToAllSheets
Adds the type name of the titleblocks to each sheet as a parameter.
State: Stable
UI: DynamoPlayer
### BuldingPadsFromElements ### BuldingPadsFromElements
Create building pad from selected elements. Create building pad from selected elements.