cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

“.AddDirected” function for the Integrity Modeler Automation Interface with SysML

MF_10162955
4-Participant

“.AddDirected” function for the Integrity Modeler Automation Interface with SysML

Hello PTC-Community,

does anyone have experience with creating SysML-Blocks via the Integrity Modeler Automation Interface? Whenever I try to create a Block Property I just get the UML alternative. Also, I did not find a way to specify the name of the newly created part yet. Support would be really appreciated!

 

 

Screenshot 2022-01-19 183900.png

 

 

 

 

 

 

 

 

 

Thank you and best regards

 

Max

1 ACCEPTED SOLUTION

Accepted Solutions

Hello,

 

AFAIK, there is no way to create SysML objects in one go with the API; it is necessary first to create the item, then add to the created item the blockproperty stereotype.

 

The relevant Help page is here:

https://support.ptc.com/help/modeler/r9.4/en/#page/Integrity_Modeler%2Fole%2FAddDirected.html%23wwID...

 

regards,

Patrick

View solution in original post

3 REPLIES 3

Hello,

 

AFAIK, there is no way to create SysML objects in one go with the API; it is necessary first to create the item, then add to the created item the blockproperty stereotype.

 

The relevant Help page is here:

https://support.ptc.com/help/modeler/r9.4/en/#page/Integrity_Modeler%2Fole%2FAddDirected.html%23wwID...

 

regards,

Patrick

Hello Patrick, 

 

thanks a lot, this really helped me out. For everyone facing a similar problem, this is the code I used to create a new SysML Block property called "NewBlockProperty" (Type Real) for the SysML Block "Block1":

 

 

MF_10162955_0-1642706510678.png

 

 

Announcements