Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm not seeing what's giving me an error when attempting to create this plane in an ".ipt" part file.
PlanePoint(1) = oTG.CreatePoint(1, 1, 0) oWorkPlane = oCompDef.WorkPlanes.AddByPlaneAndPoint(oCompDef.WorkPlanes.Item("Base Sketch Plane"), PlanePoint(1), False) oWorkPlane.Name = "Tip Sketch Plane" oWorkPlane.Visible = False oWorkPlane.AutoResize = False
I can't share the whole of the code due to non-disclosure agreements, but this short snippet should get the point across. I've confirmed that the "Base Sketch Plane" is spelled correctly and exists. PlanePoint(1) is a random point in space I picked that does not contact the "Base Sketch Plane" I am referencing. PlanePoint(#) is predefined as a "Point" (not shown here).
Line 410 would be...
oWorkPlane = oCompDef.WorkPlanes.AddByPlaneAndPoint(oCompDef.WorkPlanes.Item("Base Sketch Plane"), PlanePoint(1), False)
Autodesk Inventor Certified Professional

Solved! Go to Solution.