Home

- ServiceNet - T

image

Contents

1. class message x0WkBnch x3GetExportRefNanes input string classname input string expNamingSchema input string tcPartNumber input string tcObid input string tcClassname input string tcDbName input string catFileName input NULL string catNomenclature input NULL string catRevision input NULL string catDefinition input NULL string catDescription input NULL string extPartNumber input NULL string extFileName input NULL string extNomenclature input NULL string extRevision input NULL string extDefinition input NULL string extDescription output string partNumber output string fileName output string nomenclature output string revision output string definition output string description output SetOfStrings pStats output integer mfail with classname x0Wkbnch expNamingSchema Identifier for schema to be used tcPartNumber Catia Part Number from Teamcenter tcObid TC Obid tcClassname TC Classname tcDbName TC Db name catFileName Filename in CATIA catNomenclature Nomenclature in CATIA catRevision Revision in CATIA catDefinition Definition in CATIA catDescription Description in CATIA extPartNumber External Part Number from mapping file extFileName External File ame from mapping file extNomenclature External Nomenclature from mapping file extRevision External Revision from mapping file extDefinition External Definition from mapping file extDescrip
2. 5 FIGURE 4 MODEL HAS PLOT FILE RELATION 5 FIGURE 5 AN EXAMPLE ASSEMBLY 6 FIGURE 6 DATA MODEL EXTENSIONS FOR 7 FIGURE 7 ONE DOCUMENT FOR EACH CATPART 0 6480 00 14 FIGURE 8 ONE DOCUMENT FOR ALL CATPARTS 0oooccccccccnononononcnnconononenananocanonononnancnancnnnnnnnn 14 FIGURE 9 ONE DOCUMENT FOR EACH CATPART 0 4 64000 14 FIGURE 10 CATPART AND CATPRODUCT IN SAME 15 FIGURE 11 SIMPLE DRAFT WITH DRAWING FRAME CONVENTIONS eene 25 FIGURE 12 USER DEFINED PROPERTIES uuuunnnesnaaaannnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnennnnn 30 FIGURE 13 DATA MODEL EXTENSIONS FOR SUPPORT OF 2 2 2 38 FIGURE 14 CATIA OPTIONS CACHE MANAGEMENT 39 FIGURE 15 MODEL FILTER PREFERENCES 42 FIGURE 16 CHANGE VIEWER PREFERENCE 0cccccccceceeeeeeeececeseceaueeeeeceeeeuaeaueaseeeeeeeeaneneess 42 FIGURE 17 VIEWER PREFERENCES DIALOG 00cccccccccseeeeececececeeeaeeeeeseceesesueaueuseeeeeueeaneneees 42 FIGURE 18 MML SUPPORT 6 0 4 00001 46 FIGURE 19 REPRESENTATION FORMATS IN CA
3. 5 5 96 FIGURE 36 CLASS HIERARCHY UNDER 1100 44 97 FIGURE 37 CLASS HIERARCHY UNDER GOREPITM 6 98 CMI Customizing Guide xi 1 Overview Individual parts and multiple layer assemblies can now be processed directly in CATIA thanks to the integration of CATIA into Teamcenter Enterprise for this the CATIA data is under the control of Teamcenter Enterprise The CATIA Workbench in Teamcenter Enterprise serves as the communication medium between the PDM System Teamcenter Enterprise and the CAD System CATIA This is a special structure browser which displays the current storage contents of the CATIA session graphically and provides manipulation facilities Bi CATIA Workbench v5 CMI EDMG136 20050 nl xl File Action Info Query Options View Help 06 Kurbelbol Kurbelbolzey 1 77570 Crankshaft Crankshaft A 04 Kurbelwel 3 Kurbelwellel 1 548410 05_Kurbelwel Kurbelwelle 1 486519 4 gt 3 objects are expanded 1 objects are expanded Expansion complete hd Figure 1 CATIA Workbench The entire data interchange between Teamcenter Enterprise and CATIA is effected via the Workbench CMI Customizing Guide 1 2 System Architecture The component
4. Teamcenter Interface CMI Release 10 8 Customizing Guide Copyright Contact 1999 2015 T Systems International GmbH All rights reserved Printed in Germany T Systems International GmbH GDC Product Lifecycle Management Fasanenweg 5 70771 Leinfelden Echterdingen Germany http www cmi support com Diui gt 49 0 40 5395 2020 49 0 391 5801 25688 mail cmi_support t systems com Manual History Version This edition obsoletes all previous editions Date November 1996 February 1997 July 1997 March 1998 December 1998 May 1999 September 1999 April 2000 July 2000 September 2000 December 2000 August 2001 December 2001 July 2002 January 2003 July 2003 March 2004 September 2004 April 2005 September 2005 Version Date March 2006 October 2006 March 2007 October 2007 March 2008 October 2008 March 2009 October 2009 April 2010 October 2010 April 2011 October 2011 April 2012 October 2012 April 2013 October 2013 April 2014 October 2014 April 2015 October 2015 CMI Customizing Guide Trademarks CATIA is a registered trademark of Dassault Syst mes Teamcenter Enterprise is a registered trademark of Siemens PLM Corporation Names of other products mentioned in this manual are used only for identification purpose and may be trademarks of their companies CMI Customizing Guide iii Preface About this Guide This guide de
5. 45 MME SUPPORT etaed ed der taret ei en eR eee Haee cubase eR cd de i eR a 46 e denied iti eee ae in 46 Installation 46 ConfIg ratiOh ile tete e bp en ctr ed te RA t 46 Customizable Methods nnns nnns nnns 47 REPRESENTATION FORMATS CATIA nnns 47 AUTOMATIC UPDATE OF CATDRAWING TITLE BLOCKS WITH TEAMCENTER DATA 48 TRANSFER OF WEIGHT PROPERTIES INERTIA FROM CATIA V5 TO TEAMCENTER 49 SET BOM TYPE OF NEW CATIA FILES BY 50 CUSTOM EXPAND IN THE CMI CATIA WORKBENCH 4 44 0 enne nnne 51 Customization example ssi sienne rns nnns tnn 52 SUPPLY ATTRIBUTES FROM CATIA TEAMCENTER AND BACK 54 Supply Attributes from Catia to Teamcenter sse 54 Supply Attributes from Teamcenter to Catia 1 2 410200000000000000000000000 54 SUPPLY FILE FROM CATIA TO TEAMCENTER 55 Supply File from Catia to Teamcenter sse 55 POST PROCESS CATPRODUCTS FOR SYNCHRONIZE 55 ENABLE PDM CENTRIC SYNCHRONIZE esses eene nennen nnns nennen 56 Validate actions
6. in the CATIA environment When Synchronize or Update is finished CMI will call the Teamcenter method x3PostProcCreatePrd Information is provided about each CATProduct and the Teamcenter Part that it represents message xOWkBnch x3PostProcCreatePrd input string className CMI Customizing Guide 55 input string partNumber input string sPartClassName input string SPartOBID input NULL string sPartDbName input string sPrdClassName input string SPrdOBID input NULL string sPrdDbName update SetOfStrings vStats output integer mfail code AAA Enable PDM Centric Synchronize In CMI 9 7 a new concept for Synchronize Teamcenter has been devised The goal of this effort was to minimize Teamcenter CATIA roundtrips The classic Synchronize function would perform each operation individually with the benefit of immediate user feedback in CATIA eg for each Part created However this had the downside of slow progress where complex product structures or remote sites were involved The new Synchronize processes the product structure entirely in Teamcenter Only few roundtrips are necesssary regardless of the size of the product structure Since the entire process has been renovated we cannot guarantee that the new Synchronize is compatible with every existing customization though this was naturally our goal Therefore the new process is optional in CMI 9 7 Setting the environment variable
7. sFeedback String is supplied bCompleted TRUE if Synchronize succeeded HRESULT S OKif success E_FAIL f failure Failure does not stop processing 22 CMI Customizing Guide A sample Visual Studio Project to create the customizing DLL is provided in data CMICAA CMICusCallbackWorkspace zip Configuration The custom callbacks are enabled by setting CMI_ENABLE_CUSTOMIZATION ON CMICusCallback dll is installed in the PATH CMI Customizing Guide 23 5 Optional CMI Features Plotting a model Conventions The CATIA Teamcenter Interface permits an automatic update of title blocks in CATIA models with title block values that are retrieved from Teamcenter Enterprise The CMI functionality identifies title blocks in a CATIA model by means of a naming convention This naming convention is threefold in the way that it affects three levels of CATIA data in the model whose identifiers have to start with strings qualifying them to be constituents of a title block Those qualifying identifier sub strings are to be defined for drafts if any draft identifier starts with the qualifying string the CMI function continues to search for Views if any view identifier starts with the qualifying string the CMI function continues to search for dittos referring to details if any detail identifier starts with the qualifying string defining a title block the CMI function retrieves a
8. IN IN IN RTIA VOLUME 1 5707963267948968e 004 DENSITY 1 0000000000000000e 003 RTIA AREA 2 1991148575128551e 002 E Ed pd ELLE EI Set Bom Type of new Catia files by Teamcenter customization In the Synchronize dialog all new Catia files are presented with a Bom Type Bom Non Bom Not Set This Bom Type is initialized by a default and can be changed by the user Depending on the Catia V5 config variable CMI GET BOMTYPE FROM TC ON the values for the Bom Type are fetched from Teamcenter 50 Customizing Guide With Standard CMI the bomType is set i e the Bom Type in Catia remains unchanged If you want to customize the setting of the Bom Type you have to override message xOWkBnch x3GetBomType input string strClassname input NVSET nvsObjinfos input NULL NVSET nvsUserDefInfos input NULL NVSET nvsParentobj Infos input NULL NVSET nvsParentUserDefInfos output string bomType HE output integer mfail code Allowed values for the return value bomType NOT SET BOM NOT BOM For all other values the Bom Type in Catia remains unchanged The NVSET nvsObjInfos contains the following Catia attributes for the new Catia File if available PARTNUMBER FILENAME NOMENCLATURE The NVSET nvsUserDefInfos contains the User Defined attributes for the new Catia File if existent The NVSET nvsPare
9. classname sOldFilename sOldDescription sOldObid sOldClassname sOldDbName sOldMstrObid sOldMstrClassname sOldMstrDbName scriptObj sMstrObid sMstrClassname sMstrDName sErrorMsg mfail The default implementation of this method displays a Teamcenter query for Generic Script with the supplied attributes pre filled Return the script object to insert into the Catalog as scriptObj Override x3GetScriptForUseClg to change the way the script is retrieved when the catalog is used class message g0GenBin x3GetScriptForUseClg input string input string input string input string input NULL string input NULL string input NULL string output ObjectPtr output string output integer classname sObid sClassname sDbName sMstrObid sMstrClassname sMstrDbName scriptObj sErrorMsg mfail The default implementation of this method retrieves the CATScript by OBID G Product Bounding Boxes With Configurable Node Behavior in CMI it is possible that CATProducts reference 3D geometry that is not stored in Teamcenter but rather included from the CATIA environment eg to include Standard Parts from catalogs 64 CMI Customizing Guide As these parts are not represented in Teamcenter they would not be part of the result of a DMU neigborhood search This is adressed by the CATProduct bounding boxes which are placeholders for exactly those Parts that are external to
10. set CMI PLMXML STARTUP SYNC WIN ON for batch startup on Windows set VIEWER ENCODING to the charset used in th plmxml file if it is different from ISO 8859 1 Class Constants in xOWkBnch x4ViewDocToJtRelClassC Attach x4ViewDocToJtRelShipC DataltemsAttachedToBusltem x4ViewModToJtRelClassC GenDeriv x4ViewModToJtRelShipC GenDerivSourceOfltem x4ViewJtModelClassC IndepBin Customization You can define the way JTs or CGRs are retrieved by overriding the following customisation messages For JTs attached to the Parts Document this is object message xOCTItem x3GetViewerFileSet input ObjectPtr partRep input ObjectPtr partObj input string viewFormat input ObjectPtr workBench output SetOfStrings pHosts output SetOfStrings pUsers output SetOfStrings pFullPaths output SetOfStrings pNewFileNames output integer iStatus output integer mfail code More than one JTs can be attached to a document If the JTs are linked to the CATParts Has Visualization it is message x0ModRep x3GetViewerFile input ObjectPtr modelRep input ObjectPtr modelObj input string viewFormat input ObjectPtr workBench output string sHost output string sUser output string sFullPath output string sNewFileName output integer iStatus output integer mfail code Only one JT is expected for any one CATPart PartRep modelRep is the Representation Object for the Object messag
11. CATString amp sValue CATString amp sReturnCode Get Attribute from Teamcenter This Function calls x3GetAttValueForObject in Teamcenter In pDocument CATDrawing to examine in Teamcenter sAttribute sAttributeName Out sValue sAttributeValue sRetum Code Message from Teamcenter Supply Attribules from Teamcenter to Catia CAA Function HRESULT CMISupplyPartAttributeToTC const CATIProduct var spProduct const CATString amp sAttribute CATString amp sValue CATString amp sReturnCode Supply Attribute to Teamcenter This Function calls x3SupplyAttValueForObject in Teamcenter In CATProduct to examine in Teamcenter sAttribute sAttributeName sValue sAttributeValue Out sReturnCode Message from Teamcenter CAA Function HRESULT CMISupplyDrawingAttributeToTC const CATDocument pDocument const CATString amp sAttribute CATString amp sValue CATString amp sReturnCode Get Attribute from Teamcenter This Function calls x3SupplyAttValueForObject in Teamcenter CMI Customizing Guide In pDocument CATDrawing to examine in Teamcenter sAttribute sAttributeName Out sValue sAttributeValue sReturnCode Message from Teamcenter Supply File from Catia to Teamcenter CMI provides a set of APIs which transfer a file from CATIA to Teamcenter This functions can only be used within a customer specific CATIA application CAA or Automation Customizing on Teamcenter is required Standard Teamcente
12. data appdefault obj This file contains some environment settings of the CATIA V4 module Please refer the README environment for more information The used syntax is lt parameter gt lt value gt Some parameters are named parameter example If you want to set this parameter you have to delete the extension example data ERREDB 74 CMI Customizing Guide This file contains the error messages in CATIA V4 data dshdrawingframe sh This file contains some information how to fill a drawing title block data cleanbox All text inside the boxes described in this file will be deleted during filling the drawing frame data plotconf This file contains the options of the CATIA V4 PLOT UTILITY data catiaedb msg This file contains a list of all used messages appearing in CATIA V4 when you are using the CMI Module You can customize this message file to your own needs data catiaedb menu This file contains a list of all menu points of the CMI Module You can change each menu point to your own needs A menu name consists of 8 characters at maximum An empty entry means that the menu point is disabled data edmhelp conf If xpdf is used as help tool this file contains the bindings between the menu and the pages of the help file If you write an own help file you must edit this file HOME exchangemap This directory is a local UNIX directory in user s home directory On each CATIA VA
13. input string sClassName input string sOrigCatRepClassName input NULL string sOrigFileName input NULL string sOrigPartNumber output string sNewCatRepClassName output integer mfail code Override this message to provide dedicated classes for individual Catia Vb Shape representations The default Class name returned is xOCatRep If you introduce your own Representation classes they should derive from this base class uuu Automatic update of CATDrawing title blocks with Teamcenter data Customizing option to fill in Drawing title block from Teamcenter data Implement the customizing message x3GetParamForFileV5 to define Teamcenter data that should be transfered to Knowledgeware Parameters in Catia V5 gt 1 v5 CMI 20070118_Drw3 Start File Edit Insert Tools CMI Window m no ton 6 85 xe utat iV 20070118 Drw3 Parameters mr 1 PdmOwner Sp a Te z Sheet ne F E DASSAU view SAT Tm Immer Left vi 1 1 0 43 2007011 LJ eft view This drawing is our property it can t be reproduced or communicated witl Edit Paramete PdmOwner 48 Customizing Guide x C N cancel cie Figure 21 CATDrawing title block Override the Customizing message x3GetParamForFileV5 in Teamcenter to define the attributes for Catia class message gO0GenBin x3GetParamForFileV5 input string sClassname input Ob
14. to provide the information about referenced CATIA files to Teamcenter CMI_ENABLE_CMIEXTERNALDOCCMD ON Default OFF Set this environment to to enable the Get Referenced Geometries button in CATIA ENABLE CMIGETDEPBYCMD ON Default OFF Set this environment to to enable the Get Depended By Geometries button in CATIA V5 Teamcenter Customizing is required due to version ambiguities CMI E LRA GES ADA ERAS Get Depended By Geometries CMI x SAAGESSEBSE MB A Figure 18 MML support buttons CMI Customizing Guide Customizable Methods Manage dependencies during Update Synchronize Create SaveAs message x0CTFile x3UpdateDepV5 input ObjectPtr this input NULL NvSet ModelInfos update SetOfStrings vStats output integer mfail Get Referenced Geometries message xOCTFile x3DependsOnFiles input ObjectPtr this output SetOfObjects depFiles output integer mfail Get Depended By Geometries message xOCTFile x3IsDependedOnByFiles input ObjectPtr this output SetOfObjects depOnByFiles output integer mfail When you are using Get Depended By Geometries you have to make sure your customizing of x3lsDependedOnByFiles filters the depended by files It is not possible to load multiple versions of one file into CATIA V5 O Representation Formats CATIA V5 The CATIA V5 module can be configured to support CA
15. Comment CMI_CREATE_V4_WITH_PARENT If set the Create V4 Command only works in the Product Structure with a selected CatPart CMIXMAP The location of the Catia V5 Exchange Map CMI_DEBUG If Set to ON the Debug output is written to stdout else no output is created CMI REMOVE CMIREADCMD If Set the Read Command is not available CMI REMOVE CMIUPDATECMD If Set the Update Command is not available CMI REMOVE CMICREATECMD If Set the Create Command is not available CMI REMOVE CMISAVEASCMD If Set the SaveAs Command is not available CMI REMOVE CMIUPDATECREATECMD If Set the Synchronize Command is not available REMOVE CMICREATEVACMD If Set the CreateV4 Command is not available REMOVE CMISAVEASVACMD If Set the SaveAsV4 Command is not available CMI REMOVE CMIINFOCMD If set the Info command is not available 86 CMI Customizing Guide CMI REMOVE CMIHLINWBCMD If set the Highlight in Workbench command is not available REMOVE _CMIUPDATECREATEINTERACTIVECMD If set the Update and Create Interactive command is not available CMI REMOVE CMIINFOCMD If set the CMI Info command is not available SAVEAS V4 WITH DIRTYCHECK If Set the SaveAsV4 Command only works with saved CatParts SAVEAS V4 WITH CMICHECK If Set the SaveAsV4 Command only works with CatParts from CMI CMI USE COMMAND SUBMENU if Set
16. If set to OFF no result is shown CATDUAV5 COMMAND Command to start 5 optional Default catstart run CATBatchStarter input CONFIG output OUTDIR CMI ARCHIVE ALLOW BROKEN LINKS If set to ON broken links in CMI Archive are ignored Default is OFF broken links are not allowed in a CMI Archive PREVENT DIFFERENT VERSIONS If set to ON To Catia is checked against different versions of same file in Catia and in WB CMI Customizing Guide 91 DYNAMIC CATALOG If set to ON CMI stores the Part Master ID in CATCatalogs Manage Catalogs opens always the latest version of the Part and not a static revision CMI READ INERTIA If set to inertias from CATParts and CATProducts will sent to Teamcenter if set to ONLY CATPART only the inertias of CATParts will sent to Teamcenter CMI CONFINE INERTIA TO MAINBODIES If set to the inertias sent to Teamcenter are confined to those of main part bodies CMI ENABLE CRE ANALYSIS ARCHIVE If set to ON the Button CreateArchive is enabled if the top level node is a CATAnalysis CMI ANALYSIS ARCHIVE OWN WINDOW If set to ON CMlArchives with CATAnalysis as top level node will load into an own window in Catia CMI NEW SYNCHRONIZE If set to ON enable the new SynchronizeCmd and disable the old Synchronize update and Create functions SKIP RO
17. BOM Create Y 2 2 CATPart BOM Create Y Edit PDM Part category Validate operations 1 Info 1 Synchronize Close 1 Figure 32 Synchronize dialog with CATIA node names E g the column Name is not shown by default but it contains the text configured in the customized display for Reference Product AA Ege Cor Management Nodes Customization Product Structure Product vi gt M General Reference Product Mil Display i Customized display Compatibility sons Configure P Parameters and Measure Product instance reference loaded FZ Devices and Virtual Reality C Customized display zPN amp SINS Infrastructure Configure Product structure Product instance reference unloaded Material Library Customized display si catalog Editor Ff Photo Studio M Real Time Rendering Part Infrastructure DELMIA Infrastructure lap Annotations Infrastruc collaboration Infrastructur Mechanical Desian Shape El Analucic Sinn ilation Figure 33 CATIA Options Nodes Customization To make the Name Column visible by default the following setting has to be changed in the file CMIUpdateCreateDialog CATRsc Column width of Name JobMultiList ColumnWidth4 0 To hide Nomenclature and show Name instead you have to set Column width of Nomenclature JobMultiList ColumnWidth3 0 Column wi
18. CGR search Then you should customize the methods x3UseCgrFile and x3GetCgrFilePaths x3UseCgrFile decides whether to use the CGR file x3GetCgrFilePaths delivers the relevant file path of the CGR file If the customization needs a Teamcenter class to register the CGR file it is recommended to use a subclass of the CMI class xOV5CGR CATIA V5 CGR for Cache File Configuration 1 Settings in CONFIG host where the CGR files are located optional if not set CGR files has to be located in the same vault location like the corresponding CATPart set CMI HOST lt CGR_HOST gt CMI Customizing Guide 39 path to the vault location on the HOST optional it if not set CGR files has to be located in the same vault location like the corresponding CATPart set CMI CGR VAULTLOC PATH lt Path to the CGR Vault gt 2 Settings during startup of CATIA V5 enable CMI released cache functionality set USERELEASEDCACHE ON use a special released cache directory out of the list in CATIA this setting is optional if not set use the first released cache in list set RELEASEDCACHEDIR lt Path to released cache enable the Get original Geometry button set ENABLE CMIGETORIGGEOCMD ON Optional setting use temporary CATIA components which contain the related as shape representation instead of the original CATPart see load structure to CATIA CMI_CREAT
19. CMI V4 communication CMIDATAMODEL DEPRECATED Set to CMPONENTDATAMODEL to run the optional CatiaV5 centric data model Map CAT Parts to Cmponent Use CMI BOM PART DEFAULT FOR SYNC instead CMI DMU VAULT LOC Vault location for DMU preprocessed file CMI DMU EXP PATH Path of DMU Exp utility CMI DMU HOST Host where DMU preprocessed file will be generated CMI DMU STARTUP PREF Set to ON to use Startup preferences of super user with DMU Exp CMI Customizing Guide 69 70 CMI V5 SUBDIR Subdirectory in Work Location for Catia V5 files supports both Windows and UNIX format V4 SUBDIR Subdirectory in Work Location for Catia V4 files supports both Windows and UNIX format CMI V5 PRD SUPPORT Set to OFF to disable CATProduct management in Catia V5 use temporary CATProducts Doing so is not recommended STDPART Set to YES to enable Standard Part behaviour in CatiaV5 based on StdPartindicatorAttr in Teamcenter CMI CGR HOST Host where the vault location for CGR files resides VAULTLOC PATH Path of the vault location where CGRs are searched CMI SHOW BB INCHES Set to YES to display enter Bounding box coordinates in inches COMI USE CCS Set to True for client machines or workgroups to use a CCS service for Catia V4 communication CMI CREATE DOC INTERACTIVE set to ON to c
20. Component is skipped and its children are instantiated in Teamcenter with a special Reference relation instead of the standard Assembly relation So the substructure of this component will not be part of the BOM 5 IgnoreNode Product CATProduct is ignored in Teamcenter This may result in broken links as the Product is not provided by Teamcenter during a load U Usage of database name of objects There is the possibility to query for objects by OBID and DB name during a CMI update action instead of only querying by OBID in all databases in scope or session To enable this feature you have to set the following configuration variable within PDM CONFIG config cfg CMI USE DB NAME ON During the CMI Read action the database names of all objects will be read and written to the Object Manager file During update it is now possible to query for objects exactly within the database they are saved in Additionally you may customize some or all of the following messages to your own needs x3GetRelevRelViaObidDb x3CusGetRlvRlViaObidDb x3GetPartByAttrsAndDb x3GetModPosViaObidDb x3GetPrdPartViaObidDb You can find these messages within x3Custom mth Customization messages Messages contain input parameter database name which is the Teamcenter Enterprise attribute CurDbName of the object Rest of code should be the same as in already existing messages Get ViaObid But instead of QueryWhere or QueryDbObject the datab
21. Etat avancement VAL Epaisseur mm Define other properties Apply Close Figure 12 User defined properties 30 CMI Customizing Guide Customization Sending user defined attributes to CATIA V5 It is possible to send user defined attributes to CATIA V5 and display them within the standard CATIA V5 properties dialog Therefore you have to customize the CMI message x3SendUserDefProps This message is attached to several classes gt it is possible to add properties for CATProducts CATParts V4 models and Black Box objects x0CTFile Part x0CatPrd x3SendUserDefProps input ObjectPtr thisObj output SetOfStrings vPropDisplaySet output SetOfStrings vPropNameSet output SetOfStrings vPropValueSet output integer mfail code vPropDisplaySet the display names of attributes within properties dialog vPropNameSet the database name of the attributes to be able to save changed values back during update vPropValueSet the attribute values If you want to add user defined properties to the CATProduct properties dialog you have to customize Part x3SendUserDefProps If you want to add user defined properties to the CATPart V4 Model or Black Box CATPart properties dialog you have to customize xOCTFile x3SendUserDefProps If you want to add user defined properties to the Black Box CATProduct object properties dialog you have to customize x0CatPrd x3SendUserDefProps
22. If you want to delete user defined properties you have to customize the method x3SendUserDefPropsExt Wrapper of x3SendUserDefPropsExt x3SendUserDefPropsExt input ObjectPtr thisObj output SetOfStrings vPropDisplaySet output SetOfStrings vPropNameSet output SetOfStrings vPropValueSet output SetOfStrings vPropDelSet output integer mfail where vPropDelSet contains the attribute names to delete in Catia V5 Customization Receiving user defined attribules from CATIA V5 It is possible to receive changed user defined properties from CATIA V5 These attributes may be saved back in Teamcenter Enterprise Therefore you have to customize the message x3ReceiveUserDefProps lf newly created user defined properties within CATIA V5 standard dialog should be stored in Teamcenter Enterprise they have to be declared in the CMI CONFIGURATION FILE CMI Customizing Guide 31 x0CTFile Part x0CatPrd x3ReceiveUserDefProps update ObjectPtr thisObj input SetOfStrings vPropDisplaySet input SetOfStrings vPropNameSet input SetOfStrings vPropValueSet output integer mfail code The declaration in the CMI CONFIGURATION FILE of newly created properties in catia which should be stored in Teamcenter Enterprise looks as follows lt UserDefinedProperties gt lt UserDefinedProperty Name CustomerPropl gt lt UserDefinedProperty Name CustomerProp2 gt lt UserDefinedProperties gt Customi
23. OF DRAWING ON all Reference documents of a CATDrawing are stored in the CatDrawing model info of the exchange file You can use these links to attach the drawing to a relevant folder Customization can get this information with the method x3SetCusAttrModInf Within this method you have to call dstat nvsGet ModelInfos SOURCE PARTNUMBERS amp ModelData to get the reference part numbers dstat nvsGet ModelInfos SOURCE DOCS amp ModelData to get the reference documents dstat nvsGet ModelInfos SOURCE OBIDS amp ModelData to get the reference part OBIDS Sheet Information for Drawings Set CALC SHEETS ON inthe CATIA V5 Environment Use dstat nvsGet Modellnfos SHEETS amp ModelData to get all information on the sheets Ea ae Enhanced 4D Navigator Integration New custom point x3Inflate4DNavName Handles the x3InflateExMapName message for the xOCTFile class Message type is an Object Message File system name within exchange map is identical to the RelativePath of the xOCTFile object As standard the RelativePathAttr is used New custom point x3GetSceneFile This method interacts with the user to get the Scene file describing the situation in the 4D Navigator In the parameter fileContents the content of the file is handled back to the calling method Notice You can also load the Scene file from a pre defined directory like the Scene file creation As st
24. ON e Path to the local cache path to local cache gt e Path to the released cache at least one path to released cache Check timestamps ON Fi 21x Options Cache Management Management ENOVIAvpm Nodes Customization produ 4 gt General Cache Activation Wl Display Work with the cache system Compatibility Cache Location PF Parameters and Measure Path to the local cache FA Devices and Virtual Realit Path to the released cache C iReleasedCacheR17 Infrastructure RR Configure Configure WE Material Library Di Catalog Editor B Photo Studio Time Rendering Cache Size E Check Maximum size Maximum size 500 MB Part Infrastructure 1 Check timestamps 3 GMT timestamp Format DELMIA Infrastructure eap Annotations Infrastru collaboration Infrastruct Mechanical Design wp amp ok Cancel Figure 14 CATIA Options Cache Management These are the necessary preconditions to a CGR file Work with the cache system in CATIA V5 is enabled The Released cache is set and exists The CMI preference Transfer CGR File to CATIA V5 is set to Only CGR or CGR geometry The Catia model is checked in In the CGR Vault exists the CGR file with following name lt model name gt cgr where lt model name gt is the filename of the Catia model Customization may change the behavior of the
25. also contained in the Query and Create dialogs for Catia Files Then you define your own value set for gOModelType After that you have to set the class constant g4ModelTypesC to the name of your value set at the class gO0GenMod It is also necessary to attach this value set to the attribute gOModelType with a condition Example o g0GenMod g4ModelTypesC your value set It is necessary to have a condition for changing the value set at the attribute g0ModelType define condition ALWAYS TRUE obj 1 1 attach value set your value set to gO0ModelType if ALWAYS TRUE Filler Parts that are sentto Catia or VisMockup You can filter parts which should not be sent to Catia or to the viewer If a part is filtered the part itself and all its subtrees are not sent to Catia to the viewer The following method can be overwritten to filter parts class message xOWkBnch x3FilterPartsToSend input string classname input string sTargetSystem update SetOfObjects parts output integer mfail The parameter sTargetSystem can contain the values v4 v5 or Viewer This is the system where the parts are currently sent to If objects are removed from the SetOfObjects parameter parts they and their subtrees are not sent This method does not impact the display in the CMI Workbench CMI Customizing Guide 21 u a 7 CAA Customization An API is provided for performing custom steps before and after the Synchroniz
26. at UPDATE ALL UPDATE GEOMETRY UPDATE ACTIVE and void cmi custom create int ERROR at DOCUMENT CREATE DOCUMENT SAVE AS DOCUMENT MUL CRE cmi custom update 2 later catedm version 4 0 3 and Calls the function void cmi custom update int ERROR at UPDATE ALL UPDATE GEOMETRY UPDATE ACTIVE cmi custom update 3 later catedm version 4 0 3 and Calls the function void cmi custom create int ERROR at DOCUMENT CREATE DOCUMENT SAVE AS DOCUMENT MUL CRE gt overwrite the message x0CTFile x3GetCustomDataForCAD in the x3Custom mth file of the CMI installation catedm version 4 0 3 and later It is possible to sent the FLAGS attributelist valuelist attr 1 attr n cmi custom update value 1 value 1 with READ REREAD to CATIA needs customisation in MP At UPDATE ALL UPDATE GEOMETRY UPDATE ACTIVE of the related model the function void cmi custom update int ERROR CMI Customizing Guide is called 81 9 CATIA V5 Directory Structure Directories Following figure shows the standard directory tree of the CMI CATIA V5 CMICATV5 S_CMICATV5_X_Y x 4 config unix nt os data aix a hpux a irix a solaris a intel a Figure 29 Directory structure of the CMICATV5 module The config directory contains sample C
27. client workstation an exchange map must exist The task of this UNIX directory is to exchange data between CATIA V4 and Teamcenter Enterprise Each user should have an own exchange map HOME dshcatiarc obj This optional script file overwrites the default settings for the user Please refer the README environment file for more information pau Modify CATIA V4 Environment extend STEPLIB and CATDEC environment settings as following example STEPLIB usr lpp catia v4r1_code gii steplib STEPLIB STEPLIB catia gii metaphse catedm etc lt your OS export STEPLIB CATDEC CATDEC catia gii metaphse catedm data export CATDEC CMI Customizing Guide 75 Include the file data METAPHSE include to each user s USRENV dcls file as following example eisai a HS SSS HS SSS SE ESSE HOSS SS SS SS SSS SSS USRENV dcls DECLARATION FILE p INCLUDE catia v4rl prod USRENV include j INCLUDE all other Configuration files p M INCLUDE catia gii metaphse catedm data METAPHSE include 2005 20 SoSe AAA User dependent configurations Normally you don t need any modifications for a certain user except user s personal USRENV dc1s file Therefore each user can overwrite the default settings You may copy the file data appdefault obj to the user s home directory and rename it to dshcatiarc obj
28. extFileName PCDATA gt lt ELEMENT tcFileName PCDATA gt lt ELEMENT extNomenclature PCDATA gt lt ELEMENT tcNomenclature PCDATA gt lt ELEMENT extRevision PCDATA gt lt ELEMENT tcRevision PCDATA gt lt ELEMENT extDefinition PCDATA gt lt ELEMENT tcDefinition PCDATA gt lt ELEMENT extDescription PCDATA gt lt ELEMENT tcDescription PCDATA gt lt ATTLIST reference id ID REQUIRED gt lt ATTLIST instance id ID REQUIRED parentId IDREF REQUIRED childId IDREF REQUIRED CMI Customizing Guide 63 ss see CATScript support CATScript can be registered in Teamcenter and used as Part of a CMI managed Catalog To insert CATScripts into a Catalog enable the Insert CATScript from Teamcenter Set CMI_LENABLE_CMICATALOGINSERTSCRIPTCMD ON in the CATIA environment Two messages have been introduced for CATScript support that can optionally be customized Override x3GetScriptForInsClg to change the way the Script is queried for insertion into the catalog class message g0GenBin x3GetScriptForInsClg input string input NULL string input NULL string input NULL string input NULL string input NULL string input NULL string input NULL string input NULL string output ObjectPtr output string output string output string output string output integer
29. method xOWkBnch x3GetExpNamingSchema is called The single purpose of this method is to optionally return an arbitrary string that distinguishes one naming scheme from another in subsequent method calls For example you may show a dialog where the user chooses a naming scheme class message x0WkBnch x3GetExpNamingSchema input string classname EE input string rootPartNumber input string rootPartObid input string rootPartClass input string rootPartDbName input NULL string mappingFileObid input NULL string mappingFileClass input NULL string mappingFileDbName output string expNamingSchema output SetOfStrings pStats output integer mfail with classname x0Wkbnch rootPartPartNumber Partnumber of the top level CATProduct in CATIA rootPartObid Obid of the top level TC Part in CATIA rootPartClass ClassName of the top level TC Part in CATIA rootPartDbName DBName of the top level TC Part in CATIA mappingFileObid Obid of the mapping file mappingFileClass ClassName of the mapping file 60 CMI Customizing Guide mappingFileDbName DbName of the mapping file expNamingSchema Identifier for schema to be used can be NULL pStats Messages displayed in CATIA For each file in turn the following method is called where custom values for The reference attributes can be returned The expNamingSchema string from the previous method is given as an argument
30. output integer mfail CMI Customizing Guide 19 xOCTFile x3CreateDocForModel input ObjectPtr thisObject input NULL ObjectPtr partObject output ObjectPtr newDocObject output integer mfail Original implementation available in x3Custom mth If partObject is NULL then the document is being created at file registration time during a Create operation in Synchronize and the parent Part is unknown If you would prefer to rather create the document later or to be able to select a document already attached to a Part at the time when the File is to be attached to the Part then you should change this method to block the creation of the document when the partObject is NULL Customize the Creation of the Part Part relation during a Synchronize Link Child operation Customize the following message to your needs class message AssmStrc x3CreateUsesRel input string className input ObjectPtr leftPrtObj input ObjectPtr rightPrtObj input NvSet usesInfos output ObjectPtr newRelObj output string trafoIndex output integer mfail in x3Custom mth Customize the Black Box functionality deprecated The CATIA V5 Black Box creation add remove functionality uses the following API s x0PrdDoc x3AttachBlackBoxFiles to attach the black box files to the document Part x3CreBlackBoxFileObj to create a black box part file object Part x3RemoveBlackBoxFiles to delete black box files to copy black
31. structure CATIA Model 1 CATIA Model 2 CATIA Model n Figure 3 CMI object structure described by attaches For each part only one relation described by with a document element has to exist The relationship can be created by dragging any document object and dropping it to the part object Please refer to the Teamcenter Enterprise user documentation for managing relationships between Teamcenter Enterprise objects The documents can contain at least one relation attaches with CATIA model elements You can attach more than one CATIA model to a certain document CATIA Model Model has PlotFile Figure 4 Model has plot file relation Each certain CATIA model object can contain one relation Model has plot file with any plot file which can be created from CATIA An example structure is shown in the following figure CMI Customizing Guide 5 LowerTravers SSJlowerTravers UNTERER_QUER A j HA 1 1 1 SPURSTRNGE m 1 TraceBar ZnTraceBar Trace bar no ues jH Haese H She 1 1 EA TraceBar txt 1 Y UpperTravers ERpueperTravers e A A T 1 l 1 q 3 objects found gt gt gt Accepted Attaches option initiating object server 1 objects found Figure 5 An example assembly structure If you drag a part object and drop it into the CATIA Workben
32. to OFF button similar command grouping is turned off in the toolbar CALC BBOX Calculate and save bounding box info at CATParts on update for DMU DISABLE Set to ON to get NO CMI toolbar No check for CMI license is done ENABLE VP SAVE Set to 1 to get the Functionality Save Virtual product CMI CALC SHEET When a drawing is saved make the list of sheets available in Teamcenter CMI REFERENCE DRAWING When a drawing is saved make the referenced Products Parts available in Teamcenter BOUNDING BOX EXCLUDE HIDDEN Set to ON to exclude hidden objects from the bounding box calculation DISABLE HIDESHOW Set to ON to load the hide show status as in the product products not in the CMI Workbench are not hidden DISABLE SET TIMESTAMP Set to ON to disable to set the last modification date to the files in the exchangemap CMI REMOVE CMIADDTEMPCMD Set to ON to disable the AddTemp Command ADDTEMP PRAEFIX1 Default is TMP the first praefix for the rename of the Partnumbers and Filename for the AddTemp command ADDTEMP PRAEFIX2 Default is the second praefix for the rename of the Partnumbers and Filename for the AddTemp command The Default Praefix is set to TMP _ 15 a counter in catia CMI ENABLE CHECKMODTIMESTAMP Default is ON Set to OFF to disable the fuctionality to check for Saved Fi
33. to create the DMU File in the CMI DMU USE WORKLOC product worklocation Set to ON not to Link V5 cgr cache files during to Catia TRANSLATE If Set to OFF no net host ipaddress get CMI Customizing Guide Host is done with g3SetPortAndHost Set if there are name resolution issues CMI DMU FILENAME SEP default is separator to build DMU filename from PartNumber Revision Context dmu this separator must not ocurr in PartNumber Revision or Context CMI SINGLE PART DOCUMENT changed Set to SINGLE FILE to create one document for each CATPart Set to ON to reuse a single Document per Part for multiple models CMI RESTORE WB WITH ACT CONTEXT If set to ON the current configuration context is preserved while restoring a saved session By default the configuration context is temporarily disabled VIEWER ENCODING Encoding for the plmxml file for the viewer If not set the default value is ISO 8859 1 CMI ONLY PUBLIC TO VIEWER If set to ON the option Filter for public versions in the Model Filter preference is temporarily enabled when sending to viewer CMI VALIDATE CATIA VERSION If set to ON the Catia release of the files is validated against the current sessions CATIA release If the file is from a newer release it is not opened CMI REMOVE GEOMETRY If set to DOCUMENT if a Non BOM CATPart is removed in
34. to filter the assembly structure by your own behaviour Define the method and attach it defin message MyMultiLevelExpand lik SelectedItemMsg attach object message MyMultiLevelExpand to gUGenItm in server cussvr Attach your custom expand to the popup menu of the Assembly in the Workbench below the default Expand define option MyMultiLevelExpandOpt using message MyMultiLevelExpand with relation g2GnItDp with relationship useslowerGI CMI Customizing Guide display MyMultiLevelExpandOpt as My Expand Multiple Levels attach option MyMultiLevelExpandOpt to GITreePopupEiwOptL after GIuseslowermultiGIEiwOpt write the following method code message g0GenItm MyMultiLevelExpand update ObjectPtr this output integer mfail code string expandInfo NULL mfail USC OKAY dstat uiDeactivateWindow T S A went Call internal part of method Rules tie EEE string expandInfo myPartExpand dstat g3ExpandBranchMultiInt this expandInfo mfail CLEANUP EXIT uiActivateBrowserWindow return dstat Now override g3GetPartsInAssSetCus to make your custom expand return only a special type of assemblies O attach class message g3GetPartsInAssSetCus to g0GenWB in server cussvr class message g0GenWB q3GetPartsInAssSetCus input string classname input NULL string
35. 33 CMI Customizing Guide TMatrix3 TMatrix4 4 1 TMatrix42 TMatrix4 TMatrix4 3 4 Opts i inherited d dynamic Constants GetInfoD ialogC g4TrafoTypec Messages g3CreateOBID g3Create RelationObj g3CreateWidgetId g3DeleteObject g3Delete g3GetTra g3Update g3ValFor RelationObject fo Trafo UpdTrafo Class Description of g2AsmNPo Left Side Class string 30 TMatrix34 string 30 TMatrix41 string 30 TMatrix42 string 30 TMatrix43 string 30 TMatrix44 cached r required Inherit Value no xlAtcGet no 4 4 Opts Type i ObjectMessage i ClassMessage i ObjectMessage i ObjectMessage i ObjectMessage i ObjectMessage i ObjectMessage i ObjectMessage Class g2AsmNPo Parent g2AsmRel Prompt g2AsmNPo Assembly PartMstr Right Side Class Forward Relationship Name Backward Relationship Name Constants g4TrafoT g3Create g3Create ypec Messages OBID RelationObj g3CreateWidgetld g3Delete g3Delete g3Update g3ValFor Object RelationObject fo UpdTrafo g2AsmNPoPartMstrsInAss droppable g2AsmNPoPartMstrIsUsed droppable ec M TE E Message essage Message Message Message Message Message Message CMI Customizing Guide e Class Description of x2AsmPoQ Class Parent Prompt Left Side Class Right Side Class Fo
36. ATIA V5 Configuration files for unix and Windows 2000 The unix configuration contains two sample environment settings for the shells sh and csh The nt os configuration contains a sample CATIA V5 Environment file for the CATIA V5 Environment editor The data directory contains the binary distributions for the CMICATV5 module for the supported operating system mnemonics The supported operation systems and their mnemonics are AIX5 1 aix a HPUX 11 hpux b IRIX 6 5 irix a Solaris 7 solaris a Windows 7 XP intel a win b64 The mnemonic aix a will be chosen as an example of a CMICATV5 installation directory on Unix Following figure shows the directory tree of aix a CMI Customizing Guide 83 aix ax bin dictionary control lib productIC resources x graphic msgceatalog icons normal Figure 30 Directory structure of the CMICATV5 installation directory msgcatalog f you want to change Text Messages in CATIA V5 the files with the extension CATNIs in the msgcatalog directory can be changed This message files contain string variables After adapting this strings changes will be shown in CATIA V5 see examples below All other files in the CMICATV5 installation directory should not be touched Files This section describes some important files and their meaning The Files have a Text Mess
37. ATPart CATProduct is not saved yet If set to ON then show a dialog of modified positions at update If set to ON then standard CATParts will not be loaded into design mode automatically They are DISABLE LOAD STDCATPARTS identified not by their part number which is not available in cache mode but by their instance name which must be Part Number dot some string If set to ON and Use Virtual Root is turned on in the CMI Settings in CATIA then any children attached to EMPIENORE NONCMI ROOT PIDEN the virtual root that are not from CMI will be ignored during Update Sync commands Set to ON if files located outside of the exchange CMI_DISABLE_SAVETOXMAP map should NOT be moved into the exchange map before they are Created updated in the PDM System CMI_RESTORE_POSITION CMI_ENABLE_UPDATEPOSITIONDIALOG 88 CMI Customizing Guide String to use to override the default command line for packing zipping archive files Default is zip 0 q j CM ERER BROHIMESSMD where 0 is store only q is quiet operation j is junk don t record directory names String to use to override the default command line for unpacking unzipping archive files Default is unzip o j CMI_UNPACK_ARCHIVE_CMD q d where o is Override without prompting j is do not use Directory names q is quiet mode d lt Dir gt extract to dir CMI_REMOVE_CMIATTARCCMD If set the Attach Archive comman
38. CATIA CMI will remove all Documents that attach the CATPart from the assembly during Synchronize If set to MODEL CMI will remove the Model from its Document instead Default is OFF This is a default implementation of the customizing method g0GenMod x3ProcessCATIADeletion CMI_PRODUCT_BBOX If set to ON include Product bounding box in DMU file CMI Customizing Guide 71 8 CATIA V4 Directory Structure Directories The following figure shows the standard directory tree of the CATEDM installation metaphse X bin AIX xj HP UX data IRIX doc SunOS custom update example examples etc AIX HP UX htdocs IRIX pdfdoc SunOS Figure 27 CATEDM installation path structure bin Xyour OS Some executables of the integration All CATIA V4 user should have access privilege to this directory custom update e This is an example how you can edit the code and generate your xample shared library data Declaration include files initialization scripts error definition file menu definition file message definition file doc The latest information about the product script file xtOrequest sh and a simple CATIA VA start script catstart sh examples Some example CATIA V4 models CMI Customizing Guide 73 Files Etc your OS CMI CATIA V4 GII module in binary format METAPHSE A
39. ClassC Class of relation between Document and mapping file The following customizing methods have been introduced for the CMI Mapping File Part g3GetMappingDocs return Documents where mapping files are attached GenDoc g3GetMappingFiles return mapping files attached to Documents xOWkBnch x3FindMappingFile find mapping file for a given part number x0WkBnch x3GetArchiveriles find Archives for a list of root part numbers see x3Custom mth for details Syntax of the Mapping To open the CMI mapping file in a browser or editor with syntax check place a file CMIMapping dtd in the folder of the xml file CMIMapping dtd lt ELEMENT mapping references instances gt lt ELEMENT references reference gt lt ELEMENT instances instance gt lt ELEMENT reference tcPartNumber tcFileName tcNomenclature tcRevision tcDefinition tcDescription tcClassName extPartNumber xtFileName extNomenclature extRevision extDefinition extDescription lt ELEMENT instance tclInstanceName extInstanceName gt lt ELEMENT tcClassName PCDATA gt lt ELEMENT extInstanceName PCDATA gt lt ELEMENT tcInstanceName PCDATA gt lt ELEMENT tcPartNumber PCDATA gt lt ELEMENT extPartNumber PCDATA gt lt ELEMENT
40. ETEMPCGRCOMP ON 3 Settings in CATIA no longer needed to work with released Cache Earlier releases of CMI didn t support the CATIA setting Check Timestamp ON So it was necessary to remove the CGR files of the released Cache dir to make sure that the correct version was loaded Since CMI 8 9 the setting CMI_CLEANRELEASEDCACHE ON is no longer needed and should not be used p CATProcess customization customization methods in TeamCenter The message g3lsProcessElement is used to detect a process element The method is called after a drop of a Part in the Workbench The default method expands to an xOCatPrc data item which is the storage class for a CATProcess file class message Part g3IsProcessElement input ObjectPtr thisObj input ObjectPtr WorkBnchObj output boolean bIsProcessElement output integer mfail code The message g3lsProductView is called if a process element expands its children The Catia V5 structure under the product view is added in the product view of the CATProcess in CATIA V5 class message Part g3IsProductView input ObjectPtr thisObj input ObjectPtr WorkBnchObj output boolean bIsProductView output integer mfail code 40 CMI Customizing Guide The message g3lsResourceView is called if a process element expands its children The Catia V5 structure under the resource view is added in the resource view of the CATProcess in CATIA V5 class message Part g3IsResourceView input Ob
41. Ee bec Ede ta ve dite Pra crate e Ye 22 best s ore tn eb ta 23 CHAR TERY 5 M 25 OPTIONAL 5 25 PLOTTING A MODEL ne Feed e Par red aa be edere 25 he 25 Sample for the definition of some naming conventions 26 CMI Customizing Guide vii Creation of 27 Definition of the relevant 27 LINX CUSTOMIZING 29 Brian 29 STANDARD PROPERTIES IN CATIA 5 29 Customization Sending standard attributes to CATIA V5 29 Customization Receiving user defined attributes from CATIA 5 29 USER DEFINED PROPERTIES CATIA 5 30 Customization Sending user defined attributes to CATIA 5 31 Customization Receiving user defined attributes from CATIA V5 31 Customization using CATIA V5 Properties during Part creation or model registration 32 CONFIGURABLE BEHAVIORS IN CATIA 33 Descriptions of the behavio
42. FILE If set to ON the check box Write Import Export Mapping File is available in the Synchronize dialog and a Mapping file can be used in Reconnect Teamcenter CMI ENABLE EXPORTCMD If set to ON the Export to Folder Command is available in the CMI Toolbar STDATTRIBUTES To set the CATIA standard attributes Nomenclature Revision Description or Definition back to the original value of the initial import set the value of EXPORT STDATTRIBUTES to the attributes you want to set back Only used with the CMI Export Cmd CMI REMOVE CONTEXTMENU Set to ON to disable the contextual CMI menu in the CATIA Product Structure IGNORE EMBEDDED LEAFNODE Set to ON to ignore embedded ccomponents with no children CMI ENABLE CMICATALOGINSERTSCRIPTCM D Set to ON to enable the Insert CATScript from Teamcenter command 92 CMI Customizing Guide EXPORT CUSTOMIZE NAMING Set to ON to invoke the custom TC methods x3GetExpNamingSchema x3GetExportRefNames and x3GetExportInstNames This option must not been set if x3GetExportRefNames and x3GetExportInstNames are not customized CMI ENABLE CGM Set to ON to enable the Update Synchronize Save As and Save for Doc commands for CGM documents in CATIA STORE ANALYSIS Set to ON to store CATAnalysis Dataltem in Teamcenter CMI ARCHIVE BOM CHILDREN Set to ON to allow Bom stru
43. File aa c N xOCatPrc xOCatPrd x0CatClg xObenDes xOCT4Fle xOCTSFle AN i N xOCatExc xOCatTxt xOCTMod xOCTTemp xOCatArc xOCatCgr xOCatDrw xOCatPrt xOCatRep Figure 36 Class hierarchy under gOGenBin gOGenBin has the parent class IndepBin and is the container for all CATIA data classes gOGenOCnt is a child class of 00 and is the container class for the CATIA V5 documents which are not visible in the CATIA workbench gOGenPrc xOCatPrc is the data class for the CATIA V5 CATProcess file gOGenPrd xOCatPrd is the data class for the CATIA V5 CATProduct file g0GenFle g0GenClg x0CatClg is the data class for the CATIA V5 Catalog file g0GenMod gOGenDesx0GenDes x0CatExc is the data class for a design table in the MS Excel Format g0GenMod gOGenDesx0GenDes is the data class for a design table in the Textformat g0GenMod x0CT File is a child class of gOGenBin and is the container class for the CATIA documents which can be visible in the CATIA workbench XOCt4Fle xOCTMod is the data class for the CATIA V4 model file xOCT4Fle xOCTTemp is the data class for the CATIA V4 model template file XOCT5Fle xOCatPrt is the data class for the CATIA V5 CATPart file x0CT5Fle x0CatDrw is the data class for the CATIA V5 CATDrawing file x0CT5Fle x0CatCgr is the data class for the CATIA V5 cor file x0CT5Fle x0CatArc is the data class for the CMI Archive file XOCT5Fle
44. N A0 77 esac 26 CMI Customizing Guide Creation of a CATIA Model Now we create a CATIA Model with CMI and CATIA that fits to the previously declared naming conventions see appdefault sh gt Load a CATIA Model with the CATEDM functionality METAPHSE READ gt Split CATIA screen into DRAFT and 3D with IMAGE gt DEFINE gt Create a Draft with DRAFT gt CREATE SP SPace 3D gt DR DRawing activate DRawing mode name e g Blatt gt Create geometry e g a PLANE DR gt SP activate 3D SPace mode gt Create a 2D point in your new created Draft POINT gt COORD SP 2 DR activate DRawing mode gt Create View with AUXVIEW gt CREATE functionality SP 2 DR activate DRawing mode Describes the projection to the plane created before SELECT LINE PLANE created in point 3 SELECT POINT created in point 4 KEY VIEW ID e g Rahmen gt Create a Detail with DETAIL gt CREATE KEY DETAIL ID name e g DIN A3 Select in your 2D View created with AUXVIEW a Line Point to create a Ditto onto this view gt Save the model METAPHSE UPDATE gt ACTIVE Definition of the relevant attributes The customizing of the company specific drawing frames now can be made in the shell script drawingframe that can be found in directory catedm bin In this script file the user can define several views like DIN whereat a view can contain several entries An ent
45. NEW SYNCHRONIZEZON in the CATIA environment will enable the new Synchronize At the same time it will disable the old Synchronize and the individual Update and Create functions which are obsoleted Users must have message access to the PdmSessn x3SynchFromFile message Validate actions before PDM Centric Synchronize If the Catia Configurarion variable ENABLE VALIDATE BEFORE UPD ON then the actions of synchronize are validated The default behavior is that all validations are successful If an operation on an item has to be done the kind of the operation for creating an item UPDATE for updating an item and DROP for delete a relation is given in a parameter For each object one of the following methods are called x3ValV5Part for Parts x3ValV5Model for CATParts model cgr CMIArchive x3ValV5Product for CATProducts x3ValV5DesTbl for design tables For each relation the following methods are called x3ValV5PartInst for the relation between Parts x3ValV5Modellnst for the relation between Parts and Files whitout CATProducts and design tables x3ValV5DesTblInst for the relation between Parts or CATParts and design tables Often used slots in the NVSET s given in the messages above In these methods information about the objects and related objects is provided For details see the method s headers the file x3Custom mth If one validation fails the process will continue until all operatio
46. Now you can edit this file and overwrite the existing settings Following the order of running the setting files optional 4 HOME dshcatiarc obj data appdefault obj data ini env mandatory Figure 28 Initialization files with their order The following Environment settings are possible see next tables Name of Name of CONFIGURATION Possible Environment Variable FLAG Short Description Values ini env APPDEFAULT OBJ DSHCATIARC OBJ O no CATEDM DEBUG Debug set a debug level 5 debug CATEDM BINDIR _ path to the executables of CATEDM installation _ path to the scripts and configuration EATEDMCSSRIETDIR files of CATEDM installation method to connect with CMI CATEDM_CONN Connectmethod Workbeneh 76 CMI Customizing Guide CATEDM EXCHANGEMAP Exchangemap directory were CMI and CATIA V4 exchange model files CATEDM EXMAPDLNAME exchange diname logical map name which is realated to the exchange map create a symbolic link description to CATEDM MLINKS Modellinks each model in exchange map O no start model CATEDM_TMPAXIS Tmpaxis use a start model 1 usea start model logical CATIA V4 map for the If there CATEDM TMPAXISDLNAME tmpaxis dlname ITEMPAXIS model CATEDM TMPAXISDSNAMEtmpaxis dsname V4 map forthe MODEL MAP defined templa
47. Pos x3GetCustomDataForCAD in x3Custom mth Show Teamcenter meta data in CATIA The More Button in the CMI Info command allows to retrieve realtime information about the selected CATIA V5 item from Teamcenter By default the Get ltem Info dialogs define the information shown In CATIA VA this information is displayed by the MODEL INFO panel You can customize the information that is displayed by overriding the following methods message g0GenBin x3GetItemInfoForCAD input ObjectPtr this output SetOfStrings LabelSet output SetOfStrings ValueSet CMI Customizing Guide 17 output integer mfail code To retrieve information from the data item message Part x3GetPartInfoForCAD input ObjectPtr this input NULL ObjectPtr PartRel output SetOfStrings LabelSet output SetOfStrings ValueSet output integer mfail code To retrieve information from the TC Part V5 only message Relation x3GetRellnfoForCAD input ObjectPtr this output SetOfStrings LabelSet output SetOfStrings ValueSet output integer mfail code To retrieve information from the Assembly Structure Relation V5 only Original implementation available in x3Custom mth Customize CATProduct Worklocation Return the x1PrdDataWorkloc Attribute from the Workbench Object The returned string must be freed with nlsStrFree xOWkBnch g3CatPrdV5Workloc input string classname output string sCatPrdV5WL output integer mfail Original i
48. S IN XMAP If set to ON unknown files in CMIXMAP will be subject to cache size management CMI XMAP CACHE SIZE Maximum size in MB of cached files in CMIXMAP after closing CATIA CMI RELMAP CACHE SIZE Maximum size in MB of cached files in CMI RELEASEDCACHEDIR DISABLE CMISAVELOCALCMD If set To ON the CMI SaveLocal Command is not available DISABLE CMIRESTORELOCALCMD If set To ON the CMI RestoreLocal Command is not available USE 91 TOOLBAR If set to ON the 9 1 Toolbar style only one toolbar is used CMI GET BOMTYPE FROM TC Set to ON to get the Bom Type from Teamcenter for new Catia Files CMI ENABLE CMICATALOGREADCMD Set to ON will enable the Catalog Read Command in CATIA V5 CMI ENABLE CMICATALOGUPDCRECMD Set to ON will enable the Catalog Create Update Command in CATIA V5 CMI DELETE STALE DESIGNTABLES If set to ON DesignTables in CMIXMAP that are no longer referenced by a CATPart CAT Product will be deleted USE FILENAME WINDOWTITLE If set to ON the title of windows loaded by CMI shows CMI lt Filename gt instead of the default CMI PartNumber gt CMI_ENABLE_CMICATDUAREAD If set to ON Enable the CMICatDuaRead Command in the toolbar CMI CATDUAV5 CONFIG Full path to the CATDUAV5 configuration file CATDUAV5 RESULTVIEWER Viewer to show the CATDUA result Windows optional unix required
49. TEMPLATE If set to ON Template CATProducts that were read as Read only will be skipped during synchronize ie they will not cause a warning CMI GETORIGGEO DESIGNMODE If set to ON GetOrigGeoCmd If all files of the selected structures are located in the exchange directory ask to load the selected assemblies into DesignMode CMI ENABLE EDUFLAG CHECK If Set to ON check for educational flag during Update Synchronize Create SaveAs If Edu flag is set for a file to be saved the Save action will be declined CMI ENABLE ACTIVATEDEACTIVATE If set to ON the default value of the user option Deactivate geometry files not from CMI Workbench is set to checked To disable Hide Show also set DISABLE HIDESHOW ON CMI ENABLE CHECKFOREMBEDDEDCHANGE If set to OFF do not check if there are embedded changes in the structure Performance This is permissible if you have not customized the message x3UseEmbeddedProduct in Teamcenter GEOPOS NOLINK Set to OFF if you use geometry positions but do not link the document to the part when a CATPart is created default ON DISABLE SYNC PROCESS If set to ON the synchronize button is disabled if the current window contains a CATProcess CMI HIDESHOW ADDTOSESSION If set to ON HideShow ActivateDeactivate only affects CATIA Windows where the Top Level Items are available in the current CMI Workbench CMI ENABLE CREATE IMPORT
50. TIA V5 CATIA WORKBENCH 47 FIGURE 20 REPRESENTATION FORMATS IN CATIA V5 CATIA 5 48 FIGURE 21 CATDRAWING TITLE 2 04 48 FIGURE 22 PROPERTIES WITH INERTIA 49 FIGURE 23 REFERENCE 58 FIGURE 24 CLASS HIERARCHY PELMSTRC 58 FIGURE 25 EXPAND WITH REFERENCE 1 44 59 FIGURE 26 EXPORT TO FOLDER 60 FIGURE 27 CATEDM INSTALLATION PATH STRUCTURE 2 064400 000 73 FIGURE 28 INITIALIZATION FILES WITH THEIR 76 FIGURE 29 DIRECTORY STRUCTURE OF THE CMICAT V5 83 FIGURE 30 DIRECTORY STRUCTURE OF THE CMICAT V5 INSTALLATION DIRECTORY 84 FIGURE 31 EXAMPLE OF DIRECTORY STRUCTURE OF THE CMICATV5 INSTALLATION SUBDIRECTORY MSGCATALOG tecta cotes tee bie tas 86 FIGURE 32 SYNCHRONIZE DIALOG WITH CATIA NODE 94 FIGURE 33 CATIA OPTIONS NODES 5 2 444 044 94 FIGURE 34 DATA STRUCTURE OF CATIA WORKBENCH 95 FIGURE 35 DATA STRUCTURE OF
51. TIA V5 shape representation files in a generic way CATIA V5 Representation files can be used in a product structure and are handled in a similar fashion to V4 Models To enable support for specific Shape Representations an administrator can set the following variable in the Catia V5 environment REP FORMATS 3dmap CATShape The legitimate types can be found the Manage Representrations dialog in CATIAV5 in this example 3dmap and CATShape formats will be handled by the CMI Catia Module CATIA Workbench 5 CMI EDMG136 20050 lo x File Action Info Query Options View Help E Chassis 3dmap Ls Chassis 3dmap Rack Assembly PET 190 Rack Assembly has Chassis CATShape Fi Chassis CATShape HU 1 767201 Lal AAA Pa gt gt gt Accepted Expand Models option initiating object server Expansion complete gt gt gt Accepted Deexpand Branch option initiating object server Figure 19 Representation formats in CATIA V5 CATIA Workbench CMI Customizing Guide 47 Ecama vs kaat SES sat gdt view Insert Tools CMI Analyze Window x TT N Rack Assembly 5 Chassis 3dmap Chassis 1 Chassis 1 Chassis CATShape Chassis 2 Chassis 2 Applications Figure 20 Representation formats in CATIA V5 CATIA V5 class message x0WkBnch x3GetClassForCatRep
52. Teamcenter DMU neighorhood search will expand assemblies whose products have an eligible bounding box in addition to those assemblies that contain eligible CATParts In particular this is useful if you create assembly or product JT files as it will ensure that these files are visualized when appropriate Configuration In the Teamcenter configuration set CMI PRODUCT BBOX ON to include product bounding boxes in the DMU neighborhood search functionality In the CATIA environment set BBOX FOR IGNOREDCHILDREN ZON to enable calculation of the bounding box when a modified CATProduct is updated Set CMI BBOX FOR IGNOREDCHILDREN FORCE in a migration scenario for existing data This will enable the save of bounding boxes whenever a CATProduct is writeable to provide existing products with a bounding box where the external parts were already present A bounding box will only be stored if CATParts or other geometry files are ignored due to a configurable embedded node behavior and the new lt gt tag is configured in the CMI configuration file see Configurable Behaviors in CATIA V5 Example lt ConfigurableBehaviors gt ConfigurableBehavior UniqueID EmbeddedNode STD Ignore gt lt BehaviorType gt EmbeddedNodeBehavior lt BehaviorType gt lt PartNumberPrefix gt STD lt PartNumberPrefix gt lt Behavior gt IgnoreNode lt Behavior gt lt BBox gt true lt BBox gt lt Configu
53. UCTURE 2 3 tied HELFER RERO EET Edna 5 ENHANCED ASSEMBLY STRUCTURE RELATION OBJECTS 6 GLASS DESCRIPTION OF GZASMPOS ae e ee Deb ikea E De Roten y CLASS DESCRIPTION OF G2ASMNPO uruuuuunssnnnnsnnnnnnnnnnnnnnnnnnnnnnnnnannnnnnnnnnnnannnnnnnnnanannnn 8 GLASS DESCRIPTION OF X2ASMPOQ t ee dete reete kauen 9 A M 11 CUSTOMIZATION OPTIONSG caca deri ec inicia iia sU mean Ca a Ea cR aca poda ses anas 11 MESSAGE ACCESS RULES miii er te ep eno ed pe debel irre 11 Restrict permission to load a model into CATIA sse 11 Restrict permission to modify a model from CATIA sene 11 Restrict permission to modify Assembly positions from inside CATIA 11 GLASSIGONSTANTSEH RE rU 11 COMMON CUSTOMIZATION TASKS ssssessseeeee enne nennen nennen snnt inrer nnne nennen 12 Use of Structured Documents eg StDocmnt sess 12 Use a single Document per Part for multiple 13 Getting rid of the CATProduct Document sse 15 Exclude objects or classes from the CMI 15 Fill in custom attributes at a CATIA Item in the 16 Fill in custom attributes
54. age catalog with messages displayed in CATIA V5 The following example shows the content of the file CMIUpdateCommandHeader CATNIs c T Systems 2001 Message catalog for CMIAddin addin CMIUpdateCommandHeader CMIUpdateCommandHeader CMIUpdateCommandHeader CMIUpdateCommandHeader CMIUpdateCommandHeader CMIUpdateCommandHeader CMIUpdateCommandHeader CMIUpdateCommandHeader CMIUpdateCommandHeader CMIUpdateCommandHeader Category Title ShortHelp Help LongHelp This command updates positions and files in Teamcenter CMI Update Update Teamcenter Update Teamcenter Update 84 CMI Customizing Guide If the mouse pointer is over the tool icon in this example the Update Teamcenter icon E the Title you will see in the status line before the command line The ShortHelp messages will appears in the tooltip and the Help message appears in the status line left After moving the What s This icon to the toolbar icon the text in Long Help will be shown The following changeable files have the same structure as this example file resources msgcatalog CMIReadCommandHeader CATN1s This file contains the Text Messages catalog for the Command Read from Workbench resources msgcatalog CMIUpdateCommandHeader CATNls This file contains the Text Messages catalog for the CMI Command Update Teamcenter resources msgcatalog CMIUpdateCreateIntera
55. ample shows use of StDocmnt PrtSDocR Part to Document Master relation Also in this example the same class is used for the Product Document that is used for regular documents Example O xOWkBnch x4CreatePrdDocC StDocmnt O xOWkBnch x4PartToPrdDocC PrtSDocR O xOWkBnch g4PrdDocClassC StDocmnt O xOWkBnch x4CmpDocClassC StDocmnt O xOWkBnch x4CmpPartDocRelClassC PrtSDocR O xOWkBnch x4CmpDocPartRelShipC AddedInfoForParts O xOWkBnch g4BlackBoxDocClassC StDocmnt O gO0GenWB g4DocClassC StDocmnt O gO0GenWB g4PrdDocClassC StDocmnt O gO0GenWB g4PartPrdDocRelC PrtSDocR O gO0GenWB g4PartPrdDocRSC AddedInfoDocuments O gO0GenWB g4BlackBoxDocClassC StDocmnt O g0GenWB g4PartBlackBoxDocRelC PrtSDocR 12 CMI Customizing Guide O g0GenWB g4PartBlackBoxDocRSC AddedInfoDocuments Base Class of documents relevant for Catia V4 V5 define value set StrcRelsOfPart PrtSDocR AddedInfoDocuments O Part g4RelsC StrcRelsOfPart Teamcenter Prepare Dialog for Catia Files should offer Structured Document for Prepare O gO0GenBin StartClassToPrepareC StGenDoc O gO0GenBin DefaultClassToPrepareC StDocmnt If you want to use the PartSDoc relation Part to Structured Document the same example must be changed to O xOWkBnch x4CreatePrdDocC StDocmnt O xOWkBnch x4PartToPrdDocC PartSDoc O xOWkBnch g4PrdDocClassC StDocmnt O xOWkBnch x4CmpDocClassC StDocmnt O xOWkBnch x4Cm
56. andard the 4D Nav Exchangemap is used as relative path with an attached INEW SCENE wrl ee CATIA project environment support New custom point x3SetCatiaProject Handles the x3SetCatiaProject message for the xOCTFile class Set a new attribute to a Catia model when it s updated created and saved in Catia CMI Customizing Guide 37 mc a Support of Teamcenter Quantity In standard Teamcenter Enterprise the AssmStrc relation class carries the attribute Quantity A part can be used multiple times in an assembly according to the value set for the Quantity In order to support the multiple usage of parts within an assembly the x2AsmPoQ relationship carries a number of transformation matrixes The picture below shows the extensions within the data model mem denen E x2AsmPoQ Figure 13 Data model extensions for support of Quantity Customizations may utilize the x0Assm class in order to create xZAsmPoQ relationships The x2AsmPo Q relationship stores the amount of Quantity tranformation matrices within a FullTable attribute xOTrafoList Each single transformation matrix can be identified by an index passed to the CMI APIs g3GetTrafo and g3UpdateTrafo see description below In order to ensure the consistency between the value of the Quantity attribute and the number of transformation matrices the Quantity mustn t be edited manually This mean
57. ange map at first CATEDM startup time O off 1 on CATEDM ASSEMBLY assembly symmetry allow MOD POS gt MOVE O off SYMMETRY gt SYMMETRY for assembly positions 1 on O no warning 1 at show a warning panel when a read READ CATEDM_LOADWARNING _ load warning 2 at action is started from workbench REREAD 3 at READ and REREAD CATEDM supports CATIA V4 O off CATEDM_MERGE merge support MERGE ison DebisLICDIR location of debis licman license file DebisLICBIN location of debis licman executables CATEDM LICMAN START icense startscript 22 start script default man 2 start local license daemon at first CATEDM_LLD AUTOSTART llld autostart CATEDM startup time reads configuration flags from D off CATEDM SETUPSTAT setupstatus appdefault obj at any module entry icon only used for debug CATEDM_DMPF stdumpfile information file only needed for VMI CATEDM_EDBHOST edbapphost CATIA V4 client host name CATEDM supports to read the weight CATEDM SMD WEIGHT smd weight support land the position of SMARAGD models desc info read the user defined blocks and application prep DES Nene applications write the data to the info object To list CATEDM DESCINFOELE desc info elements accsess to the blocks you need three pot In things types of desc info 1 The application string before any the CATEDM_DESCINFODESC descriptions description modification or read
58. ase specific message QueryWhereByDbName is used class message xOWkBnch x3GetRelevRelViaObidDb input string ClassName input string RelOBID input NULL string DataBaseName output ObjectPtr Relation CMI Customizing Guide 35 output integer mfail code class message xOWkBnch x3CusGetRlvRlViaObidDb input input input input output output string string NULL string ClassName RelOBID RelDbName NULL ObjectPtr ctItemObj ObjectPtr Relation integer mfail code class message xOWkBnch x3GetPartByAttrsAndDb input input input input input input output output string NULL string NULL string NULL string NULL string string ObjectPtr integer ClassName databaseName partOBID partNumber partRevision lastSeq subassObj mfail code class message xOWkBnch x3GetModPosViaObidDb input input input input output output string string string NULL string ObjectPtr integer className ModPosClass Obid DataBaseName ModPosObj mfail code message ProdBI x3GetPrdPartViaObidDb input input input input output output 36 string string NULL string NULL NvSet ObjectPtr integer className partOBID partDbName customData partObj mfail code CMI Customizing Guide ZZ f sga nr GGG Read Reference Sheet Information from CATIA V5 Drawings Reference Documents for Drawings Via the CATIA V5 config variable CMI REFERENCE
59. ass Hierarchy of PelmStrc relation 58 CMI Customizing Guide These Relations will be expanded in the CMI Workbench but not by the Uses Parts expand in the standard browsers Observe the message access rule for the Teamcenter method g Genltm g3ExpBranchMulRef in order to remove or enable the Workbench expand relating to Reference Geometries MyReferenceT MyReferenceTop2 MyReferenceTop2 A 1 Mark Unmark Part Mark All Subassemblies Unmark A11 Subassemblies Get Item Info Get Spare Attributes Refresh Set Workplane Highlight in CATIA Expand Multiple Levels Expand with Reference Expand for Visualization Expand Expand Models Fynand VS Drauinma Figure 25 Expand with Reference If you need to define your own reference geometries product structure relation set the class constant x0WkBnch x4PartToRefPartC E ex Validate CATIA Version CMI stores the CATIA Release Service Pack and Hotfix that were used to save a CATIA file This information can be used during Read from Teamcenter to avoid opening a file that was stored with a newer version of CATIA set CMI VALIDATE CATIA VERSION ON in the Teamcenter configuration to enable this validation OOTB only the Release Level is validated You can adapt the validation scheme by overriding the following message object message g0GenBin x3ValFileVerForRead input ObjectPtr CatiaFile input integer FileReleas
60. at a Document Representant in the Workbench 16 Fill in custom attributes at a Model Representant in the Workbench 16 Perform additional actions after a model was updated from CATIA 16 Customize the name of parts in 17 Customize for sending custom attributes to CATIA for Parts Relations Models 17 Show Teamcenter meta data CATIA sse entere 17 Customize Worklocation esiste 18 Customize the CATDrawing filename sss 18 Customize the CATPart filename 19 Customize support CATProduct in CATIA V5 eene 19 Customize the CATProduct document xOPrabDoo sense 19 Customize the CATPart document GenDog essen 19 Customize the Creation of the Part Part relation during a Synchronize Link Child eje T Home 20 Customize the Black Box functionality 20 Customize the Component CATPart Data Model functionality 20 Customize the Deletion of CATPart and CATProduct instances during Synchronize21 Define your own model 202 0222 00 21 Filter Parts that are sent to Catia or VisMockup sss 21 GAA CUSTOMIZATION ea uic iir tente t
61. before PDM Centric Synchronize sess 56 Often used slots in the NVSET s given in the messages above 56 REFERENCE GEOMETRIES 57 VALIDATE CATIA VERSION s 59 EXPORT TO FOLDER Zren mI 60 Name customization for Export esses eee 60 HANDLING OF MAPPING 5 nennen nns 62 52 M 64 viii CMI Customizing Guide PRODUCT B UNDING BOXE S oda daanan da ndra 64 COMPQUIALION ie 65 CUSTOMIZING ies A 65 CHAPTER ER E A EE E A 67 WORKBENCH ARCHITECTURE 67 GENERIC WORBKBENGH zc dece Dese oe ce Puta ee eve ee e tue tes 67 GATA WORKBENCH iaun eee oca aec ene ae dee ve tee es e dose abi 67 Ac cC c c EP 69 TEAMCENTER ENTERPRISE CONFIGURATION VARIABLES 69 CMESERVER OPTIONS teo Pete ee eal e aee Luc e ee 69 CHAPTER 92 eet is 73 CATIA V4 DIRECTORY 1 1 aa aa sanum aa aa ma aaa 73 DIRECTORIES Ta A IN Ad
62. box files to the user s work PSELUESAdGBISCKBOXEL KS 4 location and register them in x3Custom mth Customize the Component CATPart Data Model functionality The CATIA V5 Component CATPart Data Model functionality uses the following APPs Operations after a xOCatPrt has been created in Teamcenter Enterprise new Data Model Operations after a Document has been created in Teamcenter Enterprise new Data Model xOCatPrt x3CreateCmpDataPost ProdBI x3CreateCmpDocPost CMI Customizing Guide Operations after a Part has been updated in Teamcenter Enterprise new Data Model xOCatPrt x3SaveComponentPost in x3Custom mth Custornize the Deletion of CATPart and CATProduct instances during Synchronize This is a part of CATIA V5 Synchronize Command functionality and uses the following APIs Called during the Interactive Update and Create procedure for each CATPart or V4 Model deleted from the product structure by the user in CATIA V5 In OOTB CMI this is not implemented Override to remove file instances during Synchronize xOCTFile x3ProcessCATIADeletion Called during the Interactive Update and Create procedure for each CATProduct removed from the product structure in CATIA V5 Part x3ProcessCATIADeletion in x3Custom mth Define your own model types If you d like to have your own values for filtering models in the Catia Workbench you can change the attribute g0ModelType This attribute is
63. ch only the CATIA relevant data will be extracted and shown in the CATIA Workbench window see Figure 1 CATIA Workbench on page 1 The following chapters describe the customizing possibilities to influence the behavior of the CATIA Workbench It is recommended to consult the custom README file in order to ensure the actuality of source code and customizing tasks Enhanced Assembly Structure Relation Objects In order to manage assembly structures with and without position information CMI extends the standard Teamcenter Enterprise data model with three new classes g2AsmRel is used in order to define the general behavior of the CMI assembly structure relation objects which can be found directly below the standard Teamcenter Enterprise class AssmStrc g2AsmNPo defines the assembly structure relation object without position information and g2AsmPos for assembly structures with position information Both classes are derived from g2AsmRe 1 g2AsmRel defines the general behavior of CMI assembly structure relation objects 2 92AsmNPo for assembly structures without position information 3 g2AsmPos for assembly structures with position information The Teamcenter Enterprise data model with CMI looks like this 1 a Structur Structure 2 p AssmStrc Assembly Structure 3 a g2AsmRel CMI Assembly Structure Relation 4 pg2AsmNPo Assembly Structure without position 4 pg2AsmPos CMI Asse
64. ctiveCommandHeader CATNls This file contains the Text Messages catalog for the CMI Command Lj resources msgcatalog CMICreateCommandHeader CATNls Sychronize Teamcenter This file contains the Text Messages catalog for the CMI Command Create in Teamcenter er resources msgcatalog CMISaveAsCommandHeader CATNls This file contains the Text Messages catalog for the CMI Command SaveAs in Teamcenter 48 resources msgcatalog CMICreateV4CommandHeader CATNls This file contains the Text Messages catalog for the CMI Command Create V4 Model resources msgcatalog CMISaveAsV4CommandHeader CATNls This file contains the Text Messages catalog for the CMI Command SaveAs V4 in Teamcenter Ds CMI Customizing Guide 85 resources msgcatalog CMIInfoCommandHeader CATNls This file contains the Text Messages catalog for the CMI Command CMI Info A For working with Text Messages in different languages the files in the directory resources msgcatalog Should be copied in different subdirectories and adapted there Following figure shows an example of possible subdirectories under msgcatalog msgacataloo French Japanese Figure 31 Example of directory structure of the CMICATV5 installation subdirectory msgcatalog The English message files are located directly under the directory msgcatalog Customer dependent configurations for CATIA V5 Environment settings Environment Variable
65. ctures under a CMlArchive Default implementations of x3CreateUsesHel x0OWkBnch x3Getlnstlnfos have been changed to discriminate between archive and regular occurrences of an instance REPLACE ALLOW Set to ON to allow to replace NonBom geometries with Replace from Teamcenter To use this function the NonBom geometries has to be removed from the structure in TC for instance by setting the CMI server option REMOVE GEOMETRY DOCUMENT CMI REMOVE CMIREPLACEPDMSTRUCTURE CMD Set to ON to disable Replace from Teamcenter functionality CALC BBOX FOR IGNOREDCHILDREN Set to ON to calculate the bounding box of configurable ignored children with configuration during update of the father product Set to FORCE to update the bounding box whenever the father product is writeable CMI_ADDITIONAL_CMIAPPLICATION By default CMI is only loaded in the CNEXT process Set CMI_ADDITIONAL_CMIAPPLICATION lt your application gt to use CMI in an application other than CNEXT To get the correct name of the appication use CMI_DEBUG ON gt No in Application lt gt CMI_ACTIVATEREFERENCEGEOMETRY Set to ON to activate embedded component on Read if a configurable reference geometry is available on this component and the reference is sent by Teamcenter CMI_CHECKSAVED2 If set to ON use different method to detect modified files Caution If u
66. d 73 ETA a PIE ES 74 MODIFY CATIA V4 ENVIRONMENT ccooooocccccccononononoccnnnonononnnnnnnnnnnnnononnnncnnnnnnnnnnennananancncn ninas 75 USER DEPENDENT CONFIGURATIONS 76 USER DEPENDENT IN CATIA 81 CHAPTER 9 iiec nace denn aaa na ha a 83 CATIA V5 DIRECTORY aa ausa sanum aa aa RR rn na aa d 83 DIRECTORIES a O o qua Dec ecl A n 83 FEES A ae T 84 CUSTOMER DEPENDENT CONFIGURATIONS FOR 5 86 Environment settings iile tet eb fiae ed Pd 86 Hide GMI Commands eadein diit 93 CHARTER 1 O PA OPC O gu AO 95 DATA IMODE LS iaa 95 DATA STRUCTURE 95 DATA STRUCTURE OF CMI CLASSES 96 g0GenBin Class nn 97 gORepltm Class sese snnt 98 CMI Customizing Guide ix Table of Figures FIGURE 1 CATIA 1 FIGURE 2 SYSTEM ARCHITECTURE OF 0 0 nene nn 3 FIGURE 3 CMI OBJECT
67. d is unavailable If setto ON the CMI General Update Addin SMI SLOBALEDISABLE commands are disabled If set to ON the following functionality is disabled During a Read if CMI recognizes that a file with a different UUID has been received from the PDM System instead of the file UUID named in the parent CATProduct then the new file is attached in place of DISABLE REPLACE WRONG PRD the old Set to ON to enable customer specific validation of all CMI ENABLE VALIDATE BEFORE UPD operations in Synchronize Command before a sync may be executed CMI DISABLE STEP SYNC Set to ON to remove the Synchronize operations singly check box from the Synchronize dialog If set to ON this disallows the addition of new CGR files to the product structure If set to ON this disallows the addition of new SMISDISREEE NEW instances of CGR files to the product structure If set to ON this disallows the addition of new V4 Model files to the product structure If set to ON this disallows the addition of new eee EEE NEW MODE TANE instances of V4 Model files to the product structure If set to ON the support for CATAnalysis in CMlArchives is disabled ENABLE ANALYSIS COMPUTATION IGN If set to ON the the computations in CATAnalysis is DISABLE NEW CMI DISABLE NEW V4MODEL DISABLE ANALYSIS IN ARCHIVE ignored else the computations must be deleted by th
68. description rotine is used the user must declare the application string 2 Element type 3 Types of the description 1 16000 This routine restricts the size of the data block to 32 elements of each type example CATIAEDB 1111 gt PT search for application string and 2456 DESCINFOAPPEDBCATIA CATEDM DESCINFOELEPT LN TXTN CATEDM_DESCINFODESC 12345 2456 3457 EDBCATIA and CATIAEDB and types 12345 CMI Customizing Guide CATEDM COMMENT comment support Read the comment lines of a model file and write them into a file into the exchangemap directory The full filename stands into the info obj O off 1 on CATEDM NEWUPD Newupd After your selecting METAPHSE gt UPDATE gt ALL a list of models that have been modified will come up in CATIA V4 If some models were active but the user mustn t change these models a status panel will pop up It is not necessary to confirm this panel After your confirmation the selected models will be updated in Teamcenter 1 in CATIA V4 default O no selection of the models in CATIA V4 Save As Create can replace the original CATIA V4 model in the current SESSION by the new registered Teamcenter CATIA V4 CATEDM CUSUPD cmi custom update The customer can use its own libs to perform some CATIA action at update create model This is only possible if the REED CATEDM REPLACEMODEL
69. dth of Name JobMultiList ColumnWidth4 16 CMI Customizing Guide 10 Data Models The following figures show the entire data model of the CATIA Workbench CMI and of the structure of the persistent CMI classes o m Data structure Catia Workbench x0CTltem Assembly Has Refs 8j Document Assembly Tidl x0CTItem x0Cmit x0DocRep Part Contains Contains Contains x0ArcRep x rrtRep x0DrwRep x0CgrRep x0RepRep wl S B DE x0CatDrw x0CatArc xOCatPrt x0CTMod Figure 34 Data Structure of Catia Workbench CMI Customizing Guide 95 Data structure of CMI Classes g2PrdDoc Assembly E PartDoc goPrdDoc AssmStrc PelmStrc g2AsmPos RAN g2AsmRel g2PEStrc g2AsmNPo e x2AsmPoQ x0CatPrd Attach pu Document PartMstr EE zl E xOCTFile x2DepDes Depends On 2 Part v x0CatExc d B Si gt x0CatRep x0CatDrw x0CatCgr xOCatArc CAER x0CTMod Figure 35 Data Structure of CMI classes 96 CMI Customizing Guide g0GenCnt g0GenBin Class Hierarchy Figure 36 shows the class hierarchy under the CMI class gOGenBin g0GenBin gO0GenFle gO0GenMo gOGenPrd gOGenClg g0GenDes x0CT
70. e PartObj modelObj is the related Persistent object CMI Customizing Guide 43 viewFormat is the viewing format from the Preference by default x13DXm1 3D XML and xiPlmXml PLM XML are supported by workBench is the Workbench Object the Return values are sHost sUser sFullPath which defines the Source location of the viewer file sNewFileName is the File name to be used in the viewer map Return of iStatus 1 in xOCTItem x3GetViewerFile defines not to search the models for Representation Standard behaviour in CMI for xOCTItem x3GetViewerFile 3DXML Get all documents then get all models the first model with the type CmiCatiaV5ViewType Should be CGR will be returned iStatus will return 1 if cgr is found no models will be searched PLMXML Get all documents then expand through x4ViewDocToJtRelClassC and x4ViewDocToJtRelShipC to x4ViewJtModelClassC Standard behaviour in CMI for x0ModRep x3GetViewerFile 3DXML Get the Cgr in the same manner as the Released Cache Concept from CMI CGR VAULTLOC PATH and CMI_CGR_HOST PLMXML Expand through x4ViewModToJtRelClassC and x4ViewModToJtRelShipC to x4ViewJtModelClassC Display User Data The following methods can be overridden to display custom Teamcenter properties in VisView VisMockup For a Representation JT gORepItm x3GetInfoForViewFile input ObjectPtr thisRep input ObjectPtr thisObj input string FileName output NVSET nvAdditiona
71. e ORE user CMI DISABLE MODEL IN ARCHIVE 2 the support for V4 models in CMlArchives CMI DISABLE CGR IN ARCHIVE the support for cgr in is ENABLE ARCHIVE ROOT PRODUCT ON If set to ON the Root in CMlArchives must be a LY CATProduct If set to ON the Modify non CATIA command is not CMI REMOVE CMIMODNCARCCMD available If set to ON a dialog for model update selection is CMI ENABLE UPD MODELSELECT DIALOG shown in update command If set to ON the Build as Multi Quantity command is available If set to ON the user can cancel the Update Create CMI ENABLE CHECKISUPTODATE Save As action if a CATPart CATProduct is not synchronized in the CATIA Session If set to ON the command to load referenced CMI ENABLE CMIMULTIQTYCMD CMI ENABLE CMIEXTERNALDOCCMD documents is available Additional software is required for this CMI DISABLE LOADOK MESSAGE If set to ON no message is shown after a successful Read from Teamcenter If set to ON the Workbench is not updated with new items created during Synchronize If set to ON a check is performed during Update if EMEENAPLFLSBESKISUFTODATE any geometry needs to be updated in Catia DISABLE UPDATE WB CMI Customizing Guide 89 CMI ENABLE CHECKMULTIEMBARC If set to ON ambiguous same partnumber local components are disallowed in an archive CMI_GETPOINTEDDOCUMENTS if set to ON dependencies based
72. e input integer FileHotfix input integer FileServicePack input integer CurRelease input integer CurHotfix input integer CurServicePack output boolean ReadOk output string Message output integer mfail code Return ReadOk FALSE to prohibit loading the file You should also return an instructive message text in Message which will be displayed in CATIA CMI Customizing Guide 59 Export to Folder Set ENABLE to enable the Export Structure to folder function The functionality allows to export CATIA data that was loaded from Teamcenter to a specific folder Original file names can be restored thanks to the mapping file ee 10 xl 18 x 555 8 1 Figure 26 Export to folder It is also possible to reset the CATIA standard attributes to their initial value before first import The following attributes are supported Nomenclature Definition Revision and Description To enable the mapping of the attributes the following setting has to be added to the CATIA environment SET CMI_EXPORT_STDATTRIBUTES lt attribute1 gt lt attribute2 gt lt attribute3 gt lt attribute4 gt Name customization for Export To enable the functionality you have to set the following environment before start up of CATIA V5 SET CMI EXPORT CUSTOMIZE NAMING ON In order to be able to use different naming schemes for the same data an initialization
73. e function in CATIA as callback functions in CAA The callback is implemented by loading a customer compiled shared library dll that contains pre specified static functions The following callback functions are available extern C HRESULT CMICusPrepareSynchronize CATUnicodeString amp sFeedback CATBoolean amp bCancel Called after Command is activated but before Synchronize dialog is filled sFeedback String can be set and will be piped through to consecutive customizing messages eg to suspend the custom actions bCancel Return bCancel true to cancel the Command Customization is responsible for user message HRESULT S OK if success E FALL if failure Failure does not stop processing extern C HRESULT CMICusPreSynchronize CATUnicodeString amp sFeedback CATBoolean amp bCancel Called after Synchronize button is pushed sFeedback String is supplied and will be piped through to consecutive customizing messages eg to suspend the custom actions bCancel Return bCancel true to cancel the action Customization is responsible for user message Synchronize button will be in deactivated state HRESULT S OKif success E FAILiffailure Failure does not stop processing extern C HRESULT CMICusPostSynchronize const CATUnicodeString amp sFeedback const CATBoolean bCompleted Called after Synchronize button is pushed
74. e system call which will pack a CMI Archive If not set use system limits of the OS If the limit is reached the pack Archive Command will be split see CMI PACK ADD ARCHIVE CMD CMI ARCHIVE AUTOUPDATE Automatic update after Attach an Archive 90 CMI Customizing Guide REPLACE WRONG AUTO If set to ON The confirmation dialog for the following functionality is disabled During a Read if CMI recognizes that a file with a different UUID has been received from the PDM System instead of the file UUID named in the parent CATProduct then the new file is attached in place of the old CMI ENABLE DEACTIVATED CHECK If set to ON the active window is searched for deactivated products if deactivated are found the update operation is not allowed CMI ENABLE PARTINFO FOR MODEL If set to ON the more info button will provide information about the Part in TC instead of only the data item COMI DISABLE DT IN ARCHIVE If set to ON CMI does not store DesignTables in Archive even if CMI DESIGN TABLES is set in Teamcenter CMI USE DTFORPRODUCT If set to ON CMI also handles DesignTables for CATProducts if CMI DESIGN TABLES is set in Teamcenter CMI REP FORMATS Sets the Representation formats which should be handled Example wrl stl CMI DISABLE REP IN ARCHIVE If set to ON the support for Representations in CMlArchives is disabled CMI REMOVE UNKNOWN FILE
75. expandInfo input SetOfObjects assObjSet output SetOfObjects partsInAss output SetOfObjects partRels output integer mfail code mfail USC OKAY dstat g3GetPartsInAssSet classname assObjSet partsInAss partRels mfail if expandInfo amp amp nlsStrCmp expandInfo myPartExpand 0 EEPE RER EE ERTE E a es as TODO Filter partsInAss partRels according to the special requirements of your custom Expand v A A ee CMI Customizing Guide 53 E LJ Supply Attributes from Catia to Teamcenter and back CMI provides a set of APIs which allows the transfer of attributes from CATIA to Teamcenter and back This functions can only be used within a customer specific CATIA application CAA or Automation VBA Customizing on Teamcenter is required Supply Attributes from Catia to Teamcenter CAA Function HRESULT CMIGetPartAttributeFromTC const CATIProduct var spProduct const CATString amp sAttribute CATString amp sValue CATString amp sReturnCode Get Attribute from Teamcenter This Function calls x3GetAttValueForObject in Teamcenter In spProduct CATProduct to examine in Teamcenter sAttribute sAttributeName Out sValue sAttributeValue sRetum Code Message from Teamcenter CAA Function HRESULT CMIGetDrawingAttributeFromTC const CATDocument pDocument const CATString amp sAttribute
76. his for starting CMISender DISABLE CMIBUILDVISUCMD If set to ON the CMI BuildVisu Command is not available DISABLE CREATE CATDRAWING If set to ON the creation of new CATDrawings is disabled DISABLE CREATE CATPART If set to ON the creation of new CATParts without Parents is disabled DISABLE CMIRECONNECTCMD If set to ON the CMIReconnect Command is not Available CMI ENABLE ARCHIVE CACHE If set to ON the archive file can handle Release cache files PDM MANAGED STDCATPARTS If set to ON then CMI treats standard part geometry CATPart files like regular component part geometry that is the geometry is expected to be attached to a document describing the Component in PDM and it is transferred to the exchange map at To Catia CMI PACK ADD ARCHIVE CMD String to use to override the default command line for Adding files to archives Default is zip 0 q j where 0 is store only q is quiet operation j is junk don t record directory names CMI PACK ARCHIVE MAX FILES Define the maximal number of files which will be packed with the Zip command If not set Default is 100 Used to reduce the needed length of the command line for the system call NO PUBLIC POS UPDATE Do not try to update transformations under products that are read only CMI PACK ARCHIVE MAX COMMANDLINE Define the maximum length in Bytes of th
77. ia the function xOWkBnch x3ConvertUserDefProps dstat x3ConvertUserDefProps xOWkBnchClass ModelInfos amp vDisplayNameSet amp vPropNameSet amp vPropValueSet mfail for Model Properties or dstat x3ConvertUserDefProps xOWkBnchClass PartAttributes amp vDisplayNameSet amp vPropNameSet amp vPropValueSet mfail for Part Properties Configurable Behaviors in CATIA V5 It is possible to configure the behavior of catia while update amp synchronize Dependend on a given prefix of the partnumber in a CATProduct Component it is possible to force the update to Ignore a Component Ignore the CATProduct Component and it s subtree Create a special relation in Teamcenter This has to be configured in the CMI CONFIGURATION FILE The scheme looks as follows lt CMIConfigTopics gt CMI Customizing Guide 33 lt ConfigurableBehaviors gt lt ConfigurableBehavior UniqueID Unique ID gt lt BehaviorType gt Behavior Type lt BehaviorType gt lt PartNumberPrefix gt Prefix lt PartNumberPrefix gt lt Behavior gt Behavior lt Behavior gt lt ConfigurableBehavior gt lt ConfigurableBehaviors gt lt CMIConfigTopics gt There can be multiple tags lt ConfigurableBehavior gt in the tag lt ConfigurableBehaviors gt The tag lt UniqueID gt has to contain a value which have to be unique in this file The following options exist to define which CATIA components a configurable behavior
78. ion x3GetCATIADescription Customization Receiving user defined attribules from CATIA V5 It is possible to receive changed standard properties from CATIA V5 These attributes may be saved back in Teamcenter Enterprise Overwrite X3SetCATIARevision x3SetCATIANomenclature CMI Customizing Guide 29 x3SetCATIADefinition x3SetCATIlADescription ELE User Defined Properties in CATIA V5 In CATIA V5 you can add user defined properties to the standard CATIA V5 properties form Added Properties CMI provides two new messages to work with such user defined properties It is possible to send user defined properties from Teamcenter Enterprise to CATIA V5 and display these properties within the standard properties dialog The property values could be changed by the user and all changed properties are sent back to Teamcenter Enterprise during update It is not possible to define new properties in CATIA V5 dialog and save them back to Teamcenter Enterprise com A 2 Current selection 000029813 V2 2 BARRE ANTI DEVERS 2 Product Graphic Mechanical Drafting Description 2 3 visualize in the Bill Of Material Link to Reference 000029813 V2 2 C user cmiusr3 exmapyS5 C000010544_4 1 CATProduct Product Part Number Revision vz2 Definition Nomendatue Source uno 7 Description BARRE ANTI DEVERS 2 Product Added Properties
79. jectPtr catiaObj input NULL NvSet ModelInfos input ObjectPtr desTabObj input NULL string sPartClassName input NULL string SPartOBID input NULL string sPartDbName output ObjectPtr relObject updat SetOfStrings vStats output integer mfail define message x3RemoveDesTab input ObjectPtr modelObj input NULL NvSet ModeliInfos input ObjectPtr desTabObj input NULL string sPartClassName input NULL string SPartOBID input NULL string sPartDbName updat SetOfStrings vStats output integer mfail These methods are used to get related Design Tables for a Catia Model Product or to relate a Design Table to a Catia Model Product CMI Customizing Guide 45 MML Support 46 Fealures MMLs can be managed in Teamcenmter Installation This use case requires additional CMI CATIA library Windows CMIExt dll Solaris libCMIExt so HP UX libCMIExt sl AIX libCMIExt a IRIX liIBCMIExt so This library is not part of the CMI product Please contact cmi_support t systems com to get more information Copy this library to the binary path of the CMI CATIA installation e g COMI Installation Dir XCMICATV5 R16 91V10 ntel axodeWim Configuration Teamcenter setting in PPDM_CONFIG Optional CMI_DEPENDENT_TYPES Default CCP Set this environment if you want to use other link types than CCP Settings during startup of CATIA V5 CMI_GETPOINTEDDOCUMENTS ON Default OFF Set this environment to ON
80. jectPtr thisObj input ObjectPtr WorkBnchObj output boolean bIsResourceView output integer mfail code The message g3GetProcessFiles expands the Document and returns the Process data items attached to the Document message ProdBI g3GetProcessFiles input ObjectPtr thisPtr input ObjectPtr WorkBnchObj update SetOfObjects processesOfPart output integer mfail code E Viewer support Prerequisites A custom service has to provide viewing files like JT or CGR The viewing files are needed for the following geometry types CATPart model CGR if you use JT CMlArchive You need one viewing file for the contend of the CMlArchive To create the viewing files you can use the following utilities CGR DassaultSystems CATDMUUtil Part of CATIA V5 JT T Systems ComFox Translator CMI doesn t use viewing files for the CATProducts in the Assembly structure The structure is created on the fly Features This functionality reads the CMI Workbench content gets the viewing files from customisation and builds up a format file to open viewer The CMI Model Filter is extended with a Viewing File type CmiCatiaV5ViewType which will be filtered out by default even if the Model filter preferences in the CMI Workbench Window Options menu is not set CMI Customizing Guide 41 B Model Filter Preferences D Use model filter Model types 5 Viewing E Select the model types which should no
81. jectPtr thisObj output SetOfStrings vAttributeList output SetOfStrings vValueList output integer mfail sClassname is the class name of the Drawing object thisObj is the object itself vAttributeList is the list of parameter names vValueList is the list of related values for the attributes Both lists must be the same length D 4 Transfer of weight properties inertia from Catia V5 to Teamcenter Inertia properties eg Mass can be read from Catia V5 and stored in Teamcenter 70117 Parti Current selection Mechanical Graphic Product 7 General Center of Gravity Density 1000kg_m3 25 Volume 4 2688 004m3 y 3 24mm Mass 0 427kg 2 40 943mm Surface 0 042m2 Inertia Matrix 1xx 7 199e 004kg m2 Ixy Okgxm2 Ixz 0kgxm2 IS CECI y EI 4 1138 006kgxm2 v 4 113e 006kgxm2 122 3 753e 004kgxm2 Only main body More Q Apply Close Figure 22 Properties with inertia In order to read these properties from Catia the following variable has to be set in the Catia V5 environment set CMI READ INERTIA ON Inertias from CATProducts and CATParts are sent to Teamcenter set CMI READ INERTIA ONLY CATPART Only the inertias from the CATParts will sent to Catia This may improve the performance especially in case of large assemblies The inertias can confined to the main bodies of the CATParts by a further config
82. lAttributes output integer mfail For a Part x0CTItem x3GetInfoForViewPart input ObjectPtr partRep input ObjectPtr partObj output NVSET nvAdditionalAttributes output integer mfail The properties added to nvsAdditionalAttributes will be shown as usr data user values in VisView Design Table Support Fealures Design Tables are managed in Teamcenter by Synchronize of Catia V5 44 CMI Customizing Guide In PDM CONFZIG file there is the following configuration var CMI DESIGN TABLES If this variable is set to ON during To Catia all Catia Model Products are expanded for Design Tables and the relevant Design Tables are transferred to Catia V5 There is a performance impact Class Constants xOWkBnch x4CreateCatTxtC x0CatTxt Class for csv design tables xOWkBnch x4CreateCatExcC xOCatExc Class for Excel M design tables xOWkBnch x4DesTabRelClassC x2DepDes Dependency relation xOWkBnch x4DesTabRelShipClassC DesTabDependentOnItems Relationship Customizable Methods define message x3GetDesignTables input ObjectPtr catiaObj input NULL ObjectPtr partObj output SetOfObjects desTabObjs output SetOfStrings dtFileNames output integer mfail define message x3IsLinkedWithDesTab input ObjectPtr modelObj input ObjectPtr desTabObj output integer bLinked output integer mfail define message x3LinkWithDesTab input Ob
83. lated opened Drawing If set to ON then with Create Create amp Link Save CMI CHECK LINKED PRODUCT As the CatPart is checked if it is opened in another product If no unit of measurement is passed from the PDM system to CATIA then the unit may be set here Full filename and path to the CMI XML Configuration CMI_USERELEASEDCACHE CMI_RELEASEDCACHEDIR CMI_CLEANRELEASEDCACHE CMI_CREATETEMPCGRCOMP CMI_CHECK_LINKED_DRAWING CMI_DEFAULT_UNIT CMI_CONFIGURATION_FILE file alternative complement to system environment variable declaration CMI ENABLE SINGLEPARTMODUS READ If set to ON the Single Part Modus option in the CMI Options CATIA V5 property page is enabled CONNECTPDM String to use to override the default command line omfel call ENABLE NATIVEPRODUCTTRAFO Set ON to enable the option to suppress CMI Transformation If set to ON CMI will switch CATParts that it loads in CMI ENABLE APPLY VISUMODE Design mode back to Visualization mode if possible supported by CATIA beginning R13 ON OFF gt if ON user can reset Matrix position to original CMI Matrix position within CATIA V5 Default is ON Set to OFF will disable support for CMI ENABLE REMOVED DOCCOM removed Models in TC if ON the removed models will be highlighted at Read Command If Set to ON CMI will warn if you update a CMI DRAWING CHECKUPDATEOFASSEMBLY CATDrawing when at least one related C
84. les which are saved by the native CATIA Save command also if Set to OFF out of sync cgr files in the local cache are not treated by CMI CMI ENABLE CACHEMODE RESETDOCLINKS Default is OFF Set to ON if it should be attempted to reset refresh document links in Cache Mode Default is OFF as R12 sp3 can t refresh geometric document links properly CMI ENABLE CMIUPDATEPOSITIONCMD Default is NULL Set in ON to enable the Update Position Command CMI ENABLE CMICREATEFORDOCCMD Default is NULL Set to ON to enable the Create For Doc Command CMI ENABLE CMIGETORIGGEOCMD CMI Customizing Guide Default is NULL Set to ON to enable the Get orig Geometry Command 87 Default is NULL Set to ON to transfer CGR files to Released Cache Only used if USERELEASEDCACHE ON Sets the Released Cache dir used by CMI to a specific member of the list of Released Cache directories in CATIA Default not set gt CMI uses the first member of the list If set to a member this member must be part of the list Only used if USERELEASEDCACHE ON Default is OFF Set to ON if you do not use version independent filenames Only used if CMI_USERELEASEDCACHE ON Default is OFF Set to ON to use temporary CATIA components which contain the related CGR as shape representation instead of the original CATPart If set to ON then with Create Create amp Link Save As the CatPart is checked for a re
85. ll CATIA V4 user should have access privilege to this directory htdoc Help files in HTML Format start page is index htm pdfdoc Help file in the PDF Format XPDF uses this file to get the context sensitive help The Following section describes some important files and their meaning doc README FIRST txt This file contains some necessary tips for the CATIA V4 integration You should read this file doc WHATSNEW txt This file contains the changes of the CATIA V4 module There are new features changes and bugfixis doc README environment This file contains the possible environment settings of the CATIA V4 module The File README env xls is the same in the Micosoft Excel format data xtOrequest sh This file is needed for the communication between CATIA V4 client and Teamcenter Enterprise server You should modify this file and copy it into any directory in search path of CATIA V4 clients data ini env This initialization script contains some necessary environment settings for the integration The meaning of the certain environment variables is described in the ini env file This file should be adjusted and each user must run this script before starting CATIA V4 Please refer the README environment file for more information data METAPHSE include CATIA V4 declaration file for the integration This file should be included to the users USRENV dc1s or to any other local or global CATIA V4 declaration file
86. ll values defined for this title block from Teamcenter Enterprise and displays them in the corresponding view positions There is only one configurable start string for drafts and one other for views but there may be a multitude of strings for details as many as different title blocks defining their corresponding title blocks Thus the need for probably many different title blocks in a company is covered The following figure shows a simple draft with the name conventions used by the CATIA Teamcenter Interface View Frame Draft Sheet xxx Figure 11 Simple draft with drawing frame conventions CMI Customizing Guide 25 Sample for the definition of some naming conventions In the following we describe a sample which fits to the conventions that we need to define in the file dshdrawingframe sh This file must be located in a path that can be found in PATH You can find a sample for this file in your catedm installation path catedm data dshdrawingframe sh In this example we will define Draft BLATT View RAHMEN Detail DIN and DIN A5 Catedm data dshdrawingframe sh CATIAFRAME Case TOKEN in ALL echo redraw default yes echo indicatordraft BLATT echo indicatorview RAHMEN echo standard format DIN echo frames DIN DIN A5 redraw default echo yes indicatordraft echo BLATT indicatorview echo RAHMEN standard_format echo DIN frames echo DIN DI
87. lling of permissions controlling of visibility There are some public methods in the Generic Workbench which allow a customer to control the permissions and visibility Please consult the files custom g3Custom mth GMI related methods and custom x3Custom mth CMI related methods for more information x Catia Workbench The CATIA Workbench CMI is the main server of the CATIA Teamcenter Integration and bases on the Generic Workbench CMI Customizing Guide 67 7 Teamcenter Enterprise configuration variables CMI Server Options These are the possible settings for CMI within the PDM CONFIG file config cfg Variable Comment Path to listener cmilis will be searched in SMIESRATH PATH if not given CMICITRIX Set to Yes if CMI is used with Citrix CMILISINFO Path to communication file for CITRIX CMIEXMAPHOST Host for Exchangemap with Citrix GCVMI SERVER DEBUG Set to ON to receive CMI debug output from the dispatcher GCVMI ENABLE LINK If set to YES CMI will try to create links to model files instead of copying them to the exchangemap Recommended Links are only available on UNIX OS GCVMI MAX QUANTITY Maximum Quantity for CMI Multiquantity relations CATNAD STARTUP Path to 4D Navigator startup script GCVMI_SERVERPORT Port range used on the server for CMI V4 communication GCVMI_CLIENTPORT Port range used on the client for
88. mbly Structure with position 6 CMI Customizing Guide If your specific assembly structure relation is derived from g2AsmPos assembly structure relation with position information some additional methods are called for the validation of this information Due to the fact that validation routines always need some time to perform their actions it is necessary to decide if the new relation object needs position information or not If yes you need to derive this class from g2AsmPos if not you should use g2AsmNPo g2AsmRel g2AsmRel Assembl 2AsmRel PartMstrsInAss 9 PartMstrIsUsed 2AsmP 2AsmPos ETUR g2AsmPos 3 PartMstrsInAss PartMstrIsUsed 2AsmNP 2AsmNPo an g2AsmNPo PartMstrsInAss PartMstrIsUsed Figure 6 Data model extensions for positioning C 2 lt Class Description of g2AsmPos Class g2AsmPos Parent g2AsmRel Prompt g2AsmPos Left Side Class Assembly Right Side Class PartMstr Forward Relationship Name g2AsmPosPartMstrsInAss droppable Backward Relationship Name g2AsmPosPartMstrIsUsed droppable Attributes Opts Type Prompt TMatrix11 string 30 TMatrix11 TMatrix12 string 30 TMatrix12 TMatrix13 string 30 TMatrix13 TMatrix14 string 30 TMatrix14 TMatrix21 string 30 TMatrix21 TMatrix22 string 30 TMatrix22 TMatrix23 string 30 TMatrix23 TMatrix24 string 30 TMatrix24 TMatrix31 string 30 TMatrix31 TMatrix32 string 30 TMatrix32 TMatrix33 string 30 TMatrix
89. model object or ignore it You can exclude an entire class or individual objects based on their attributes For Documents you can also override GenDoc g3ChecklfDocInScope if you want to filter documents based on attributes of the Part they describe See also CMI Customizing Guide 15 g0PdmItm g3CheckIfItemInScope Dataltem g3CheckIfItemInScope g0GenMod g3CheckIfItemInScope GenDoc g3CheckIfDocInScope in g3Custom mth Fill in custom attributes at a in the Workbench By default all attributes of the Part are copied to the CATIA Item So to add attributes from your Part class you only need to attach those attributes to xOCTItem To do additional work after a CATIA Item is created override gOGenItm g3CreateGIPost To set attributes based on the AsmStrc relation between the part and its parent Assembly override gOGenItm g3SetAttrsFromRelation Note that the passed relation may be NULL if the CATIA Item is a root level assembly See also g0GenItm g3SetGIAttrs g0GenItm g3CreateGIPost g0GenItm g3SetAttrsFromRelation in g3Custom mth Fill in custom attributes at a Document Representant in the Workbench To fill in additional attributes based on the original Document after a Document Representant was created override gOoDocRep g3SetSpecificAttrs See gODocRep g3SetSpecificAttrs in g3Custom mth Fill in custom attributes at a Model Representant in the Workbench To fill in additional attributes based o
90. mplementation available in x3Custom mth Customize the CATDrawing filename Customize the default filename of a new CATDrawing xOCatDrw x3CreateModelName input ObjectPtr this input string pHost input string pUserName input string pDirectory input NULL ObjectPtr DocObj CMI Customizing Guide output string filename output integer mfail Original implementation available in x3Custom mth Customize the CATPart filename Customize the default filename of a new CATPart xOCatPrt x3CreateModelName input ObjectPtr this input string pHost input string pUserName input string pDirectory input NULL ObjectPtr DocObj output string filename output integer mfail in x3Custom mth Customize support CATProduct in CATIA V5 Supress CATProducts to CATIA V5 xOWkBnch g3CatPrdV5Support input string classname output boolean bCatPrdV5Sup output integer mfail Original implementation available in x3Custom mth Customize the CATProduct document xOPrdDoc Customize the creation of CATProduct document x0PrdDoc x3CreatePrdDoc input string className input string partNumber input ObjectPtr partObj output ObjectPtr newPrdDocObj output integer mfail Original implementation available in x3Custom mth Customize the CATPart document GenDoc Customize the creation of Model or CATPart document Part x3LinkWithDocument input ObjectPtr thisObject input ObjectPtr docObject
91. n the original CATIA model after a Model Representant was created override xOModRep g3SetSpecificAttrs Note that the default implementation is not empty so you must call the parent method This requires to derive your own class from x0ModRep See xOModRep g3SetSpecificAttrs in x3Custom mth Perform additional actions after a model was updated from To perform additional actions after a CATIA model was modified from inside CATIA override xOCTFile x3SaveModelPost See xOCTFile x3SaveModelPost CMI Customizing Guide in x3Custom mth Customize the name of parts in CATIA To customize the name of parts displayed in CATIA override xOCTItem x3GetDescriptionInCAD By default the part number is shown See xOCTItem x3GetDescriptionInCAD in x3Custom mth Customize for sending custom attributes to CATIA for Parts Relations Models Override xOCTFile x3GetCustomDataForCAD Part x3GetCustomDataForCAD g2AsmPos x3GetCustomDataForCAD xOWkBnch x3SendCustomAttrPref in x3Custom mth Following you will find a detailed description which method has to be overwritten in which case Activate LINX interface gt x0WkBnch x3SendCustomAttrPref in x3Custom mth Send custom attributes from Model to CATIA gt x0CTFile x3GetCustomDataForCAD in x3Custom mth Send custom attributes from Part to CATIA gt Part x3GetCustomDataForCAD in x3Custom mth Send custom attributes from Relation between Assemblies to CATIA gt g2Asm
92. ns are validated but after this the program returns to the synchronize dialog in Catia without doing any change in Teamcenter 56 Customizing Guide OBID The obid of the object in Teamcenter It doesn t exist if the operation is CREATE DB NAME The name of the database in Teamcenter It doesn t exist if the operation is CREATE CLASSNAME The classname in Teamcenter If the operation is CREATE the standard CMI Class for the object is given PARTNUMBER The partnumber in Teamcenter EXTERNAL LOCATION The full path of the object Exists if the object is a FSltem in Teamcenter INSTANCENAME The instance name of a relation NOMENCLATURE The nomenclature of a CATProduct in Catia Reference Geometries The concept of reference geometries lets you include Parts and Assemblies in the CATIA product structure that are not Part of the general Teamcenter Assembly structure Bill of Material BOM This allows to reference context geometry in the CATIA structure eg for drawing creation The following environment variables have to be set before startup of CATIA V5 set CMI CONFIGURABLE NODE BEHAVIOR ON set CMI CONFIGURATION FILE lt path gt 1CMICatiaV5Config xml In the CMI Configuration File CMICatiaV5Config xml you need to define a Prefix for the ReferenceGeometry behavior The following example defines a prefix of REF xml version 1 0 encoding UTF 8 gt l
93. ntObjInfos contains the following attributes for the Father Object ie the Assembly if existent PARTNUMBER NOMENCLATURE DB NAME OBID CLASSNAME The NVSET nvsParentUserDefInfos contains the User Defined attributes for the Father Object if existent LSE Custom Expand in the CMI CATIA Workbench The method for the multi level expand in the CMI CATIA workbench was extended by an optional expand information string If no special expand information is given then the default expansion is being performed Giving an expand information string to the new multi level expand method will pass this string to the lower level custom methods that define which sub parts should be returned for a given assembly With this CMI extension customization can define one or more new custom expand context menu options in the CMI CATIA workbench context menu The custom methods that are called by these menu options can call the extended CMI multi level expand method passing it a specific expand information string The expand information string is stored in the CMI Filter preference At the end of the command this attribute is reset in the filter preference CMI Customizing Guide 51 If you want to customize the Expand of an Assembly structure with the catia models in the WorkBench you have to customize the following methods define trusted external nondisplaying nonprompting class message g3GetAllModelsOfDocCus inpu
94. nto CATIA The default rules allow any user to view any model Restrict permission to modify a model from CATIA A user needs access to the Edit message for objects in order to modify model files under Teamcenter Enterprise control from CATIA The default rules don t allow a user to update a model that doesn t belong to him Restrict permission to modify Assembly positions from inside A user needs access to the g3UpdateTrafo message for Part objects in order to modify Assembly positions The default rules don t allow a user to update a position of a part if the parent assembly doesn t belong to him Class Constants There are some class constants that you can override to meet the specific needs of your customization define value set gORelsOfPart PartDoc DocumentsDescribingPart Part met Part g4RelsC gORelsOfPart This determines which Part Document relationships are searched for documents If your Parts are described by a large variety of documents but few attach CATIA models you may want to use a dedicated relation class for CATIA documents By overriding this class constant you can make this relation class known to CMI so it will only search for documents with this relation to the Part define value set gORelsOfDoc Attach DataltemsAttachedToBusItem GenDoc g4RelsC gORelsOfDoc CMI Customizing Guide 11 This determines which Document Dataltem relations relationshi
95. ocument describing a Part the following Teamcenter configuration variable can greatly enhance usability and consistency set CMI SINGLE PART DOCUMENT ON If this variable is set only one document is created for each Part during Synchronize all CATParts will be attached to this document Also if a Part already has a describing Document of the right class it will be used CProd060206 2 Is Described By psm desBy cmicProaoeo206 2 Attaches att a CProd060206_2 CATProduct 5 cProdo60206_2 Attaches att E CPart060206_3 CATPart CPart060206_4 CATPart Figure 8 One Document for all CATParts The complementary data model is obtained with the following setting set CMI SINGLE PART DOCUMENT SINGLE FILE This will create a new document for each CATPart which will be created automatically and named after the CATPart 7 Product77 Is Described By desBy 3 CMIProduct77 Attaches att L Product77 CATProduct amp Parti AC Attaches att L Parti AC CATPart 5 Part2 AC Attaches att JE Part2_AC CATPart 5 Parts Attaches att E i Part3_AC CATPart Figure 9 One Document for each CATPart CMI Customizing Guide Getting rid of the CATProduct Document In order to improve consistency CMI uses a special class and relation for the Document that attaches a CATProduct In an OOTB OMI installation you will typically see two Documents one that attaches the CATProduct and one that a
96. on referenced documents are created in Teamcenter This requires additional software CMI ENABLE CHECK PRD VAL IGNORE If set to ON the validate function of Synchronize succeeds if a product with no structural changes is modified and has to be updated CMI ENABLE CMIOPTIONSCMD If set to ON the CMI Options dialog command button is available CMI ENABLE STDPARTINFO If set to ON the standard Part infos are requested from TC needed for the Component standard part integration CMI REMOVE CMIUSEPDMSTRUCTURECMD If set to ON the Insert from Teamcenter Command is not available CMI ENABLE RESETINVALIDPOSCMD If set to ON the Reset Invalid Position Command is available CMI ENABLE CHECK INVALID POS If set to ON during Update all models are checked for invalid positions CMI BOM PART DEFAULT FOR SYNC Set the default value for new Models in the sync dialog NOT SET BOM all ather settings are normal models CMI ENABLE ASK FOR BOM PART If set to ON the user is asked which kind of Part should be created in TC CMI ENABLE CMIARCHIVE CREATE If set to ON it is possible to create Attach archives without parent and without CMI Parent CAT SCRIPT points to the cat start file full path with extension which is used to start the CMISender executable Used in Omf and CNEXT environment CNEXT startup will create the file for the actual CATIA and the Omf will use t
97. pPartDocRelClassC PartSDoc O xOWkBnch x4CmpDocPartRelShipC PartsRepresentedbyDocument O xOWkBnch g4BlackBoxDocClassC StDocmnt O gO0GenWB g4DocClassC StDocmnt O gO0GenWB g4PrdDocClassC StDocmnt O gO0GenWB g4PartPrdDocRelC PartSDoc O gO0GenWB g4PartPrdDocRSC DocumentRepresentingPart O gO0GenWB g4BlackBoxDocClassC StDocmnt O g0GenWB g4PartBlackBoxDocRelC PartSDoc O g0GenWB g4PartBlackBoxDocRSC DocumentRepresentingPart define value set StrcRelsOfPart PartSDoc DocumentRepresentingPart O Part g4RelsC StrcRelsOfPart O gO0GenBin StartClassToPrepareC StGenDoc O gO0GenBin DefaultClassToPrepareC StDocmnt Use a single Document per Part for multiple CATParts In the OOTB Synchronize function in CATIA V5 where CMI creates new Parts and Documents the user can create a fresh Document for each CATPart or he may use an existing document at the Part for all CATPart files that are linked to the Part This is effected by using the TC Prepare functionality where either an existing or a new document name can be given by the user CMI Customizing Guide 13 CProd060206_4 Is Described By psm_desBy cmrcProaoso206 4 Attaches att L a CProd060206_4 CATProduct 3 060206 7 Attaches att CPart060206_7 CATPart 3 cPartosoz06 8 Attaches att 060206 8 CATPart Figure 7 One Document for each CATPart In an organization where there is always only one D
98. ps will be searched for CATIA models If your documents attach a large number of files other than CATIA models you may want to use a dedicated relation class for the CATIA models By overriding this class constant you can make this relation class known to CMI so it will only search for files with this relation to the document define class constant x4CreateCatPartC xOWkBnch met xOWkBnch x4CreateCatPartC xOCatPrt This determines which class is used to create a CATPart in Teamcenter Enterprise from CATIA V5 If you want to create a CATPart in Teamcenter Enterprise with another class than class x0CatPrt you should override this class constant by the name of the other class This new class must be a child class of x0CatPrt define class constant x4CreateCatDrawC xOWkBnch met xOWkBnch x4CreateCatDrawC x0CatDrw This determines which class is used to create a CATDrawing in Teamcenter Enterprise from CATIA V5 If you want to create a CATDrawing in Teamcenter Enterprise with another class than class x0CatDrw you should override this class constant by the name of the other class This new class must be a child class of x0CatDrw YA E Common Customization Tasks Use of Structured Documents eg StDocmnt Since CMI 8 9 you can use structured documents classes without writing any method code It is sufficient to set the corresponding class constants in the data model You can use any other document class in the same way The following ex
99. r copies the file to the Work Location of the correspondent product drawing Supply File from Catia to Teamcenter CAA Function HRESULT CMISupplyAdditionalFileForPrdToTC const CATIProduct var spProduct const CATString amp sFullPath const CATString amp sInfoForTC CATBoolean amp bSuccess CATString amp sReturnCode This Function calls x3GetSupplyFilePath and x3StoreSupplyFileCus in Teamcenter In spProduct CATProduct to examine in Teamcenter sFullPath Full Path of file sInfoForTC additional Info for TC Out bSuccess Success status of Teamcenter sReturnCode Message from Teamcenter CAA Function HRESULT CMISupplyAdditionalFileForDrwToTC const CATDocument pDocument const CATString amp sFullPath const CATString amp sInfoForTC CATBoolean amp bSuccess CATString amp sReturnCode This Funktion calls x3GetSupplyFilePath and x3StoreSupplyFileCus in Teamcenter In spProduct CATDrawing to examine in Teamcenter sFullPath Full Path of file sinfoForTC additional Info for TC Out bSuccess Success status of Teamcenter sReturnCode Message from Teamcenter p NCC Post process CATProducts for Synchronize Update An option is provided to perform post processing on CATProducts that are created during Update or Synchronize An example of this is to transfer the ownership of these files according to the parts they represent The Post processing step needs to be enabled in Catia by setting PRODUCT CREATE 5
100. rableBehavior lt ConfigurableBehaviors gt In this example CATIA component nodes with a part number beginning with STD_ are ignored by CMI Any CATPart files below this node will not be stored in Teamcenter but will be pulled from the environment During Update or Synchronize the bounding boxes of these CATParts will be combined into a single enclosing bounding box and will be stored in the CATIA Product File dataitem in Teamcenter Customizing When a product is updated the bounding box can be inspected by overriding the following customizing message message x0CatPrd x3SetCusAttrModInf update ObjectPtr this 2 input NvSet ModelInfos output integer mfail code The Modellnfos attribute will contain the bounding box coordinates D3D_BEX1 D3D_BEY1 D3D_BEZ1 D3D_BEX2 D3D_BEY2 D3D_BEZ2 If these values are absent from the NV Set the product does not have a bounding box CMI Customizing Guide 65 6 Workbench Architecture Generic Workbench The Generic Workbench GMI is the base server of the CATIA Teamcenter Integration and other products of T Systems International GmbH such as Voxel Metaphase Integration The Generic Workbench contains basic classes for the following functionalities creating the window creating some dynamic items creating some information items about the exchange map creating the relations set reset the communication between CATIA and Teamcenter Enterprise contro
101. reate the Product Document and the CATPart Document and resp Part objects of a BOM CATPart interactively CMI STORE MULTI INSTANCENAME set to ON to store the Instance names in the x2AsmPoq Relation for the multi quantity relation by default they are numbered CMI USE DB NAME Set to ON to query for objects via OBID and database name during CMI update That means objects will be only searched within the database they are really saved in CMI ITEM INFO ORIG Set to ON to show Get Item Info of the original object eg Part instead of the Catia Workbench Item CMI USE BLACKBOX Set to ON if you use the deprecated BlackBox functionality This has a performance impact CMI_SINGLE_PART_DOCUMENT Set to ON to reuse a single Document per Part for multiple models CMI DO NO LINK DRW TO PART Set to ON to suppress the link of the Drawing to the part CMI USE ORIG NAME FOR PRODUCT If set to ON the original filename from catia is used in Syncronize for Products and BOM Part CMI DESIGN TABLES If set to ON design tables are managed by CMI This has a performance impact CMI VIEW NETWORK EXPAND Set to ON if you require to use View Networks in the context of CAD Design This has a performance impact during update CMI TEMPLATE VAULTLOCS Names of vault locations for Create CATPart CAT Drawing in Teamcenter GCVMI DISABLE LINK V5 Set to ON
102. replace model model was loaded by CATIA 0 do not FILE gt open If the replace replace functionality is turened off The new model is loaded additional into the CATIA SESSION calls the shared lib libcmi custom update a sl so shared lib O do not use the shared lib CATEDM_BBOX bbox support bounding box generation for CATIA models 2 points for each model D3D_ X Y 2K1 2 bounding box points will be sent for each model at UPDATE ALL MODELS CREATE SAVE AS and MULT CRE O no bbox support at all 1 standard bbox support without checkbox at update and muticreate 2 bbox support with checkbox default support off 3 bbox support with checkbox default support on CMI Customizing Guide 79 CATEDM BBOXLAYER bbox layer list 012 254 creates a bounding box Only the elements of these layers using these used to generate the layers bounding box 1 uses the If no layer is set the current layer actual layer is used filter 2 creates the box using all layers ATTRIBUTS This is a short documentation of the configuration environment of CUSTOM ATTRIBUTE VALUE DESCRIPTION VolumeMass REAL CATIA V4 uses the units of the specific model 1 Sets the model standards 2 Calculates the weight and the Center of Gravity COG of the Volume VOL and the Polyhedral and exact solid SOL The res
103. rs sss nennen nnne nnne en nnne nnn 34 USAGE OF DATABASE NAME OF 35 Customization messages sisse eise nennen 35 READ REFERENCE SHEET INFORMATION FROM CATIA V5 5 37 Reference Documents for Drawings essen nnn 37 Sheet Information for Drawings essi sisse nnne nnne 37 ENHANCED 4D NAVIGATOR 37 CATIA PROJECT ENVIRONMENT 5 0 37 SUPPORT OF TEAMCENTER 0 38 WORKING WITH CATIA V5 RELEASED CACHE nnne 38 ConfIg FatiOIss E tp ete v He ted e entend 39 GATPROCESS CUSTOMIZATION darla 40 customization methods in 40 VIEWER SUPPORT s a erae n dd ln er ds C dada 41 Prerequisites eo eet ee potet ee ets eoe mete tribe 41 Features vo e eee tet e aed 41 ConfIguFatiQh ris A ed eo t e 42 CUSTOMUIZA O i a ete as n d ate e ed 43 Display User Data ore pe pe e a tete ins 44 DESIGN TABLE SUPPORT p A nh En Rt en P n n A 44 Features a Taa 44 CODTIQUFatilOn iii t ee e pl ete ca d cere e PA edd ca e e dnd 45 Customizable Methods
104. rward Relationship Name x2AsmPoQ g2AsmPos x2AsmPoQ Assembly x0AssmMr x2AsmPoQPartMstrsInAss droppable Backward Relationship Name x2AsmPoQPartMstrIsUsed droppable All Attributes Opts Type Prompt xOTrafoList Table Transformation List Opts i inherited d dynamic c cached r required All Constants Inherit Value GetInfoDialogC no DAtcGetI PsmAssocStRevRevClassC no g2ARvPos UpdateDialogC no x1APQUpd 11 Messages Opts Type DoCreateRelPost ObjectMessage DoUpdatePre ObjectMessage g3CreateOBID at ObjectMessage g3CreateRelationObj i ClassMessage g3CreateWidgetld i ObjectMessage g3DeleteObject i ObjectMessage g3DeleteRelationObject i ObjectMessage g3GetOccName i ObjectMessage g3GetTrafo Ji ObjectMessage g3UpdateTrafo i ObjectMessage g3ValForUpdTrafo i ObjectMessage x3AddTrafo ObjectMessage x3CheckForMultiOcc i ObjectMessage x3DelAssmStrcRel ObjectMessage x3DeleteTrafo ObjectMessage x3GetTrafos O ObjectMessage x3GetTrafosOfTable ObjectMessage x3UpdateTrafo O ObjectMessage CMI Customizing Guide 4 Customization Options Message Access Rules With message access rules you can control read and write access to CMI data based on properties of the user or the data itself Restrict permission to load a model into CATIA A user needs access to the View message for xOCTFile objects in order to load model files under Teamcenter Enterprise control i
105. ry for an example looks like the following string Company Name xpos 380 ypos 0 size string Created Date xpos 2 ypos 62 size string Modified ModificationDate xpos 2 ypos 42 size string Name Name xpos 0 ypos 5 size 1 5 color 3 string User USER xpos 20 ypos 2 size 3 orientation 1 CMI Customizing Guide 27 Each view section in the drawingframe script file can contain the following entries within single line Statement Syntax Description Xpos xpos x x position of text entry Ypos ypos y y position of text entry Size size s size of text entry Color color c color of text entry Orientation orientation orientation of text entry String string sub string text entry The sub string contain following statements Statement Example Description string T Systems The string will be written into the drawing String T Systems The string will be written into the drawing lt var gt USER The UNIX user name will be written into the drawing lt var gt Date The alias name for the x3GetAttrsForCAD message In our example listing it is the alias name for the Teamcenter attribute CreationDate The parameter that begin with are relevant for the customization In this case the parameter list Date ModificationDate Name will be transferred to the x3GetAttrsForCAD CMI method as Attrs demanded string list Now this string list can be
106. s that all functionality like Update Relationship e g has to be altered in a way which prevents the user from editing the Quantity attribute If the Quantity is raised a new unity matrix is added by default For each item of Quantity an instance of the Model geometry will be shown in CATIA and a transformation matrix has to be kept in the database Therefore you should limit the Quantity to a reasonable number eg in user dialog validation In the standard implementation of CMI this is controlled by setting the variable GCVMI MAX QUANTITY in your config cfg file If the variable is not set there is a limit of 100 for the Quantity attribute Example SET GCVMI MAX QUANTITY 20 Working with CATIA V5 Released Cache CMI supports the use of CGR files in the released cache of CATIA V5 For this purpose the Teamcenter customization has to store the CGR files of Catia models in a specific CGR Vault During To Catia these CGR files are copied to the Released Cache instead of the Catia models to the exchange map In CATIA V5 the CGR files are loaded in visualization mode For each file in the workbench CMI decides via customizable methods whether to copy the standard file or the CGR file 38 CMI Customizing Guide Options gt Change Preferences gt CMI Preference Set Transfer CGR File to CATIA V5 to Only CGR CGR geometry D In CATIA you have to use the following settings e Work with the cache system
107. s of CMI are GMI CMI Listener CATEDM CMICATV5 Exchange Map SERVER Generic Workbench defines some base classes see Data Structure of Catia Workbench on page 956 CATIA Workbench defines CATIA specific classes and allows the interaction between the user and CATIA see Data Structure of on page 967 Listener manages the communication between CATIA and Teamcenter Enterprise Collaboration Foundation Metaphase The CATIA V4 module provided by T Systems Enterprise Services GmbH allows CATIA V4 to manage multiple level assemblies The CATIA V5 module provided by T Systems Enterprise Services GmbH allows CATIA V5 to be integrated into Teamcenter Enterprise A dedicated user directory on the client workstation The CATIA extension expects the model files to be only within this directory CLIENT CATIA Workbench CMI Omf Client 1 1 1 CATIA 1 1 GENERIC Workbench GMI Exchange Map Standard Teamcenter Enterprise Network Figure 2 System architecture of CMI The interaction starts either on the CATIA side or in Teamcenter Enterprise The listener allows the communication between the Teamcenter Enterprise client and CATIA session They communicate through RPC and ToolTalk protocol CMI Customizing Guide CHAPTER 3 Assembly Structure Predefined Object Structure The CATIA Metaphase Interface contains the following pre defined object
108. scanned for each custom parameter the variable AttrVals found is extended and given back to the CMI server The CMI server can now actualize the drawing frame with the most recent database information Please consult the files custom g3Custom mth GMI related methods and custom x3Custom mth CMI related methods for more information CMI Customizing Guide r y customizing methods From LINX to CATIA Rebuild data structure from LINX in CMI WB with calling OMF client and send it automatically to CATIA Override xOWkBnch x3FindCatModelByCusKey xOWkBnch x3FindCatPartByCusKey xOWkBnch x3FindCatRelByCusKey in x3Custom mth Find with custom attributes the OBID from Model gt xOWkBnch x3FindCatModelByCusKey in x3Custom mth Find with custom attributes the OBID from Part gt x0WkBnch x3FindCatPartByCusKey in x3Custom mth Find with custom attributes the OBID from Relation gt xOWkBnch x3FindCatRelByCusKey in x3Custom mth SS Standard Properties in CATIA V5 In CATIA V5 standard properties Revision Definition Nomenclature and Description can be set from CMI The property values could be changed by the user and all changed properties are sent back to Teamcenter Enterprise during update Standard properties may be set stored for the Part xOCatPrd or xOCtFile Class Customization Sending standard attributes to CATIA V5 Overwrite x3GetCATIARevision x3GetCATIANomenclature x3GetCATIADefinit
109. scribes customizing and advanced configuration information for the CATIA Teamcenter Interface CMI with its two Teamcenter Enterprise servers generic Workbench and CATIA Workbench Before using this guide be sure you understand the UNIX based operating system the administration of the CATIA system the administration of the Teamcenter Enterprise system Dcc Umm at Related Documents The following manuals contain information about installation usage and customizing of CATIA Teamcenter Interface Manual Title Version CATIA Teamcenter Interface Installation amp Administration Guide 10 8 CATIA Teamcenter Interface User Manual 10 8 CATIA Teamcenter Interface Customizing Guide 10 8 Lu Your Comments are Welcome Please feel free to tell us your opinion we are always interested in improving our publications Mail your comments to T Systems International GmbH GDC Product Lifecycle Management Fasanenweg 5 70771 Leinfelden Echterdingen Germany mail cmi support 2t systems com CMI Customizing Guide V Table of Contents CHAPTER 1 1 od j js M 1 CHAPTER 2 REPE 3 SYSTEM ARGHITEGTURE 5 1 e ice iore aee aca stk 3 CHAPTER E 5 ASSEMBLY STRUCTURE 1 2 ii go Ere caia a 5 PREDEFINED OBJECT STR
110. sed CMI tries much more updates CMI_DISABLE_COMPARECMD Set to ON to disable the compare version functionality CMI HIDE COMPARECMD Set to ON to hide corresponding CMI command in toolbar and menu without deactivating the command It is possible to use the hidden commands via macro Hide Commands You can remove most buttons in the CMI Toolbar with an environment variable see above However if you intend to use a CMI Command in a VB Script you should not remove the command Most commands can also be merely hidden with a setting of the form CMI_HIDE_ CMD CMI commands are not generally intended for script use and you do so at your own judgement CMI Customizing Guide 93 Display CATIA Node Name in Synchronize The width and visibility of columns in the Synchronize dialog can be configured by editing the file intel a resources msgcatalog CMIUpdateCreateDialog CATRsc CMI Synchronize Teamcenter xl CATPart BOM Y CYD2 T CYD 2 CATPart BOM Create Y CYD3 CYD CYD3 CATPart BOM Create Y Hydraulic cylinder Hydraulic cylinder D 1 Hydraulic cylinder D 1 CATProduct Create Link Y CYD4 CYD CYD4 CATPart BOM Create Y CYD5 CYD CYDS CATPart BOM Create Y CYD6 CYD CYD6 CATPart BOM Create Y Hydraulic cylinder Hydraulic cylinder D 2 Hydraulic cylinder D 2 CATProduct Create Link Y CATPart BOM Create Y CYA1 CYA CYA1 CATPart
111. shall apply to Based on its part number lt PartNumberPrefix gt Spec lt PartNumberPrefix gt The behavior applies to components whose part number begins with Spec An empty PartNumberPrefix makes the behavior apply to any component Based on its product type lt ProductType gt ElecWireGroup lt ProductType gt The behavior applies to components of the type ElecWireGroup To help with configuration the Product type is shown in the CMI Info dialog Based on its instance name XInstanceNamePrefix XY lt InstanceNamePrefix gt The behavior applies to components where the instance name begins with XY When these tags are combined a component must match the requirement of either tag The following combinations of values are valid No BehaviorType Behavior 1 EmbeddedNodeBehavior SkipNode 2 EmbeddedNodeBehavior DeepSkipNode 3 EmbeddedNodeBehavior IgnoreNode 4 EmbeddedNodeBehavior ReferenceGeometry 5 ProductNodeBehavior IgnoreNode Descriptions ofthe behaviors 1 SkipNode CMI Customizing Guide The component is skipped and its children instantiated as a direct child of the CATProduct Assembly that contains the component 2 DeepSkipNode The component and all subsequent components beneath it are skipped up to the next regular CATProduct CATPart 3 IgnoreNode The Component and its substructure is ignored in Teamcenter 4 ReferenceGeometry The
112. t string input NULL string input ObjectPtr input ObjectPtr output SetOfObjects output SetOfObjects output integer classname expandInfo this 27 WorkBnchObj modelSet posSet mfail g3GetAllModelsOfDocCus delivers all models and trafo relations if existent of a given folder object Depending on the expandlnfo you can call your own method define input string input NULL string input SetOfObjects output SetOfObjects output SetOfObjects output integer trusted external class message g3GetPartsInAssSetCus classname expandInfo assObjSet partsInAss partRels mfail g3GetPartsInAssSetCus delivers all child parts and AssmStrc relations for a given part object Depending on the expandlnfo you can call your own method This method is called for the setbased expand standard CMI behaviour g3SetBasedAllowed TRUE define trusted external g3GetPartsInAssemblyCu input string input NULL string input ObjectPtr output SetOfObjects output SetOfObjects output integer nondisplaying nonprompting class message classname expandInfo assObj partsInAss partRels mfail g3GetPartsInAssemblyCu delivers all child parts and AssmStrc relations for a given part object Depending on the expandlnfo you can call your own method This method is called for the non setbased expand g3SetBasedAllowed FALSE Customization example You have a new menu item MyMultiLevelExpand and you want
113. t DOCTYPE CMIConfigTopics SYSTEM CMICatiaV5Config dtd gt lt CMIConfigTopics gt lt ConfigurableBehaviors gt lt ConfigurableBehavior UniquelD EmbeddedNode REF Node lt BehaviorType gt EmbeddedNodeBehavior lt BehaviorType gt lt PartNumberPrefix gt REF lt PartNumberPrefix gt lt Behavior gt ReferenceGeometry lt Behavior gt lt ConfigurableBehavior gt lt ConfigurableBehaviors gt lt CMIConfigTopics gt CMI Customizing Guide 57 CcATIA V5 CMI MyReferenceTop2 stert Edit View Insert Tools CMI Analyze Window amp 4 3 05 1538 5 N MyReferenceTop2 5 REF XXX REF XXX 1 N MyReferencedAssembly MyReferencedAssembly 1 A MyReferencedAssemblySub MyReferencedAssemblySub 1 UM MyReferencedComponent 1 MyReferencedComponent CATPart A MyReferencedAssemblySub2 MyReferencedAssemblySub2 1 MyNormalStructure MyNormalStructure 1 Applications 9 ARESA A Figure 23 Reference Geometry Parts inserted below a component prefixed with REF will create a special Has Reference Geometries Relationship in Teamcenter during Synchronize instead of the standard product structure relation g2AsmPos The new product structure relation is called g2PEStrc and is derived from PelmSirc Hence it is not an AssmSirc relation PelmStrc PdStcVms CmpsStre PartStrc g2PEStrc AssmStrc PrtStEff g2AsmRel g2AsmNig AsmPos x2AsmPoQ Figure 24 Cl
114. t be filtered Save Clear Cancel Help El Figure 15 Model Filter Preferences dialog Configuration The directory and the viewer format 3dxml pdmxml etc are configurable in CMI Viewer Preferences New Viewer Configuration in CMI Workbench window Options gt Change Preferences Menu option Database Model Filter Configuration Context CAIB he rences DMU Preferences Viewer Breferences Figure 16 Change Viewer Preference The Viewer Map directory defines the local Directory which is used for the storage of the viewer file and the related viewing files B viewer Preferences E jo x Viewer Map C user sde5225 cmi viewermap Viewer Format ENS XML 3D XML Figure 17 Viewer Preferences dialog In PDM CONFIG file there are the following configuration vars CMI Customizing Guide If a start script is used to launch the viewer on Windows the variable 3DXML STARTUP SYNC WIN must set to ON This forces the synchronous start of the viewer batch command in Synchronous mode because in the asynchronous mode the execution of BAT files fail on Windows For 3DXML with IE and plug in set 3DXML STARTUP lt path gt StartlE bat set CMI 3DXML STARTUP SYNC WIN ON or for the direct call of the executable set CMI 3DXML STARTUP lt path gt code bin 3DXMLPlayer exe For PLMXML set CMI PLMXML STARTUP lt path gt JT2 GoLauncher exe
115. te for the TMPAXIS model the CATEDM TMPAXISNAME the CATIA V4 model without model INITIAL M extension ODEL of CATIA V4 is used position from which a CATIA V4 CATEDM NAMETYP modelnametype model name is displayed in CATIA V4 status field usefull for names longer than 32 types CATEDM LOGF Logfile 5 of the file were the log should name of the installed helper CATEDM HELPERTOOL Helper application xpdf netscape acroread CATEDM_HELPFILE Alias name of the online help file CATEDM_CATIAVER Catiaversion to set the current CATIA V4 version defines the name of the current CATEDM PROJECT Project CATIA V4 project O assembly 1 default workplane CATEDM_WPMODUS wpmodus default workplane modus 2 geometry 3 multiselect ion CATEDM GEOPOS geoposallowed geometry position support 2 CATEDM APPDEF name of the CATEDM configuration file default is appdefault obj CATEDM RCFILE path and name of the user specific configuration file default is HHOME dshcatiarc obj CATEDM CONNECTXFILE connectx script alternative way to connect to the workbench not used yet CATEDM_NORMPART normpart support support for norm part integration NIS O off 1 on CATEDM_REFRESH autorefresh refresh the current CATIA V4 session after a CATEDM READ action O off 1 on CMI Customizing Guide 77 78 CATEDM RM MODELS remove models remove models from exch
116. tion External Description from mapping file partNumber CATIA Part Number to set fileName CATIA File Name to set nomenclature CATIA Nomenclature to set revision CATIA Revision to set definition CATIA Definition to set description CATIA Description to set pStats Messages displayed in CATIA CMI Customizing Guide As an input you receive the identifiers in Teamcenter tc the current values of attributes in CATIA cat and the original attributes from the mapping file ext The ext attributes are NULL if no mapping file exists is used for the exported structure It is possible to return NULL for partNumber fileName nomenclature revision definition description For each instance the following method is called where you can return a new instance name class message xOWkBnch x3GetExportInstName input string classname input string expNamingSchema input string relObid input string matrixIndex input string catInstanceName input NULL string extInstanceName output string instanceName output SetOfStrings pStats output integer mfail with classname x0Wkbnch expNamingSchema Identifier for schema to be used relObid Relation Id matrixIndex Index for Multy Quantity catInstanceName Instance Name in CATIA extInstanceName External Instance Name from mapping file instanceName CATIA Instance Name to set pStats Messages displayed in CATIA The new names in the exported structure are built
117. ttaches the CATParts This is because the CATProduct should not be exposed to direct user actions Using the TC configuration set CMI SINGLE PART DOCUMENT ON see above You can get rid of this special document Just set the class constants pertaining to the Product Document to point to your regular Document class cProd060206 2 1 Is Described psm desBy CProd060206_2 att CPart060206 3 CATPart 5 CPart060206_4 CATPart a CProd060206 2 CATProduct Figure 10 CATPart and CATProduct in same Document The following example shows how to set the Product Document to the same document class used to attach CATParts DesDoc Example XOWkBnch x4CreatePrdDocC DesDoc xOWkBnch x4PartToPrdDocc PartDoc xOWkBnch g4PrdDocClassC GenDoc XOWkBnch x4CmpDocClassC DesDoc O xOWkBnch x4CmpPartDocRelClassC O xOWkBnch x4CmpDocPartRelShipC DocumentsDescribingPart O gO0GenWB g4PrdDocClassC GenDoc O gO0GenWB g4PartPrdDocRelC PartDoc O gO0GenWB g4PartPrdDocRSC DocumentsDescribingPart make sure that the same Document class is used by the Prepare function O g0GenBin StartClassToPrepareC DesDoc O gO0GenBin DefaultClassToPrepareC DesDoc in config cfg set CMI SINGLE PART DOCUMENT ON Exclude objects or classes from the CMI Workbench CMI calls the message gOPdmItm g3CheckIfItemInScope to check whether it must handle a document or
118. ults are written into the info object SOLW EIGHT value SOLCOG x value y value z value VOLWEIGHT value VOLCOG x value y value z value SurfaceMass REAL CATIA V4 uses the units of the specific model 1 Sets the model standards 2 Calculates the weight and the Center of Gravity COG of the Surface SUR the Face FAC the Skin SKI and the SPACE polyhedral surface POL The results are written into the info object SURW EIGHT value SURCOG x value y value z value FACWEIGHT value FACCOG x value y value z value SKIWEIGHT value SKICOG x value y value z value POLWEIGHT value POLCOG x value y value z value cmi custom update Type INTEGER if VAL gt 0 then call the functions of the libcmi custom update a sl so If the configuration flag cmi custom update is set to 1 or 2 this attribute will have no effect CMI DRAWING Type INTEGER possible values 1 gt the drawingframe of this model will be updated O gt the drawingframe of this model will be unchanged 1 or no attribute gt the behavior belongs to the environment 80 CMI Customizing Guide SSS User dependent API in CATIA There are different ways to call the CATEDM custom functionality gt Edit the file metaphse 4 x x data appdefault obj cmi custom update 1 Calls the functions void cmi custom update int ERROR
119. uration variable set CMI CONFINE INERTIA TO MAINBODIES ON CMI Customizing Guide 49 The properties can be used in Teamcenter by overriding the customizing method gOGenBin x3SetCusAttrModInf forthe CATProduct and or the CATPart The customizing method is called in the course of Update Create and similar actions CMI itself does not use this information but you can store it in custom attributes message gOGenBin x3SetCusAttrModInf update ObjectPtr this 2 input NvSet ModelInfos output integer mfail code The following named values are provided to the API in the NvSet Modellnfos mass RTIA MASS H zZ DA ition of the center of gravity ERTIA POSITION 0 ERTIA POSITION 1 ERTIA POSITION 2 HH H O gt He tia matrix ERTIA MATRIX 0 ERTIA MATRIX 1 ERTIA MATRIX 2 ERTIA MATRIX 3 ERTIA MATRIX 4 ERTIA MATRIX 5 ERTIA MATRIX 6 ERTIA MATRIX 7 ERTIA MATRIX 8 zi HHHHHHHHH 2 E Ed bl Dd E Ed Dd d ponents of principal axes ERTIA COMPONENTS 0 ERTIA COMPONENTS 1 ERTIA COMPONENTS 2 HHHO Z pi pi 3 pj pi pd RTIA COMPONI RTIA COMPONI RTIA COMPONI RTIA COMPONI RTIA COMPONI RTIA COMPONI NTS 3 NTS 4 NTS 5 NTS 6 NTS 7 NTS 8 pi pd pd pd E Ed Dd EH ipal moments values VALUES 0 1 0341075818066402e 004 VALUES 1 1 0341075818066402e 004 RTIA VALUES 2 1 9634954084936208 004 uA z E Bi EO
120. using the following rule e Any CATIA attribute Part Number File Name Nomenclature Revision Definition Description from x3GetExportRefNames or Instance Name from x3GetExportInstName that is returned not NULL is used in the exported structure e f CATIA attributes are not returned in x3GetExportRefNames or x3GetExportInstName the values from the mapping file are used Standard properties are only set if configured with EXPORT STDATTRIBUTES and available in the mapping file e other the attributes currently available in CATIA are kept AAA Handling of Mapping Files Set ENABLE CREATE IMPORT FILEZON to enable the use of a name mapping file in Synchronize Reconnect and the Export function To set the CATIA standard attributes Nomenclature Revision Description or Definition back to the original value of the initial import set the value of STDATTRIBUTES to the attributes you want to set back Only used with the CMI Export Cmd Example EXPORT STDATTRIBUTES Nomenclature Definition Revision Description The following class constants have been introduced for the CMI Mapping File 62 CMI Customizing Guide g0GenWb g4MapDocClassC Class for the Document attaching Mapping File GenDoc gOGenWb g4MapPrtDocRelClassC Class of relation between part and Document for mapping files xOWkBnch g4MapFileClassC Class for mapping files gO0GenWb g4MapDocFileRel
121. xOCatRep is the generic data class for the configurable shape representations CMI Customizing Guide 97 gORepitm Class Hierarchy Figure 36 shows the class a under the CMI class gORepltm B IN gODocRep gObenItm gOModRep ise xODocRep JA xOModRep AN N xOCTCmIt xOCTPcIt xOCTRtIt a xObeoRep CSS x0ArcRep xOCV4Rep xOCgrRep x0PrtRep xORepRep Figure 37 Class hierarchy under gORepltm gORepltm has the parent class gOPdmltm and is the container for all CATIA representation classes which are visible in the CATIA Workbench gODocRep xODocRep represents a document gOGenltm is the container class for the Part representations xXOCTItem is the main Representation class for the Assembly class xOCTCmit is the representation class for the Cmponent class xOCTPclt is the representation class for a CATProcess root item 9g0ModRep x0ModRep is the main container for the Model representations x0DrwRep represents the CATIA V5 Drawing data item class CATDrawing x0GeoRep is the container for the geometrical representations x0ArcRep represents the CMlIArchive data item class CMlArchive represents the CATIA V4 model data item class model xOCgrRep represents the CATIA V5 data item class x0PrtRep represents the CATIA V5 Part data item class CATPart XORepRep represents the data item class xOPrtRep CMI Customizing Guide
122. zation using CATIA V5 Properties during Part creation or model registration The customizing messages x3CreatePartExt and x3CreateFileForUpdtExt provide property attributes from Catia V5 in order to have this information availble before a Part Document or Model is created in Teamcenter class message xOWkBnch x3CreatePartExt input string strClassname input string newPartClass output ObjectPtr partObject input NvSet pAttributeSet input NULL string strPartCategory input boolean bUseDialog update SetOfStrings vStats output integer mfail code message gO0GenMod x3CreateFileForUpdtExt update ObjectPtr thisObj input string file input string partnumber input NULL NvSet Modelinfos input NULL NvSet PartAttributes input NULL SetOfStrings matrix update NULL ObjectPtr existingPart output ObjectPtr createdPart output ObjectPtr document output ObjectPtr relObject update NULL SetOfStrings vStats output integer mfail code CMI Customizing Guide The NvSet arguments pAttributeSet and Part Attributes respectively contain the following CATIA Standard Properties CATIADefinition CATIANomenclature CATIARevision CATIADescription Nomenclature PartNumber Use nvsGet to retrieve the values of these properties The default implementation of these methods can be found in the file x3Custom mth You can retrieve User Defined Properties that were present in CatiaV5 v

Download Pdf Manuals

image

Related Search

Related Contents

Avaya T1/FT1 User's Manual  Manual de usuario de TruVision DVR 60  MANUAL DO UTILIZADOR esTUfAs A peLLeTs  1 2 2 3 4 5 6 7 7 8 9 10 Página 1 de 3  mit mega system oriented it architecture    Champion Cooler 5000 SD Use and Care Manual  Samsung LE23R51B Наръчник за потребителя  

Copyright © All rights reserved.
Failed to retrieve file