Dynamo Creating filters by pick

Dynamo Creating filters by pick

LDShaw
Collaborator Collaborator
1,771 Views
1 Reply
Message 1 of 2

Dynamo Creating filters by pick

LDShaw
Collaborator
Collaborator

Right up front. I have not found Dynamo as a tool I can use so I have not set it up to be useful. This is just another try at creating something that perhaps will help the company and get people familiar with it.

I would like to have someone tell me if this is a good fit for Dynamo.

What I want is a good filter creator for pipe systems. Right now I have over 65 pipe systems in my template and we rename\recreate systems all the time. (We do industrial so I have mech pipes, process pipe, plumbing and general piping.) I would like to choose a system type by pick that will create the filter (I normally do the abbreviation but I am open to anything.) for me. This way I can take a BUNCH of filters out and perhaps people won't create several dozen duplicates or not use them because there are too many.

Is this a good use of Dynamo?

If this is a good Dynamo function perhaps someone has already done something similar so I don't have to reinvent the wheel? 

0 Likes
Accepted solutions (1)
1,772 Views
1 Reply
Reply (1)
Message 2 of 2

RPTHOMAS108
Mentor
Mentor
Accepted solution

Seems possible in terms of all the required nodes existing.

 

Enclosed is a graph that creates a view filter in the current view for the system of the selected pipe. I've only used the nodes that come with Dynamo in Revit 2021. Inputs have been configured for use in Dynamo Player.

 

Limitations:

Hard to visualise a colour as three numbers, I would have expected the Dynamo Player to support colour inputs but it doesn't as far as I know.

Once the view filter is created for a certain system attempting to create it again will show errors in the graph because the name already exists.

 

Personally I'd still rather write an A4 page of code for this in pure Revit API rather than something that looks like a bowl of spaghetti and meat ball nodes. You may get better advice for this on the Dynamo forum but it was a fun exercise none the less.