几何尺寸与公差论坛

 找回密码
 注册
查看: 619|回复: 0

【转帖】no undo entry when adding sketch relation

[复制链接]
发表于 2009-4-13 13:08:48 | 显示全部楼层 |阅读模式
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-23 09:25 , Processed in 0.035699 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表