Message 1 of 2
Macro to extrude existing sketch to custom length and save

Not applicable
11-29-2016
07:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all, I'm new to writing macros for Inventor specifically, but have about 5 years of Inventor experience and a bit of VB under my belt. I'm considering automating some of my part creation. Basically the idea behind this macro is that a custom length of 80-20 stock will be generated.
My issue is that I don't know how to reference an existing sketch from the VBA editor. What API element would best suit this?
Workflow: Start macro -> user enters length (in inches), macro creates stock to that length -> prompts with "save as"