Parametric Enumeration Constraint

Discussions about systems engineering product SysML functionalities

Moderator: Moderators

Parametric Enumeration Constraint

Postby jlaub@draper.com » Wed Aug 08, 2018 7:31 am

Hello,

I am trying to build a constraint in a parametric diagram to check if particular standards have been chosen for an instance specification.

I have a value type with an enumeration that contains possible standards. This will be selected (there could be multiple) for each instance specification.

How can I build a constraint block to check and see if MIL-STD 810G is chosen? Designs without this standard should fail for example.

Thank you,
Joseph
You do not have the required permissions to view the files attached to this post.
jlaub@draper.com
Forum Newbie
Forum Newbie
 
Posts: 17
Posts Rating:1
Joined: Mon May 21, 2018 10:16 am

Re: Parametric Enumeration Constraint

Postby zilvinas.strolia@nomagic.com » Fri Aug 10, 2018 7:24 am

Hello,

You can use scripts to check for enumeration value.
For example in JavaScript expression could look like this:

Code: Select all
d= (xyz== 'Second')? 25:15;


And in Parametric Diagram script in constraint would look like this:

Screenshot_1.png


Best Regards,
No Magic Inc. Customer Support
You do not have the required permissions to view the files attached to this post.
zilvinas.strolia@nomagic.com
Forum Beginner
Forum Beginner
 
Posts: 35
Posts Rating:3
Joined: Fri Dec 04, 2015 2:18 am


Return to SysML

Who is online

Users browsing this forum: No registered users and 1 guest