DynamoDS / DynamoRevit

Dynamo Libraries for Revit
https://dynamobim.org
334 stars 187 forks source link

[Missing Element] Categories node missing 'Structural Framing - Structural Opening Cut' category in dropdown #2092

Open Amoursol opened 6 years ago

Amoursol commented 6 years ago

Dynamo version

Dynamo 1.3.3

Operating system

Windows 10

What did you do?

Was looking to pull all Openings from the model.

What did you expect to see?

The ability to choose 'Structural Framing - Structural Opening Cut' category in the drop down.

What did you see instead?

As per the attached image, I can use a Select Model Element node in conjunction with a Element.GetCategory node to successfully create a category, but cannot seem to find it in the drop down menu (Unless it's been otherwise named and is not inherently obvious to me).

dynamogithub_missing_category

Cross-post from the DynamoDS Issues registry for 8991

Amoursol commented 6 years ago

After exploring this issue today, it appears that the there is no Document.Settings.Categories category for Openings, only the OST type (If utilising a FilteredElementCollector) and if you run up the inheritence tree it runs into a 'null' parent. So this is probably a Revit API issue rather than a Dynamo one - so @jnealb @smangarole @Racel feel free to close if needed.

You can capture Openings under the Element Types UI node. Just seems funky to utilise 'GetCategory' to allow it to push through into a node capturing elements by Category.

dynamoforumissue_openings