CAA :如何解决CATI3DGeoisu->BuildRep()后实体模型Dispatch 失效问题
2008-12-30 01:54:35 AM
CAA :如何解决CATI3DGeoisu->BuildRep()后实体模型Dispatch 失效问题
当我做一个product 后,加上一个part,做一个立方体模型。1。用CATI3DGeoisu接口做buildRep 来得到他的Rep 图像。2。然后修改option精度,在对整个的product进行redraw操作 CATISpecObject->SetUpToDate(FALSE); CATIRedrawEent->Redraw(); CATIModelEents ->Dispatch(CATModify); ,但是CATIA的isualize 没有变化。而,如果我仅仅执行第二步操作,则可以实现redraw()操作。:)我的问题是怎么样能够让iz和model 在buildRep 后仍然能够link到一起?谢谢大家!
参考以下interfaceCATIisuChildrenCATI3DGeoisu试试看能不能用如果你CATISpecObject->SetUpToDate,那么试试看 CATISpecObject->Update()后再redraw()了话如何有时候你不单要dispatch它本身,还得dispatch它爸,^_^
呵呵,谢谢acoka,问题是我直接deispatch root object,也是不行。我发现每当我把一个part 或一个product 用CATIisuChildren来buildRep 后,我直接修改options 上的精度,实体模型不跟着发生变化了。这是我头痛的问题。
做annotation的时候碰到过类似问题,iew的更新有问题关做TPSSet,或关做iew都不起作用,结果得把所有的tps元素都redraw一下
acoka 兄,你知道CATI3DGeoisu 中GieRep和BuildRep 有什么区别吗?
我写过一个feature,imp了这个interface只写了BuildRep, 不用写GieRepGieRep应该会把你BuildRep的返回值从member里找出来
我写过一个feature,imp了这个interface只写了BuildRep, 不用写GieRepGieRep应该会把你BuildRep的返回值从member里找出来你用了CATExtIisu这个adapter了吧
谢谢我没有用过CATExtIisu 接口,我发现用GieRep后options 可以操作。只是不知道GieRep 是不是像BuildRep那样得到CATIA 当前显示的图像。
[quote]原帖由 HNBoTree 于 2006-1-19 17:07 发表谢谢我没有用过CATExtIisu 接口, <---- 你管它叫接口,要不是你帮助没看,要不是你还不是太了解Ext的用法估计是这里 +---CATI3DGeoisu Usage: you can reimplement this interface by deriing the supplied CATExtIisu adapter class.这里写得很明白,要不你得自己写所有的method BuildRep public irtual CATRep * BuildRep( )= 0 Builds the graphical representation of the object. Role : It is the general method that applications hae to implement to built their geometry from modeling information. The _rep data member must be aluated. o GieRep public irtual CATRep * GieRep( ) Returns the graphical representation of the object. 默认的GieRep应该是返回_rep, 而这个 _rep由BuildRep 定(应该是吧)
非常感谢acoka 兄。经过我这两天的测试,我发现GieRep 正是我所要的API,既可以得到CATIA 当前的Rep,又对CATIA的isual 无影响。
0 条评论:
发表评论
订阅 帖子评论 [Atom]
<< 主页