Hello,
I want to create a above mentioned reference between self defined types with the UaModel application. Found some hints to do so ... e. g. 'create variable for a type, set the dimension for that variable ...', and so on. But, how can I define those variables as 'Array' or 'List' type.
Any help is appreciated.
Thanks in advance, Michael.
One to many reference
Moderator: Support Team
- Support Team
- Hero Member
- Posts: 3068
- Joined: 18 Mar 2011, 15:09
Re:One to many reference
Hello Michael,
You can add a one-to-many-realtionship between two types by using the modelling rule "MandatoryPlaceholder".
For example you have a VariableType VType and an ObjectType OType. OType has an instance declaration with the type definition VType and the modelling rule MandatoryPlaceholder. This means that an instance of OType must have at least one child with the TypeDefinition VType.
Kind Regards, Support Team
You can add a one-to-many-realtionship between two types by using the modelling rule "MandatoryPlaceholder".
For example you have a VariableType VType and an ObjectType OType. OType has an instance declaration with the type definition VType and the modelling rule MandatoryPlaceholder. This means that an instance of OType must have at least one child with the TypeDefinition VType.
Kind Regards, Support Team
Best regards
Unified Automation Support Team
Unified Automation Support Team