Message 1 of 2

Not applicable
01-10-2021
02:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Greetings,
I have an application where I will be creating the same rectangular extrusion on many different parts but not always on the same plane. I would like to automate this process using iLogic. So far, I manually create a plane in Autodesk Inventor and name it "ButtonPlane" and then run the rule shown below.
oDef = ThisDoc.Document.ComponentDefinition Dim oWPlane As WorkPlane oWPlane = oDef.WorkPlanes.Item("ButtonPlane") oSketch = oDef.Sketches.Add(oWPlane)
This successfully creates a sketch on the ButtonPlane, but I am not able to complete the remainder of the task. What do I need to add to this code in order to create a rectangular extrusion of lets say of 10 mm x 20 mm (in sketch dimensions) and then extrude it by 30 mm?
Solved! Go to Solution.