IPT - 2D Sketch - Scale

IPT - 2D Sketch - Scale

MattH_Work
Collaborator Collaborator
252 Views
0 Replies
Message 1 of 1

IPT - 2D Sketch - Scale

MattH_Work
Collaborator
Collaborator

Has the scale command within an IPT 2D sketch been exposed to the API, if so are there any examples?

If not, I appreciate I can start the command through code via

oCommandMgr.ControlDefinitions.Item("SketchScaleCmd")
Call oControlDef.Execute


But how would I go about selecting all the geometry in my sketch in a way that the Scale command would see it as pre selected when the command starts?
(I can add the geometry to a selection set and/or a highlight set, but the scale command opens with the 'Red' select arrow, it does not see my geometry)

 

Typical, discovered comma in the wrong place just after posting, but...

 

I can now preselect my geometry, fire the scale command and have the selection accepted, but I have to give a base point, any idea on automating this (in my case, the base point can be anything, any geometry, origin point etc)

 

Cheers

 

Matt


MattH
Product Design Collection 2026
Vault Pro 2026
0 Likes
253 Views
0 Replies
Replies (0)