Create a new work plane on an angle from reference - iLogic or Macro

Create a new work plane on an angle from reference - iLogic or Macro

Anonymous
Not applicable
1,000 Views
1 Reply
Message 1 of 2

Create a new work plane on an angle from reference - iLogic or Macro

Anonymous
Not applicable

Hi .

 

I would like to know if it is possible to create a new work plane with iLogic. New work plane would be on an angle withe reference to origin axis and plane.

 

i found this example that call for offset from one of the planes --> https://forums.autodesk.com/t5/inventor-forum/create-a-new-work-plane-with-ilogic/m-p/5385259#M52729...

 

Is it possible to create what i need with iLogic? 

 

Also, since i am new to Inventor and iLogic (and can't code), where can i find good examples so i can learn? 

 

 

Thank you in advance and i apologize for the open ended question. 

 

 

EDIT: I just found out a WorkPlanes.AddByLinePlaneAndAngle.. hopefully that is what i need.

 

0 Likes
Accepted solutions (1)
1,001 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Accepted solution

i Was able to work it out on my own.. Creates a 45 deg angle based on Y axis and XY plane references (which can be tailored to our needs)

 

oDef = ThisDoc.Document.ComponentDefinition
Dim oWPlane As WorkPlane
Dim oAxis As WorkAxes

oAxis= oDef.WorkAxes
oWPlane = oDef.WorkPlanes.AddByLinePlaneAndAngle(oAxis("Y Axis"), oDef.WorkPlanes("XY Plane"), 45)
oWPlane.Name = "Plane_Name"