Creo

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:

  1. Install the VB API.

    1. Start the Creo install and select Install new software.

    2. In Application Selection click Customize.

    3. Select Creo Parametric and select the VB API for Creo Parametric check box.

  2. Register the VB API.

    1. 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.

    2. Run the vb_api_register.bat file as an administrator.

      A command line window opens and closes without a message.

  3. Set the PRO_COMM_MSG_EXE environment variable.

    1. Create a new environment variable with the name PRO_COMM_MSG_EXE.

    2. 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 Edit > Settings. After changing the setting, restart optiSLang.

The following types are supported:

Creo ParameterExampleoptiSLang ParameterExampleoptiSLang ResponseExample
Yes Nomy_exp = trueBOOLmy_exp = trueBOOLmy_exp = true
Stringmy_exp = "test"STRINGmy_exp = "test"--
Real Numbermy_exp = 1.5REALmy_exp = 1.5REALmy_exp = 1.5
Integermy_exp = 1INTEGERmy_exp = 1INTEGERmy_exp = 1
Settings

The Creo integration node provides the following settings:

TabNameDefault valueDescription
ExecutionInstall pathC:\Program Files\PTC\Creo 5.0.0.0\Parametric\binThe location of the parametric.exe executable.
ExportExport as jpegTrueSave 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
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:

  1. Make sure that all setup steps were performed exactly as written above.

  2. Make sure all instances of Creo are closed:

    1. Open Task Manager.

    2. Switch to the Details tab.

    3. Close all instances of xtop.exe, pro_comm_msg.exe, and parametric.exe.

  3. Restart your system. In some cases this solves issues with the VB API.