Classes vs Categories

In this thread I asked how to select an AutoCAD item. : https://forum.dynamobim.com/t/autocad-category/96937

When I look at the category each CAD item seems to have a different category. Is that right? #Confused

I think so, but it would help to see what you are seeing…

image

What I’m trying to do is get a pop up and specify the category to click on.

There doesn’t seem to be an AutoCAD category.

I’d rather not have a drop down as it’s prone to messing up (unless you’ve fixed this in R23).

I want the categories.

What dropdown? The class dropdown? Fixed in 2021 if memory serves.

I’ve found that if you have a drop down in a Dyno script but the category isn’t in the Revit model you open that it can switch which causes all sorts of mischief.

1 Like

Can’t say I have seen this. Got an example that is post 2021 sourced?

My AU2022 presentation shows how this is still not consistent.

Further adding to the pain of the “Fix” you mention @jacob.small.

Dynamo graphs made in Revit 2023 with the “fixed” dropdowns are no longer backward compatible to older Revit versions unless you install “Dynamo Future File”.


The simplest way to look at dropdowns in Dynamo is…

Only use them if you expect/want someone to change it as an input. Because it can change at any moment without any warning on you. If you don’t need it to change, hardcode that value!

2 Likes

Any idea how do I hardcode this?

image

Oh and thanks @john_pierson … That’s my CPD sorted for this week :smiley:

1 Like

Hmm, monocle should do that for you. If not, you should be able to use an element type by name node I think.

I’ve just watched this. It’s awesome!

Also… there was an OMG moment, I had no idea you could add an image in the properties. I’ve been converting to base64, opening graph in Visual Studio and editing, “thumbnail”.
I even went to the trouble of writing some Python for a base 64 conversion.

How stupid do I feel right now :rofl:

Also your graph resizerer, have you thought of adding 0.5 / 0.75 so you can shrink too?

2 Likes

Ooh. Nice idea! I can add it.

2 Likes