Macro to extrude existing sketch to custom length and save

Macro to extrude existing sketch to custom length and save

Anonymous
Not applicable
347 Views
1 Reply
Message 1 of 2

Macro to extrude existing sketch to custom length and save

Anonymous
Not applicable

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"

0 Likes
348 Views
1 Reply
Reply (1)
Message 2 of 2

rikard.nilsson
Collaborator
Collaborator
Hi,

I have to ask this..
Why don't you use Content Center for this?
If I understood you right, this is the exact same way CC works if you publish your own section sketch..

Regards
Rikard
0 Likes