Message 1 of 10

Not applicable
04-17-2018
06:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I'd like to create a new plane parallel to the XY plane with an offset of 35 mm in an assembly using Inventor API. I'm not yet familiar with VBA but I'm learning step by step.
I have searched on internet and I have found some code but none of them works. From what I've seen I guess it's something like that:
Sub createWP()
Dim oAssDoc As AssemblyDocument Set oAssDoc = ThisApplication.ActiveDocument Dim oAssCD As AssemblyComponentDefinition Set oAssCD = oAssDoc.ComponentDefinition Dim oWPlane as WorkPlane Set oWPlane = oAssCD.WorkPlanes.AddByPlaneAndOffset(oAssCD.WorkPlanes.Item("XY Plane"), 35) End Sub
Thank you in advance for you help !
Solved! Go to Solution.