Set Slot Value of Measurement Instance

MagicDraw OpenAPI, scripting related questions and discussions

Moderator: Moderators

Set Slot Value of Measurement Instance

Postby lonniev@gmail.com » Fri Nov 09, 2018 12:24 pm

Given a reference to a UPDM Actual Measurement InstanceSpecification, what is either the Automation API code or the OpenAPI code to create new ValueSpecification Values for the MeasurementSet's Attributes?

I'd like to use a call like ModelHelper.createValueSpecification, passing it the Project reference and the value for the ValueSpecification as an EnumerationLiteralImpl. However, I am not coding all the steps properly and cannot find an implemented example to follow as a pattern.
lonniev@gmail.com
Forum Newbie
Forum Newbie
 
Posts: 4
Posts Rating:0
Joined: Mon Oct 15, 2018 1:56 pm

Re: Set Slot Value of Measurement Instance

Postby ahlstrom_christopher@bah.com » Thu Dec 13, 2018 11:07 am

You can do the operation manually while recording it into a macro, and then study the macro. However, after I record a macro and try to rerun it, I get errors related to getType(), whether using Jython or Groovy. It would be cool if you had better luck! --Chris
ahlstrom_christopher@bah.com
Forum Newbie
Forum Newbie
 
Posts: 3
Posts Rating:1
Joined: Thu Dec 13, 2018 10:37 am


Return to Programmatic Extendibility

Who is online

Users browsing this forum: No registered users and 2 guests