Direct Edit and API

Direct Edit and API

DavidTruyens
Advocate Advocate
627 Views
4 Replies
Message 1 of 5

Direct Edit and API

DavidTruyens
Advocate
Advocate

Dear all,

 

I would like to use the scale function of direct edit using the API. Now the good news is that I found out that it's possible from 2016. But it's hard to find any documentation on Direct Edit and the API. Does anyone as a small example? 

 

Thanks a lot in advance,

David



David Truyens
Technical Specialist
Twitter | LinkedIn | IDCM | GitHub

0 Likes
628 Views
4 Replies
Replies (4)
Message 2 of 5

mikazakov
Advocate
Advocate

David,
DirectEditFeatures not have Add-method unfortunately.
Maximum you call command programmatically:

 

Call ThisApplication.CommandManager.ControlDefinitions("PartNGxDirectEditCtxCmd").Execute
0 Likes
Message 3 of 5

DavidTruyens
Advocate
Advocate
Hi Mikazakov,
Thanks for your reaction. Its a pity that that doesn't work. Do you have another idea to do a non-uniform scaling on a body? It may as well be on transient geometry.

Thanks for your reaction!


David Truyens
Technical Specialist
Twitter | LinkedIn | IDCM | GitHub

0 Likes
Message 4 of 5

mikazakov
Advocate
Advocate

May be use:

 

PartFeatures.NonParametricBaseFeatures

but I have not looked in detail

0 Likes
Message 5 of 5

DavidTruyens
Advocate
Advocate

Hi Mikazakov,

 

I've been trying that, but no option for scaling as far as I can see. But I've found a work around. In the end I just need a box. It would be nice to start with the exising box, but I'll create one from scratch.

 

Thanks for you suggestions!

 

David



David Truyens
Technical Specialist
Twitter | LinkedIn | IDCM | GitHub

0 Likes