Help Filtering Title Block Parameters by Keyword and Displaying in DataShapes UI

Hi everyone,

I’m working on a Dynamo graph for a plugin with the following workflow:

  1. The graph prompts users to select existing sheets that contain the keyword “Plan” in their names.
  2. 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.
  3. 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:

  1. 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.
  2. 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!


It seems like String.Contains would be the simplest option for filtering parameters. You could do this for multiple substrings if necessary and then flatten/join your lists.

That’s kinda up to you but I would think a list selection like you’ve shown would be best for the selection of multiple parameters.