Hi All
At the moment I have a script like below
The issue is its cumbersome to manually select each each lintel and then run the script. Is there a way I can select all of family type instead of manually selecting model elements?
Hi All
At the moment I have a script like below
The issue is its cumbersome to manually select each each lintel and then run the script. Is there a way I can select all of family type instead of manually selecting model elements?
define category name in “String” then u have to sort family type as per “mark” value
Try Like this
thanks but its not quite working with how I need the inputs. Ive tried how vijay suggested but that doesnt work either.
Here is the script to get a better understanding. changes lintel size based on the opening size
what is the error what you want to achieve?
Don’t try all of them in a single shot try one by one.
so in simple way lets say theres these two lintels. When I run the script the one in yellow( which is the 75x75x6) must be selected. The one in blue must not be selected when I run it.
If I knew how to select elements by placing in ID that would help, I just dont know what the syntax is for that
The issue with the select model element is that its a click and drag process. But if I could select everything that is 75x75x6 that would be perfect
then you need filter by particular parameter for your need.
The All Elements of Family Type node solves this query, so I’m marking that as the solution.
To select by an Element ID use the Element By ID node (newer Revit versions) or the Element.ByID node from the clockwork package.
If you want to select an element by mark or other instance parameter value:
Note that this will require list lacing and levels to be applied if you have a list of target values.
okay but do I replace what I circled in red with what is circled in blue?
Yep
A waitfor method. There is a node in clockwork for this, but you can also use a line of design script like this [a,b][0];
That said there might be a better way as your image is unreadable (use the export canvas as
Image button in the top right after zooming in - looks like a camera). Please start a new thread as this is unrelated to the topic.