Hi everyone,
I'm looking to create a macro in SW2013 that will select all entities in a sketch, convert to a specific structural member, then combine all. Is this do-able?
Thank you,
Hi everyone,
I'm looking to create a macro in SW2013 that will select all entities in a sketch, convert to a specific structural member, then combine all. Is this do-able?
Thank you,
If you take a look at the first image, I have a sketch named "Sketch1".
I want to create a macro that with a single click, can perform all the tasks involved with the result shown in the second image.
Manually select sketch, run macro
-> structural member (pre-defined weldment profile)
-> combine all bodies (notice the cut-list has a qty of 1)
I hope this makes it clearer?
Best regards,
If you select the sketch in the feature tree when it prompts you to select line segments it will select all the connected line segments for you. You example shows a round object with no miters. Turn on merge arc segments and it'll combine it for you. If your desires don't match that example, turn on BODIES filter in that filter menu down at the bottom of your screen and highlight all the bodies and right click and select combine.
It's convenient and fast enough using those methods. Why do you need a macro to do it?
If I click the Groups box and hit CTRL+A, it also chooses the entire chain.
I have several hundred pipes (more to come) that need to be converted, a macro will help me out big time by saving a few steps and replacing with a single click.
this one replaces the current structural member with a new
2016 SOLIDWORKS API Help - Set Profile for Structural Member Example (VBA)
Sounds more along the lines of what you want.
2019 SOLIDWORKS API Help - MergeArcSegmentBodies Property (IStructuralMemberGroup)
I'm afraid you will have to go into more detail. Don't really understand the question. Or the outcome goal.