
teamcenter
牧习
这个作者很懒,什么都没留下…
展开
-
TC的handler类调用swt窗口
public class SampleHandler extends AbstractHandler { public Object execute(ExecutionEvent event) throws ExecutionException { //方法一:新建一个application window的display类,在该类实现对话框功能,直接调用open()原创 2016-07-06 13:56:36 · 677 阅读 · 0 评论 -
swt中创建类的区别
创建Sheet和Display(window application)会自动生成main函数,而Composite和Dialog的构建必须依赖一个父容器(最终的一个容器一定是Shell面板),所以不会存在main函数。原创 2016-07-06 15:15:46 · 327 阅读 · 0 评论 -
Eclipse开发TC插件打包到TC_ROOT\portal\plugins
MANIFEST.MF->Build->Binary Build(除src全部勾选)、Source Build(除src全部勾选)-> export->Deployable plug-ins and fragments->Destination(TC_ROOT\portal)->Options (Qualifier replacement设为0,插件更新会覆盖)->Finish->TC_ROOT原创 2016-07-14 10:48:49 · 632 阅读 · 0 评论 -
组件关系和分类依据
父组件和指定子组件间的关系可以是多种对应关系。 TCComponentItem下有TCComponentItemRevision; 把TCComponentRevision发送到结构管理器,对象为BOM和BOMLINE原创 2016-06-29 11:28:23 · 599 阅读 · 0 评论 -
tc添加视图Custom View
打开tc选择window->show views->others->others->Custom View extension point=”org.eclipse.ui.views”> view> name=”Custom View” class=”com.origin.myview.Views.CustomView”原创 2016-07-01 16:23:02 · 414 阅读 · 0 评论 -
MANIFEST.MF错误
//添加到pse结构管理器 //添加到my teamcenter原创 2016-07-01 12:04:04 · 1931 阅读 · 0 评论 -
启动TC的TAO窗口
通过eclipse启动客户端时,必须通过该脚本先启动TAO控制台 set TC_ROOT=D:\UGS\Siemens\tc10 set TPR=%TC_ROOT%\portal set FMS_HOME=TC_ROOT\fcc set PATH=%FMS_HOME%\bin;%FMS_HOME%\lib;%TPR%;%PATH% set JAVA_HOME=%TPR%\jre set原创 2016-07-01 10:24:11 · 1358 阅读 · 0 评论 -
TC文件上传
database.setFiles(new String[]{“C:\temp\a.excel”},new Sting[]{“excel”}); excel是数据集和上传文件的对应关系 最后要把下载到本地的缓存文件(File targetFile = tcFile.getFile(path,name);)targetFile删除targetFile.delete();原创 2016-06-29 15:51:10 · 478 阅读 · 0 评论