几何尺寸与公差论坛

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

【转帖】reorder sketch in the api

[复制链接]
发表于 2009-4-13 13:55:29 | 显示全部楼层 |阅读模式
reorder sketch in the api
i have some models that are sheetmetal we are beginning to look at automating with a vb program.
we are modifying existing models and i'm creating a layout sketch at the top of the tree to drive all the feature dimensions. problem is the base flange's absorbed sketch is really the first feature in the tree if viewed from the parent/child relationships.
i need the new layout sketches to be first but there doesn't seem to be a way to reorder the sketch position (base flange sketch) in the tree if the sketch is absorbed in a base flange feature.
is this possible through the api?
jason capriotti
jason.capriotti@thyssenkrupp.com
solidworks 2009 sp3.0
winxp 32 & 64bit
ok, i managed to hack a recorded macro to reorder sketches. i've attached it for anyone needing to do this. it's rough and has no error handling. basically it prompts you to type in the sketch name you want reorder, then type in the feature to reorder after.
anyone, it works for those absorbed sketches that can't be reordered by dragging.
jason capriotti
jason.capriotti@thyssenkrupp.com
solidworks 2009 sp3.0
winxp 32 & 64bit
quick
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-23 04:48 , Processed in 0.037219 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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