Cancel
Showing results for 
Search instead for 
Did you mean: 

API for Offset Command

Pioneer
Pioneer

Hi everone,

I am looking API for offset command as shown in attached photo. Also searched in the SDK file but still not find it. Is there any API available for offset command

Thanks.

~VPJ

 

offset.PNG

4 REPLIES

Re: API for Offset Command

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

Hi @VPJ19,

I don't think that there is an API for Offset. There is no extra offset object. The command of the UI just generates Lines, Arcs ... plus relations. So you could do this by creating new elements at the desired distance, trimming them accordingly.

regards

JB
SE 2019, VS2017

Re: API for Offset Command

Pioneer
Pioneer

Thanks @JB for your suggestion.

I am just check it all API which required in various design.Can you suggest me another way to find out various API excluding SDK file and Spy.

~VPJ

Re: API for Offset Command

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

Hi @VPJ19, I'm not able to understand your question. Let me try it this way...

You can read the solid edge help, which contains a lot of examples.

With the help of spy you can see the application and the open document. Look a the objects (Lines2d for example) before and after you apply the offset command to understand what is going on. The try to do something equivalent with your own code.

There are also many samples at the solid edge community on GitHub

https://github.com/SolidEdgeCommunity/Samples

regards

JB
SE 2019, VS2017

Re: API for Offset Command

Pioneer
Pioneer

Thanks @JB.