查看单个帖子
旧 2009-04-13, 01:55 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】reorder sketch in the api

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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)