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

Create a plane at an angle with i-Logic

I've been trying to get this piece of code to work:

oDef = ThisDoc.Document.ComponentDefinition
Dim oWPlane As WorkPlane
Dim oAxis As WorkAxes
oAxis = oDef.WorkAxes
oWPlane = oDef.WorkPlanes.AddByLinePlaneAndAngle(oDef.WorkPlanes("XY Plane"), oAxis("Y Axis"), 45)
oWPlane.Name = "Plane_Name"

I found it on these forums but it doesn't seem to work in 2023 Inventor.  Does anyone know what needs to be adjusted to make it function now?