How to Redefine Sketch with iLogic and Maintain Full-Constraint Status
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Dear Community,
I have a part that I would like to be able to redefine a sketch and maintain its fully-constrained status.
If I redefine the sketch manually, the full-constraint status is maintained regardless of the number of Redefine operations that are performed.
However, when I use iLogic code to redefine the sketch, the full-constraint status is lost after the second operation.
See video here: https://autode.sk/2Zhs7yU
How can I modify the iLogic code to maintain the full-constraint status regardless of the number of Redefine operations performed?
I suspect there is a problem in how I specify the Workplanes, WorkPoints, and WorkAxes. A portion of the iLogic follows. I have attached the part.
Sketch.Redefine(oDef.Sketches.Item(1).Name, partDef.WorkPlanes.Item(i).Name, partDef.WorkPoints(1).Name, partDef.WorkAxes(j).Name, AxisIsX := True, NaturalAxisDirection := True)
Thank you for your time and attention. I look forward to your replies.
Regards,
Jerry
CAD Administrator
Using AutoCAD & Inventor 2025
Autodesk Certified Instructor
Autodesk Inventor 2020 Certified Professional
Autodesk AutoCAD 2017 Certified Professional