Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
JhoelForshav
in reply to: Guthery1

@Guthery1 

You've put in the axis and the plane in the wrong order...

This should work:

Dim 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"