Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

New to Inventor VBA, need a kick start.

4 REPLIES 4
Reply
Message 1 of 5
Anonymous
200 Views, 4 Replies

New to Inventor VBA, need a kick start.

Hello,
I am new to Inventor VBA, but I have used VB6 & Acad VBA. I just need some
help getting started. In MDT we have quite an extensive amount of VBA code
to check drawing files, print DWF's, maintain consitancy in title blocks,
special calculators etc, this code starts the second you open a drawing. In
Inventor I need to reprogram this same functionallity into my IDW's (IPT's &
IAM's dont need any).

So my first question (Many to follow in the next few months) is:

How do I activate VBA when an IDW is opened, or created new from a template.
I basicly need to fire into a macro before any user interaction occurs.


Thanks
--
Paul Houlker
Rimex Supply Ltd
www.rimex.com
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: Anonymous

From what I've been taught, don't put too much code in each individual
part/assy/drawing.

There is some limit to the amount of code open at one time: it's a VBA
problem not IV.

You can add code to your templates and that will make them available to each
new item built from them.

I have mine added to my default.ivb so my macros are always available and
only loaded once.

Do you really need code to get title blocks right? Why not set up templates
correctly?

--
______________
Rui
ruivaz@cadmais.pt
www.cadmais.pt


"Paul Houlker" <666paulh@rimex.com666> wrote in message
news:FF85CE5AFA4F6E99126267A3D5E35CCF@in.WebX.maYIadrTaRb...
> Hello,
> I am new to Inventor VBA, but I have used VB6 & Acad VBA. I just need
some
> help getting started. In MDT we have quite an extensive amount of VBA
code
> to check drawing files, print DWF's, maintain consitancy in title blocks,
> special calculators etc, this code starts the second you open a drawing.
In
> Inventor I need to reprogram this same functionallity into my IDW's (IPT's
&
> IAM's dont need any).
>
> So my first question (Many to follow in the next few months) is:
>
> How do I activate VBA when an IDW is opened, or created new from a
template.
> I basicly need to fire into a macro before any user interaction occurs.
>
>
> Thanks
> --
> Paul Houlker
> Rimex Supply Ltd
> www.rimex.com
>
>
Message 3 of 5
Anonymous
in reply to: Anonymous

Ok, maybe I am starting this all wrong.

This is what I require (IDW's only)

1.) Perform some basic checks OnActivate

2.) Have a button availible 24/7 to run a special calulator.

3.) Perform some more checks OnSave

4.) Print DWF on OnSave.

How would you guys suggest I set this up.


--
Paul Houlker
Rimex Supply Ltd
www.rimex.com
Message 4 of 5
Anonymous
in reply to: Anonymous

You would probably want to do this as a Addin and have it load at startup. Look into
Events in the API help

--
Kent
Assistant Moderator
Autodesk Discussion Forum Moderator Program


"Paul Houlker" <666paulh@rimex.com666> wrote in message
news:1C518E251D08C898B39B39207E957313@in.WebX.maYIadrTaRb...
> Ok, maybe I am starting this all wrong.
>
Message 5 of 5
Anonymous
in reply to: Anonymous

Addin : thats it, thanks, looked that up in help and that sound like the
ticket.
That was the correct kick start I was looking for.

Thanks for the advice guys

Ill be back 😉

--
Paul Houlker
Rimex Supply Ltd
www.rimex.com

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report