Read object styles imported objects layer data?

Hi all,
I have been looking in the forum but cannot find a related topic.
Is it possible to read Object styles Imported Objects layer data via API?
layer name, line weight,…

is this possible?

Object Styles is just the UI for the default graphic style and material of each category. Categories aren’t actually broken down into the tabbed groups within the Revit DB so you’ll have to know exactly which categories you’re looking for (or filter by file extension for imports). From there, you just get the GraphicStyle from the category and then the properties of that style. You can get all project Categories, including imports, from doc.Settings.Categories.

2 Likes

something maybe,

Hi Nick,

Thanks for the info.

I will give it a go.

Hi Sovitek, that is what I am after, is the Node CAD Layer ObjectStyle Dynamo Native or belong to any specific package? if so can you tell Package and version please?
Thanks

latest version :wink: and Genius Loci :wink:

amazing, thanks