VC Setup For TC
VC Setup For TC
Visual
Studio Setup
1Purpose:
Purpose of this document is to define the process to setup build and debug custom DLL using VisualStudio.
2Assumption:
It is assumed that correct version of Microsoft Visual studio is installed. Microsoft Visual Studio is installed
tosupport 64 bit code generation.
3 Steps:
3.1 Create Properties file
Copy and paste following information is Text Editor. Make sure there no “line breaks” in the contents
forfollowing TAGS:
x AdditionalIncludeDirectories
x PreprocessorDefinitions
x AdditionalDependencies
x DelayLoadDLLs
<PreprocessorDefinitions>STEP;AP203;AP214;WIN32_LEAN_AND_MEAN;WNT;_CRT_SECURE_NO_DEPREC
ATE;_CRT_NONSTDC_NO_DEPRECATE;_SECURE_SCL=0;_HAS_TR1=0;_WIN32;WIN32;_WIN64;_INTEL=1;CR
TAPI1=_cdecl;CRTAPI2=cdecl;IMAN_TAO;BYPASS_FLEX;POMDLL;IPLIB=none;%(PreprocessorDefinitions)</P
reprocessorDefinitions>
<CompileAs>CompileAsCpp</CompileAs>
<AdditionalOptions>
</AdditionalOptions>
<Optimization>Full</Optimization>
<OmitFramePointers>true</OmitFramePointers>
Visual Studio Setup
<ProgramDataBaseFileName>$(TargetDir)$(TargetName).pdb</ProgramDataBaseFileName>
</ClCompile>
<Link>
<AdditionalOptions>/ignore:4099 /ignore:4199 %(AdditionalOptions)</AdditionalOptions>
<AdditionalDependencies>libsyss.lib;libpom.lib;libtcsso.lib;libae.lib;libappr.lib;libarchive.lib;libbackup.lib;lib
bom.lib;libcfm.lib;libconstants.lib;libcxpom.lib;libdmi.lib;libecm.lib;libeint.lib;libepm.lib;libfclasses.lib;libfor
m.lib;libgms.lib;libgrm.lib;libtcinit.lib;libtc.lib;libtccore.lib;libtctrushape.lib;libinternal_exits.lib;libvalidation.
lib;libitk.lib;liblov.lib;libme.lib;libmgc.lib;libobjio.lib;libpie.lib;libai.lib;libproperty.lib;libps.lib;libpublication.li
b;libqry.lib;libclips.lib;libclipsutil.lib;librbf.lib;libce.lib;libres.lib;libsa.lib;libss.lib;libstep.lib;libsub_mgr.lib;libt
extsrv.lib;libtie.lib;libnxmgr_im.lib;libaie.lib;libics.lib;libeintstub.lib;libsml.lib;libuser_exits.lib;librdv.lib;libcol
labctx.lib;libmechatronics.lib;libtccoreext.lib;libusagewc.lib;libusage.lib;libcontmgmt.lib;libtc_utils.lib;libsch
mgt.lib;libschmgt_bridge.lib;libdocmgt.lib;libdocmgtapp.lib;libvm.lib;libadsfoundationdispatch.lib;libcm.lib;
libcmdispatch.lib;libbase_utils.lib;libmld.lib;libfunctionality.lib;libmfg.lib;libmfgbvr.lib;libtcserverutil.lib;libc
ondvalidation.lib;libbooleanmath.lib;libconfigurator.lib;libfnd0booleansolve.lib;libsecore.lib;libFnd0formula
mgmt.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalLibraryDirectories>TC_ROOT\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<DelayLoadDLLs>libtcsso.dll;libict.dll;libae.dll;libappr.dll;libarchive.dll;libbackup.dll;libbom.dll;libcfm.dll;libd
mi.dll;libecm.dll;libeint.dll;libepm.dll;libform.dll;libgrm.dll;libtccore.dll;libtctrushape.dll;libinternal_exits.dll;
libitk.dll;libvalidation.dll;liblov.dll;libme.dll;libmechatronics.dll;libmgc.dll;libobjio.dll;libproperty.dll;libps.dll;
libpublication.dll;libqry.dll;libres.dll;libstep.dll;libsub_mgr.dll;libtccoreext.dll;libnxmgr_im.dll;libpie.dll;libai.
dll;%(DelayLoadDLLs)</DelayLoadDLLs>
<SubSystem>Console</SubSystem>
<TargetMachine>MachineX64</TargetMachine>
<PreventDllBinding>false</PreventDllBinding>
<ProgramDatabaseFile>$(TargetDir)$(TargetName).pdb</ProgramDatabaseFile>
</Link>
</ItemDefinitionGroup>
</Project>
@echo off
3.3Create Preference
OOTB TC 10.1 does not defined TC_customization_libraries preference. For custom libraries to be
recognized by tcserver, it is required to have the preference and include the library name (without .dll)in
this preference.
1. Start Teamcenter
2. In Teamcenter got Edit->Options menu. Following dialog will be displayed
3.Click on Filters
Visual Studio Setup
6. Click “Ok”
7. New project is created
8. Select “Configuration Manager” from drop down for “Win32” list
11. Select “x64” for “Platform” and “<Empty>” for “Copy setting from:”. If not available
forselection then enter “x64”.
12. Click “OK”
13. Close “Configuration Manager” window
14. New configurations “Debug | x64” and “Release | x64” will be created as shown
15.
33.
34. Navigate to the folder where header file resides and select all required header files and
click“Add”
Visual Studio Setup
42. If a directory for the custom header file was added in .props file and it does not exists.
Thenremove that folder by selecting the line and clicking on “X”.
43. Now click on “Folder” ICON to add desired header file folder
44. This will display a “…” (three dot browse) button to browse for folder.
45.Click on “…” button and browse to folder where header files resides and click “Select Folder”