question

Matthieu M avatar image
0 Likes"
Matthieu M asked Matthieu M commented

How to create a new category in the library

Hi,

We are creating new objects and are storing them in our module and everything works just fine.

Howerver we would like to organize our items in a dedicated library category, like the conveyor for example which have its own dedicated category.
So, I create a new node inside "MAIN/project/library", and start putting objects in it.
The problem is that this category do not appears in the sidebar. We can't then drag and drop our items on a model.
By the way, except the fact that it's invisible, everything works fine, I can instanciate objects with the "createinstance".
And if I put my items in "MAIN/project/library/fixedresources" instead, the object appears.

Can you tell me how to create a visible category ?

Thank you !

modules
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Phil BoBo avatar image
2 Likes"
Phil BoBo answered Matthieu M commented

You need to modify the library view with your module.

Add a node to:

VIEW:/standardviews/modelingutilities/LibraryIconGrid/GroupIconGrid>variables/visibilityLists/base/list

Be sure to close and reopen the Library window after making changes to its definition in the tree. You won't see your changes to a view until you create a new instance of it by closing and reopening it.

· 4
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Matthieu M avatar image Matthieu M commented ·

Yes, thank you, it works !

0 Likes 0 ·
Matthieu M avatar image Matthieu M Matthieu M commented ·

By the way, is this the same principle for every treenode ?
For example, if I want to save list or processflow templates in my module ?

0 Likes 0 ·
Phil BoBo avatar image Phil BoBo ♦♦ Matthieu M commented ·

Yes, in general, you can adjust the tree however you like with your module. If there's something in particular that you are trying to do and you can't figure out how to do it, ask another question like this one and we'll point you in the right direction.

0 Likes 0 ·
Show more comments