导航

上一页 1 ··· 6 7 8 9 10 11 12 下一页

2006年6月10日

摘要: 背景:在一般的客户化情景中,都会为系统类添加一些自定义的属性,并且将这些属性添加到对应类的创建、查看、更新对话框窗体中去,这时候如果不改变这个对话框的布局的话,整个窗体会显得比较难看,此时就应该使用DWE工具编辑这些更改过了的对话框窗体。 情景:定义一个PartColor属性,store as name value table, attach to Part, attach to DPrtCre,... 阅读全文

posted @ 2006-06-10 16:37 hcfalan 阅读(257) 评论(0) 推荐(0) 编辑

摘要: 1、edit gendoc.met to contains: attach message DoCreatePre to GenDoc in server bbksvr; 2、edit gendoc.mth to contains: message GenDoc:DoCreatePre ( update: ObjectPtr thisObj:: ... 阅读全文

posted @ 2006-06-10 16:36 hcfalan 阅读(258) 评论(0) 推荐(0) 编辑

摘要: 例如,客户化类a2BusNew重新定义了IncrementRevision方法,并且Insert under BusItem,那么所有BusItem的子类执行IncrementRevision的时候都会使用a2BusNew对IncrementRevision的定义,现在想对GenDoc执行IncrementRevision的时候不使用新的定义,而使用BusItem的原始定义,那么可以: 1、创建g... 阅读全文

posted @ 2006-06-10 16:35 hcfalan 阅读(353) 评论(1) 推荐(0) 编辑

摘要: 1. build stand-alone custome server. edit the file "dir/svr/defbbk.met", comment out the "resolve server bbksvr dynamically" line.2. turn on the method tracing at bbksvr. edit the file "dir/cus.cf... 阅读全文

posted @ 2006-06-10 16:34 hcfalan 阅读(206) 评论(0) 推荐(0) 编辑

摘要: 1. edit/create the file: dir/svr/bbkins.met, add the fellowing line: insert a2BusNew under BusItem;2. edit the file: dir/svr/mti.prd, add the fellowing as first line: include "bbkins.met"3. attach... 阅读全文

posted @ 2006-06-10 16:33 hcfalan 阅读(223) 评论(0) 推荐(0) 编辑

摘要: 1. 创建一个属性ObjectHandle define attribute ObjectHandle store as string(256); 2. 将属性添加到PdmItem上去 attach dynamic attribute ObjectHandle to PdmItem; 3. 添加一个文本项 //.TXT 10notifsample001 //.Ass... 阅读全文

posted @ 2006-06-10 16:21 hcfalan 阅读(413) 评论(0) 推荐(0) 编辑

摘要: 比如说,创建一个AssmStrc(Bom关系)的Relation,设置一些属性,然后添加到数据库去: ObjectPtr assmObj = NULL; ObjectPtr assmMstrObj = NULL; ObjectPtr asmstrcRel = NULL; string dbName = NULL; //... dstat = ConstructRelation(AssmStrc... 阅读全文

posted @ 2006-06-10 15:34 hcfalan 阅读(461) 评论(0) 推荐(0) 编辑

摘要: 1、定义一个外部、 类消息,like CommandLineMsg define external class message clShutMsg like CommandLineMsg; 2、将新消息attach到指定类上面去: attach class message clShutMsg to PdmSessn in server bbksvr; 3、写消息方法体,这里只是... 阅读全文

posted @ 2006-06-10 15:33 hcfalan 阅读(220) 评论(0) 推荐(0) 编辑

摘要: 创建命令行客户端的基本程序大纲 main(int argc, char* argv[]){/*LINE 001*/ MODNAME("main:appname");/*LINE 002*/ 定义程序变量;/*LINE 003*/ dstat = clInitMB2(argc, &argv, NULL); //必须在这里调用/*LINE 004*/ if (不是GUI模式)/*LINE 005*... 阅读全文

posted @ 2006-06-10 15:32 hcfalan 阅读(415) 评论(0) 推荐(0) 编辑

摘要: 例如:关系AsRevRev是GenAssm与Part之间的BOM引用关系,它有一个List属性为“ReferenceDesignators”,那么在得到AsRevRev对象之后如何获取ReferenceDesignators属性的值呢? 使用objListGetList: ObjectPtr relItem = NULL; SetPtr rdList = NULL; int ... 阅读全文

posted @ 2006-06-10 15:32 hcfalan 阅读(1220) 评论(0) 推荐(0) 编辑

上一页 1 ··· 6 7 8 9 10 11 12 下一页