Coding can be done either in external coding platforms like visual studio or using Teamcenter BMIDE application. Siemens suggests BMIDE for coding the server side customization. In this blog, let us see how to set up BMIDE for coding.
Set up a Business Modeler IDE project for coding
Modify BMIDE.bat file
- When you install or configure the Business Modeler IDE, set up the JDK location and a compiler application.
- The bmide.bat file starts the Business Modeler IDE. Set the location of the JDK in the install-location\bmide\client\bmide.bat file.
set JRE_HOME=C:\Program Files (x86)\Java\jrex
set JAVA_HOME=C:\Program Files (x86)\Java\jdkx.x.x
set JDK_HOME=C:\Program Files (x86)\Java\jdkx.x.x
- Set TC_ROOT variable to Teamcenter installation path.
if not defined TC_ROOT set TC_ROOT=C:\Apps\Teamcenter12\TC_ROOT
- On Windows when Microsoft Visual Studio is used for compiling, a call to the vcvarsall.bat file in the bmide.bat file is required. The call should be before the PATH statement. Add Visual studio bin directory to path variable.
call "C:\apps\MVSxx\...\vcvarsall.bat"
set PATH=%JDK_HOME%\bin;%JRE_HOME%\bin;TC_ROOT\lib;%FMS_HOME%\bin;%FMS_HOME%\lib;%PATH%;C:\apps\MVSxx\...\VC/BIN
BMIDE batch file |
Build Configuration & Code Generation
- Open the project template in BMIDE for which you are going to create library and generate code.
- Open Build configuration by right click project->Properties in Navigator.
- Select Build configuration and add the compiler home with visual studio path.
Build Configuration |
- Select Code generation and define the source folder for generating code. The files are generated to this mentioned path.
Code Generation |
Create Library
- If custom library is not created, create a new library in Extensions/Code Generation/Libraries. Right click Libraries folder and click New Library.
- Create new library and set it as Active library.
- To set a active library, right click the corresponding library-> Organize->Set as active library.
Generate C++ Classes
- Select the project -> Generate Code -> C++ Classes. This should generate make file and other c++ files.
C++ Classes |
- Project->Project Build should build the dll.
In the next blog, I will show how to write a custom handler in BMIDE and build the DLL. Teamcenter custom handler build in BMIDE
Comments
Post a Comment
Share your feedback