This node allows you to use Creo files (.asm, .prt) within an optiSLang workflow. Select a file in the node and the parameters and results are displayed in the editor.
Setup
Follow these required setup steps carefully:
Install the VB API.
Start the Creo install and select
.In Application Selection click .
Select
and select the check box.
Register the VB API.
Locate the vb_api_register.bat file in your Creo installation directory, for example, ...\Creo 6.0.0.0\Parametric\bin\vb_api_register.bat.
Run the vb_api_register.bat file as an administrator.
A command line window opens and closes without a message.
Set the
PRO_COMM_MSG_EXE
environment variable.Create a new environment variable with the name
PRO_COMM_MSG_EXE
.Set the value to the full path of the pro_comm_msg.exe executable, for example, C:\Program Files\PTC\Creo 6.0.0.0\Common Files\x86e_win64\obj\pro_comm_msg.exe.
Open Creo Parametric at least once before using it in optiSLang.
Parameters and Responses
The integration opens the model and scans the model parameters. Each changeable object is listed as an available parameter in the integration dialog box. All unchangeable objects are listed as available responses. Parameters and responses can be registered using drag and drop.
The optiSLang setting Customization:Customized integrations use tree view controls whether the parameters and responses are presented as a list or a tree structure. To use the setting, from the menu bar select > . After changing the setting, restart optiSLang.
The following types are supported:
Creo Parameter | Example | optiSLang Parameter | Example | optiSLang Response | Example |
---|---|---|---|---|---|
Yes No | my_exp = true | BOOL | my_exp = true | BOOL | my_exp = true |
String | my_exp = "test" | STRING | my_exp = "test" | - | - |
Real Number | my_exp = 1.5 | REAL | my_exp = 1.5 | REAL | my_exp = 1.5 |
Integer | my_exp = 1 | INTEGER | my_exp = 1 | INTEGER | my_exp = 1 |
Settings
The Creo integration node provides the following settings:
Tab | Name | Default value | Description |
---|---|---|---|
Execution | Install path | C:\Program Files\PTC\Creo 5.0.0.0\Parametric\bin | The location of the parametric.exe executable. |
Export | Export as jpeg | True | Save current model view as a jpeg file to the design directory. |
Run Options
This node has general Run Options. The number of supported options is individual for each node.
Versions and Requirements
Operating System
Windows
Supported Versions
See the Supported Integration Versions table.
Troubleshooting
The integration creates log files that you should refer to first when encountering an error:
If the error happens in the integration node when trying to load a project file, you can find the log file (projectname.cadlog) in the same folder as the project file.
If the error happens during the integration run, you can find the log files in the working directory of the optiSLang project.
Additionally you can try the following steps:
Make sure that all setup steps were performed exactly as written above.
Make sure all instances of Creo are closed:
Open Task Manager.
Switch to the Details tab.
Close all instances of xtop.exe, pro_comm_msg.exe, and parametric.exe.
Restart your system. In some cases this solves issues with the VB API.