How to get a full names of cateories in file?


#1

How to extract all names of categories in a file by python.
I need to get a list of names of categories in the file for working with it in the future.


#2

There are lot of ways to get them:

And if you look at this :


#3

YES!!! It works. Thank you very much.
Only thing I changed was deleting a “cut” from OUT.


#4

Now I wish to separate system categories from user categories, used categories from unused categories, and so on


#5

Dear Johannes how to get parameters by Category ID.


#6

The search function is a friend, friend! You’ll want to read some posts on list filtering and GetParameterValueByName.


#7

Hi,
here are some of the methods and classes for Categories.
To Find the categories of the objects in the active project, I would suggest simply using the combination of select model Elements and element.Getcategory