Skip to main content
1-Visitor
January 19, 2022
Solved

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

  • January 19, 2022
  • 2 replies
  • 1998 views

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

Best answer by PatrickOllerton

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%23wwID0E2AIID

 

regards,

Patrick

2 replies

16-Pearl
January 20, 2022

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%23wwID0E2AIID

 

regards,

Patrick

1-Visitor
January 20, 2022

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

 

 

24-Ruby III
January 20, 2022