Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
1333 Views, 14 Replies

iLogic Sketch Redefine.

Hi, 

 

I've tried to use "sketch.redefine" syntax according to steps pre described here:

 

https://knowledge.autodesk.com/support/inventor-products/learn-explore/caas/CloudHelp/cloudhelp/2014...

 

but It doesn't work and I don't know why.

Below the snippet of code I've made:

 

SyntaxEditor Code Snippet

Dim oDoc As PartDocument
oDoc = ThisDoc.Document

Dim oDef As PartComponentDefinition
oDef = oDoc.ComponentDefinition

Dim oSketch As PlanarSketch
oSketch = oDef.Sketches.Item(1)

Sketch.Redefine(oSketch.Name,"P�aszczyzna XY","Punkt �rodkowy","X",AxisIsX := True,NaturalAxisDirection:= True)

The idea is to check and redefine existing sketch on the XY plane.

 

Thanks in advance for any help. 

 

Tomek