Hi
I'm trying to get and set a bunch of parts display modes using the API (SW08) but I've had no luck seeing what the correct method is for accessing the display mode (wireframe/shaded etc) of a part within an assembly. Anyone point me in the right direction?
thanks
Rich
thanks man!
I noticed that the macro doesn't work if you have selected a part in a sub assy rather than the current level assy. The API is a bit confusing here on how to select parts in a sub. Any ideas?
Rich
Hi Solidair
It works like a charm, thanks! I just need to change it now so it iterates over a whole selection of parts rather than just one :)
Do you know how to fully resolve a part so that its tree is available? (not there in lightweight)
Thanks for your help, much apreciated
Rich
SolidAir
thanks for the reply. I just tried it but am getting 'object variable not set' error. I assume its because the sketch manager is not pointing to the parent of the selected sketch?
I just tried :
Set swModel = swFeat.GetOwnerFeature
Set swSketchMgr = swModel.SketchManager
but no...
Hi
I am trying to write a (what I thought was easy) macro to help me save some much needed time ;-) Basically I am editing a part in an assembly and have an active sketch open. I want to select a component or face in the assembly and run the macro. The macro will determine which part is...