Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Sketch Redefine

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
saseendrankombath
567 Views, 2 Replies

Sketch Redefine

Is it possible to get the sketch fully constrained (as it was) after redefining the sketch plane parallel to the original sketch plane. using API

 

 

2 REPLIES 2
Message 2 of 3
ekinsb
in reply to: saseendrankombath

When you redefine a sketch any sketch geometry that was created by projecting model geometry into the sketch (work point, work axis, model edge, etc.) loses the association to the geometry it was originally created from. You can't just reconnect the sketch entities back to the model geomtry they were originally projected from.  In most cases it means deleting the entities from the sketch, re-projecting the model geometry and re-creating the constraints.  It's all possible via the API but isn't particularly simple.

 

A common modeling practice is to project the origin work point into a sketch and constrain everything to it.  If this is the only model geometry projected into the sketch, then it's a bit easier. You can project the origin point into the new sketch and use the SketchPoint.Merge method to combine the point that was created by projecting the origin point and the new point.  This will also maintain all of the constraints so no further work is needed.

 

 


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
Message 3 of 3
saseendrankombath
in reply to: ekinsb

Thanks Brian

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report