Reply

Subtract two parts in ST6

Greetings,

I have a problem accessing the subtract function in Solid Edge ST6 via the API. My goal is to add a part into an assembly and subtract it from all the parts in that assembly. I'm guessing (hoping) parts not intersecting wouldn't throw too tragic of an exception and I can ignore it. So while I can add a part and not lose track of it through a few recursive functions, I have found no trace of the subtract function in the API. If I'm not mistaken this function is new in ST6, which is why my usual sources for this kind of questions are of no help, so I am turning to the internet. Any help on this will be greatly appreciated, even a nudge in the right direction Smiley Happy

Best,
Matic

2 REPLIES

Re: Subtract two parts in ST6

Hi Matic,

the new subtract command in Assembly is not really a new feature, but a combination of two existing feature. So this could be done in older version too.

If you look at the feature tree in the target part you will find an interpart copy of the tool part and a boolean feature (subtract).

It is very handy shortcut for the user, saving a lot of clicking.

 

If you like to do the same with API you have to insert the interpart copy in the target part(s) and then add a boolean subtract.

 

regards

regards

JB
VS2015, SE ST10

Re: Subtract two parts in ST6

Thank you JB this helped a lot. I'm having some different problems with my code currently, so I can't confirm how this works yet, but as soon as I work it out, I'll be posting the solution.

 

Best,

Matic