powered by CADENAS

Manual

Manual

3.3.10.1. Teamcenter - Inventor

How does the PDM integration work?

During the export form PARTsolutions to a CAD system an inquiry is sent to the LinkDB, whether the part is already available:

  • If yes, the part is automatically exported from the server in the TCAI cache and opened in the CAD system.

  • If no, the part is created in the locale cache and from there checked into Teamcenter. Afterwards this information is saved in the LinkDB and the part now saved in the TCAI cache is opened in the CAD system.

Preconditions and particularities

The file name can either come from PARTsolutions or from Teamcenter. This is adjustable (see below under Filename).

Installation

Please carry out the Teamcenter installation on the basis of the Teamcenter manual. For the interface installation please select the Teamcenter package in the PDM category within the installation routine. Alternatively you can download the interface from the internet.

Activate PDM interface:

  • $CADENAS_SETUP/ifacecommon.cfg

    "AppBeforeCreate" and "AppAfterCreate" have to be commented in.

    [CreationOptions]
    AppBeforeCreate=GetObject("pdm.callbackCheckinout").AppBeforeCreate
    AppAfterCreate=GetObject("pdm.callbackCheckinout").AppAfterCreate

  • $CADENAS_SETUP/ifinvteamcenter.cfg

    ACTIVE_CONDITION has to be set on "true".

    [PLM]
    ACTIVE_CONDITION=true

Configuration

The Teamcenter interface configuration is carried out under $CADENAS_SETUP/ifinvteamcenter.cfg.

  • ItemID

    [CreationOptions]
    TC_ItemId=

    If the ItemID shall come from Teamcenter, then leave this key empty.

    The following example shows, how you can define the ItemID yourself:

    TC_ItemId=?GetObject("iface.calcnameservice").start(0).
     Format("<ATTR(NB)>").alnum("").value()

    The display name in the following figure is composed of TC_ItemId and TC_ItemPartNumber (here in this example NB=standard name).

    "TC_ItemId" assigned from Teamcenter and "TC_ItemPartNumber" from NB

    "TC_ItemId" assigned from Teamcenter and "TC_ItemPartNumber" from NB

    Detailed information how you can individually adjust the ItemID is found under Section 2.2.1.4, “Variable values - functions ” or in the examples of the configuration file.

  • Revision

    [CreationOptions]
    TC_ItemRevision=

    If nothing is declared, then revision “A“ is used by default. If nothing is declared for TC_ItemId in addition, then the revision is determined by Teamcenter.

  • ItemPartNumber

    [CreationOptions]
    TC_ItemPartNumber=

    Exemplary entry:

    TC_ItemPartNumber=?GetObject("iface.calcnameservice").start(0).Format("<GenNAME(26)>").
     alnum("").value()

    For ItemPartNumber the standard name (GENNAME) is set.

  • ItemDescription

    [CreationOptions]
    TC_ItemDescription=

    Exemplary entry:

    TC_ItemDescription=?GetObject("iface.calcnameservice").start(0).
     Format("<ATTR(LINA)>").value()

    For ItemDescription the bom name is set.

  • ItemType

    [CreationOptions]
    TC_ItemType=

    Here you can define the ItemType for parts from PARTsolutions. If this key is not defined, then the type “Item“ is used.

  • TargetFolder

    [PLM]
    TC_TargetFolder=

    Here you can define the storage folder for parts from PARTsolutions. This folder has to be available in Teamcenter. However subdirectories are automatically created by the interface (see subfolder). If nothing is declared here, then the folder “Newstuff“ is used by default.

  • Filename

    [CATEGORIES]
    FR_0=GetObject("iface.contextservice").GetVariable("UserApp").
     GetObject("iface.teamcenter").getSitePreference2("TCAI_file_rename")="0"
    FR_1=GetObject("iface.contextservice").GetVariable("UserApp").
     GetObject("iface.teamcenter").getSitePreference2("TCAI_file_rename")="1"
    FNR_0=GetObject("iface.contextservice").GetVariable("UserApp").
     GetObject("iface.teamcenter").getSitePreference2("TCAI81_file_name_rule")="0"
    FNR_1=GetObject("iface.contextservice").GetVariable("UserApp").
     GetObject("iface.teamcenter").getSitePreference2("TCAI81_file_name_rule")="1"
    FNR_2=GetObject("iface.contextservice").GetVariable("UserApp").
     GetObject("iface.teamcenter").getSitePreference2("TCAI81_file_name_rule")="2"
    
    [CreationOptions]
    Filename(FR_1,FNR_0)=?"%TC_ItemId%"
    Filename(FR_1,FNR_1)=?"%TC_ItemId%-%TC_ItemPartNumber%"
    Filename(FR_1,FNR_2)=?"%TC_ItemId%-%TC_ItemDescription%"

    The file name can either come from PARTsolutions (configuration as usual) or can be calculated according to the both Teamcenter „Site-Preferences“ „TCAI_file_rename“ and „TCAI81_file_name_rule“. In the above example then the placeholders %TC_ItemId%, %TC_ItemPartNumber% and %TC_ItemDescription% are replaced by the respective values.

  • DeleteFilesAfterUpload

    [PLM]
    deleteFilesAfterUpload=1

    If this key is set on 1, then the files are deleted from the locale cache after checkin to Teamcenter (default). Otherwise (0) the files are left in the locale cache.

  • CHECKOUT_NEWEST_REVISION

    [CreationOptions]
    CHECKOUT_NEWEST_REVISION=0

    If this key is set on 1, then always the latest revision of a Teamcenter part is exported. Otherwise possibly available files from the TCAI cache are opened or files of the oldest revision are exported.

  • Subfolders

    [CreationOptions]
    teamcenterFolderExt=

    Here you can determine the Teamcenter subfolder structure. Then the subfolders are automatically created in Teamcenter, if they do not exist yet. If no subdirectories shall be used, then please comment out this key.

    Exemplary entry:

    teamcenterFolderExt=?GetObject("iface.calcnameservice").start(0).
     Format("<CATALOGFOLDERNAME(1)>").value()

    Here a subfolder structure analogously to the catalogs is used.

  • Overwrite files

    [CreationOptions]
    OVERWRITE_AUTOMATICALLY=0

    Here you can determine, whether files in the TCAI cache shall be automatically overwritten (1) or be asked at first (0).

  • LinkDB ReturnMapping

    Via LinkDB-ReturnMapping, PDM attributes can be mapped to link database fields.

    At first, in the block [AttributeMapping(is3d)], the block for the actual LinkDB mapping has to be declared (as usual).

    [AttributeMapping(is3d)]
    Attr_Content_00=LINKDB_RETURN_MAPPING
    Attr_Section_00=LINKDB_RETURN_MAPPING

    Now in NX, start PARTdataManager as usual and export the parts into the CAD system. Now the parts are automatically exported to Teamcenter. <ERP_COLUMN_NAME> or LINKTABLE.<ERP_COLUMN_NAME> have to be an existing VARCHAR column!

    Example:

    [LINKDB_RETURN_MAPPING(is3d)]
    ERPTABLE.<ERP_COLUMN_NAME>=?"'%TC_ItemId%'"

    ERPTABLE.<ERP_COLUMN_NAME> specifies table and column, the value the placeholder to be used. Thereby the ItemId for example (which is possibly created during the generation in Teamcenter) can be saved in the LinkDB.

    Supported placeholders for ERPTABLE.<ERP_COLUMN_NAME> are:

    • %TC_ItemId%

    • %TC_ItemRevision%

    • %TC_ItemName%

    • %TC_ItemDescription%

    • %TC_TargetFolder%

    • %TC_ItemType%

    After a new creation of parts the project has to be reloaded in PARTdataManager in order for the PDM values to be displayed.

Checking functions in the CAD system

In order to use the Inventor-Teamcenter integration, please start PARTdataManager via Inventor (TCAI Addin has to be loaded) and export the parts into your CAD system. Now the parts are automatically exported to Teamcenter.

The following figure shows a part with the Teamcenter-ID '000216' both in Teamcenter and in PARTdataManager.

For further additional functions see Section 3.3.10.5, “Teamcenter additional functions (teamcenter_public_api.vbb) ”.