|
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 |
|