Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by sygenics

  1. sygenics

    API: REQ: Part display mode method?

    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
  2. sygenics

    API: offset sketch entites to current sketch from assy component

    thanks again, it makes sense. I'll give it a go...... Rich
  3. sygenics

    API: offset sketch entites to current sketch from assy component

    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
  4. sygenics

    API: offset sketch entites to current sketch from assy component

    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
  5. sygenics

    API: offset sketch entites to current sketch from assy component

    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...
  6. sygenics

    API: offset sketch entites to current sketch from assy component

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

Part and Inventory Search