几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   SolidWorks二次开发 (http://www.dimcax.com/hust/forumdisplay.php?f=111)
-   -   【转帖】no undo entry when adding sketch relation (http://www.dimcax.com/hust/showthread.php?t=5575)

yang686526 2009-04-13 01:08 PM

【转帖】no undo entry when adding sketch relation
 
no undo entry when adding sketch relation
i use a centralized macro to add the most common sketch relations. the problem comes when trying to undo any action taken by the macro. any constraints added by the macro (via multiple executions) are lumped together and undone as a group up to and including the last non-macro action. here's an example.
actions taken
sketch - point
sketch - point
sketch - point
macro - vertical relation
macro - horizontal relation
corresponding undo history
sketch - point
sketch - point
sketch - point
the two macro actions are attached to the last non-macro feature. so when i click undo two relations and a point are deleted. i tried using the swdocext.startrecordingundoobject and swdocext.finishrecordingundoobject functions, but no additional undo objects are added to the list. does anyone have any ideas for what i could do to give each sketch relation its own undo listing?
mahir abrahim, cswp/core. cswp/smtl
mechanical design engineer
sw 2009 sp2.1
proe wf3/4
edited: 03/31/2008 at 07:58 pm by mahir abrahim
any ideas, api gurus?
mahir abrahim, cswp/core. cswp/smtl
mechanical design engineer
sw 2009 sp2.1
proe wf3/4
it's been a while since i asked this. maybe someone's tripped over a solution?
mahir abrahim, cswp/core. cswp/smtl
mechanical design engineer
sw 2009 sp2.1
proe wf3/4
quick


所有的时间均为北京时间。 现在的时间是 10:59 PM.