Hide method in specific situations?

Questions regarding the use of the C++ SDK for Server or Client development or integration into customer products ...

Moderator: uasdkcpp

Post Reply
C.Thilo
Hero Member
Hero Member
Posts: 24
Joined: 12 Jan 2018, 13:22

Hide method in specific situations?

Post by C.Thilo »

Hey!
I want to reuse a custom type class created via UaModeler.

Is there a way to hide/show a method? Or enable/disable it?

Cheers,
Thilo

User avatar
Support Team
Hero Member
Hero Member
Posts: 3070
Joined: 18 Mar 2011, 15:09

Re: Hide method in specific situations?

Post by Support Team »

Hello Thilo,

it seems that you try to workaround an problem in your model. If possible I recommend to fix the model instead of trying to hide something (which is actually wrong from the modelling pint of view).
For example your could change the ObjectType and make that method optional. So when creating an instance you can decide if the method appears or not.
Best regards
Unified Automation Support Team

Post Reply