Hide custom shape class from Create panel (C++ SDK)

Hide custom shape class from Create panel (C++ SDK)

Anonymous
Not applicable
1,012 Views
5 Replies
Message 1 of 6

Hide custom shape class from Create panel (C++ SDK)

Anonymous
Not applicable

I implemented a custom shape class:

class MyCustomShape : public SplineShape
{
// some work
}

And then I registered it through the call of the LibClassDesc function, as detailed in the Required DLL functions  documentation. But I really don't want it to be available in the Create panel, just through some UI components I implemented, is it possible?

0 Likes
Accepted solutions (1)
1,013 Views
5 Replies
Replies (5)
Message 2 of 6

istan
Advisor
Advisor
Accepted solution

Should

IsPublic() { return false; }

not do this ?

Usually I fight with not showing it 😉

0 Likes
Message 3 of 6

Anonymous
Not applicable

Right, sir. Thanks! 🙂

0 Likes
Message 4 of 6

denisT.MaxDoctor
Advisor
Advisor

well... but just for reference... it makes the plugin not visible for whole system (except api), not only for the modify (or create) panel. Which makes the plugin not creatable via mxs for example.

0 Likes
Message 5 of 6

istan
Advisor
Advisor

Well, could be - I never used it before. I usually fight with the opposite, that my code does not show at all 😉

On the other hand with some code lines for MXS it could get "accessible" again.

0 Likes
Message 6 of 6

denisT.MaxDoctor
Advisor
Advisor

honestly i could not find the way how to make api plugin 'invisible' for Create(Modify) panel, the same easy way as we can do it for a scripted plug-in by specifying #invisible option.  

0 Likes