TeamCenter开发培训(TC2007)

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

2007. Siemens Product Lifecycle Management Software Inc. All rights reserved
Page 8
Siemens PLM Software
基础知识-环境变量 基础知识 环境变量 环境变量定义在%TC_DATA% 内tc_profilevars.bat TC_ROOTC: \tceng2007 TC_DATAC: \tcdata TC_BINC: \tceng2005\bin TC_INCLUDEC: \tceng2007\include TC_LIBRARYC: \tceng2007\lib TC_LOCALIZATION_DIR en …… 客户化相关变量 set IMAN_USER_LIB=%IMAN_DATA%\local\lib set IMAN_KEEP_SYSTEM_LOG=ON
2007. Siemens Product Lifecycle Management Software Inc. All rights reserved
Page 12
Siemens PLM Software
ITK-知识点 知识点 ITK Function Format int FunctionName (type vari-name[dim] /* (I/O/OF) */ ); OF使用void MEM_free(void *pointer)释放内存 Include Files #include <tc/tc.h>必须 <tc/tc.h> tag_t data type 所有在PDM的对象有唯一的识别码,当对象加 载到内存中时,就是以dynamic tag 来识别,tag_t 是integer Error Message Handler (EMH) 当有错误发生时,大部分ITK functions 会传会一个整数值,此整数值一个错误信息对应.
2-T Rich Client√ 4-T Rich Client 4-T Thin Client
2007. Siemens Product Lifecycle Management Software Inc. All rights reserved
Page 6
Siemens PLM Software
2007. Siemens Product Lifecycle Management Software Inc. All rights reserved
Page 14

Siemens PLM Software
ITK- ITK Error Message Handler (EMH) 函数返回值不为ITK_ok,则有错误发生,必须进行处理 EMH_ask_error_text() 和 EMH_ask_errors()通常用来获得错误信息(参考 %IMAN_ROOT%\include\emh.h) 可以自定义错误信息编号,可用的自定义错误代号范围919000~919999.
基础知识 上午 属性表 第二天 菜单,报表 下午 讨论
2007. Siemens Product Lifecycle Management Software Inc. All rights reserved
Page 3
Siemens PLM Software
前提 所需知识 Teamcenter Engineering Application Administration Teamcenter Engineering Product Data Management Proficiency in C/C++ programming Java programming language experience 所需软件: Oracle 10g Teamcenter Engineering 2007 (two-tier rich client, sample files) Microsoft Visual Studio .NET 2005 J2SE SDK V1.5.0 Text Editor (Notepad, EditPlus, UltraEdit, etc.) Eclipse 3.2
Page 10
Siemens PLM Software
基础知识-关键概念 基础知识 关键概念
Primary Type Object 1 Object 2 DB Table POM Class Runtime Property Property 1 Property 2 Property 3 Sub Type 1 Object 3 Object 4 Runtime Property Message Runtime Method Method
2007. Siemens Product Lifecycle Management Software Inc. All rights reserved
Page 9
Siemens PLM Software
基础知识-关键概念 基础知识 关键概念
2007. Siemens Product Lifecycle Management Software Inc. All rights reserved
PDM开发培训教材 开发培训教材
张 永 UDS yzhang@
2007. Siemens Product Lifecycle Management Software Inc. All rights reserved
Siemens PLM Software
目 录
一,基础知识
Siemens PLM Software
Page 15
ITK-分类 分类 External ITK 可单独执行的程序,即batch program Internal ITK 必须于系统内使用,经过Portal 或Web 介面 User Exits 替换系统固有功能(仅能修改系统给定的) CR & EPM Handlers 工作流程中加入自己的处理 Methods Type Or Property前后处理 Property Canned Methods 业务建模器扩展 Business Modeler Extensions 新的方法实现Canned Methods User Service 供Protal调用
2007. Siemens Product Lifecycle Management Software Inc. All rights reserved
Page 7
Siemens PLM Software
基础知识-目录结构 基础知识 目录结构 %TC_DATA%\local bin\ shared executed ITK programs data\ shared data lang\ localization files for different languages lib\ shared library files tools\ shared encapsulation programs
2007. Siemens Product Lifecycle Management Software Inc. All rights reserved
Page 13
Siemens PLM Software
ITK-ITK Memory Management OF类型的变量一定要通过MEM_free()进行释放 void MEM_free(void *pointer) MEM_alloc() MEM_crealloc() MEM_free() MEM_realloc() 使用以上内存管理函数,也可以使用C内存管理函数 Include file: <mem.h>
Attribute Attribute Attribute 1 2 3
Property Runtime 1 Property Property 2 Property 3
Sub 2007. Type 2 Siemens Product Lifecycle Management Software Inc. All rights reserved
2007. Siemens Product Lifecycle Management Software Inc. All rights reserved
Page 4
Siemens PLM Software
Rich Client架构 架构 C/S结构:
Client: Java Server: C (ITK)
二,ITK
三,JAVA
2007. Siemens Product Lifecycle Management Software Inc. All rights reserved
Page 2
Siemens PLM Software
日程安排
基础知识 上午 External ITK 第一天 Internal ITK 下午 讨论
status = AOM_save( ); if (status != ITK_ok ) { EMH_ask_error_text(status, &message); printf("Error with AOM_save: %s\n", message); MEM_free(message); return status; }
2007. Siemens Product Lifecycle Management Software Inc. All rights reserved
Page 5
Siemens PLM Software
Rich Client架构 架构 Oracle TC_ROOT TC_DATA Volume FSC/FCC TCFS
status = AOM_save( fl_tag ); if (status != ITK_ok ) { EMH_ask_errors(&n_errors, &severities, &statuses, &messages); for (i = 0; i < n_errors; i++) { printf( " %6d: %s\n", statuses[i], messages[i] ); } return status; } 2007. Siemens Product Lifecycle Management Software Inc. All rights reserved
Page 11
Siemens PLM Software
基础知识-POM Class 基础知识 POM: Persistent Object Manager AOM : Application Object Module IMF : IMAN File VM : TcEng Volumes CR : Cascade Release EPM : Enterprise Process Module WSOM : Workspace Object AE : Application Encapsulation FORM : Forms FL : Folder Management MAIL : TcEng Mail PS : Product Structure SA :System Administration UOM : Unit of Measure
基础知识-目录结构 基础知识 目录结构 %TC_ROOT% bin\ Teamcenter Engineering executables data\ template data used for creating imandata include\ head files used for ITK programming Install\ installation utility lang\ localization files for different languages lib\ archive and shared libraries sample\ samples source code and scripts for customization web\ files for Teamcenter Engineering Web
相关文档
最新文档