Creating a Dynamo script to select individual families an change the parameter in sequential order

Creating a Dynamo script to select individual families an change the parameter in sequential order

dcastellanosQATWC
Explorer Explorer
2,934 Views
2 Replies
Message 1 of 3

Creating a Dynamo script to select individual families an change the parameter in sequential order

dcastellanosQATWC
Explorer
Explorer

I am learning Dynamo to create a script that will allow the user to change the shared parameter "BE_Riser Sequential Order" on individual families by:
1. determine the starting number (type in)

2. asking if the starting number is to be the input (True) otherwise use a counting system to increase the number by 1 (false)

3. have the user select the family (Select Model Element by Category)

The program will finish with an output to file or globalparameter to give a value of the current number + 1, which will be used as the new input value for the Sequential Order.

 

I cannot do a select by floor or select by all elements because the devices are placed and we wire them up in a continuous line and we create a riser diagram based on the order of how the wire touches the devices.

 

Coming from a LISP background I thought I could use an alternative SETQ by exporting and importing the the values. I am finding out that Dynamo does not work like this.

dcastellanosQATWC_1-1679885834940.png

 

2,935 Views
2 Replies
Replies (2)
Message 2 of 3

moturi.magati.george
Autodesk
Autodesk

Hi @dcastellanosQATWC,

 

You can try to ask the question on the Dynamo forum which has a lot of experts.
https://forum.dynamobim.com/

  Moturi George,     Developer Advocacy and Support,  ADN Open
Message 3 of 3

sayu94
Enthusiast
Enthusiast
Hello. If you want to make it this several elements - you must to use node "SelectModelElements"