Hi everyone,
I’m working on a Dynamo graph for a plugin with the following workflow:
- The graph prompts users to select existing sheets that contain the keyword “Plan” in their names.
- It then prompts users to select existing key plan parameters from a title block. Examples of such parameters are “Key Plan,” “Unit A,” “Unit B,” etc., depending on what exists in the selected title block.
- Users can select one or multiple sheets and apply these key plan parameters. This sets the selected parameter(s) to
true
, enabling corresponding features (e.g., turning on key plan outlines for the building).
I’m encountering two issues:
- Filtering Parameters by Keyword:
I need to filter the parameters available in a title block by a specific keyword (e.g., “Key Plan”). While I can retrieve all parameters, narrowing them down by keyword is proving challenging. - Displaying Filtered Parameters in a DataShapes UI:
While I can successfully filter sheets by the keyword “Plan” and display them in a DataShapes UI for user selection, I’m struggling to do the same for the filtered title block parameters. I want to display these parameters as selectable items in a similar manner.
Could someone guide me on how to approach these issues? Specifically:
- How can I efficiently filter title block parameters by keyword?
- What is the best way to output the filtered parameters as a selectable list in a DataShapes UI?
Any examples or suggestions would be greatly appreciated! Thank you!