Custom Entity OPM pallet

yysy112
Participant
Participant

Custom Entity OPM pallet

yysy112
Participant
Participant

Hi,

 

I'm trying to create OPM pallet for my custom entity.

Each of the entity has different nums of properties, the properties should be put in different categories. And the names of the categories are also different.

But I found the MapPropertyToCategory and GetCategoryName method is NOT called every time the OPM class constructed.

Is there any way to tell the OPM class to call the methods?

 

Should my OPM class inherited from IDynamicProperty? any examples?

0 Likes
Reply
Accepted solutions (1)
270 Views
2 Replies
Replies (2)

yysy112
Participant
Participant

I found that "GetCategoryName" is always called for dispID 0x401, which is the "ObjectName".

However for my custom dispIDs, "GetCategoryName" is not always called. It seems like there is some cache, and it wont be called until the cache is out of date.

How can I make the cache out of date?

How to make "GetCategoryName" always called for all my custom dispIDs, just the same as 0x401?

0 Likes

yysy112
Participant
Participant
Accepted solution

Solved by using dynamic property.

0 Likes