Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

New Tutorial Available (VBA Functions in Parts)

14 REPLIES 14
Reply
Message 1 of 15
Anonymous
242 Views, 14 Replies

New Tutorial Available (VBA Functions in Parts)

Now don't go running for the hills just because you see the words VBA. It's
easy I promise.

This tutorial teaches you how to use VBA function in your part files to
control the size, shape and number of features based off other part
information. It's very similar to using equations in the parameters dialogue
but it allows you to use VB functions such as If..Then..ElseIf.

Direct Download:
http://www.sdotson.com/freetut/vba%20functions%20in%20parts.pdf

or go to the tutorial page (towards the bottom)

http://www.sdotson.com/tutorials.asp
--
Sean Dotson, PE
http://www.sdotson.com
Check the Inventor FAQ for most common questions
www.sdotson.com/faq.html
----------------------------------------------------------------------------
------
14 REPLIES 14
Message 2 of 15
Anonymous
in reply to: Anonymous

Sean,
I cannot access the zip file mentioned in the document.

Scott
Message 3 of 15
Anonymous
in reply to: Anonymous

oops, because I forgot to put it there

I'll upload it in a few mins.

--
Sean Dotson, PE
http://www.sdotson.com
Check the Inventor FAQ for most common questions
www.sdotson.com/faq.html
----------------------------------------------------------------------------
------
"Scott Stubbington" wrote in message
news:f14be63.0@WebX.maYIadrTaRb...
> Sean,
> I cannot access the zip file mentioned in the document.
>
> Scott
>
>
Message 4 of 15
Anonymous
in reply to: Anonymous

Excellent, thanks.

Scott
Message 5 of 15
Anonymous
in reply to: Anonymous

THANKS, SEAN! Looking forward to it!

"Scott Stubbington" wrote in message
news:f14be63.2@WebX.maYIadrTaRb...
> Excellent, thanks.
>
> Scott
>
>
Message 6 of 15
Anonymous
in reply to: Anonymous

Oh ... an easy one, eh? ... That's really Cool ... BTW ... does it come with
live online tech support?
~Larry

"Sean Dotson" wrote in message
news:BA132859CCFDF384B27CB8E0D2C79F48@in.WebX.maYIadrTaRb...
> Now don't go running for the hills just because you see the words VBA.
It's
> easy I promise.
>
> This tutorial teaches you how to use VBA function in your part files to
> control the size, shape and number of features based off other part
> information. It's very similar to using equations in the parameters
dialogue
> but it allows you to use VB functions such as If..Then..ElseIf.
>
> Direct Download:
> http://www.sdotson.com/freetut/vba%20functions%20in%20parts.pdf
>
> or go to the tutorial page (towards the bottom)
>
> http://www.sdotson.com/tutorials.asp
> --
> Sean Dotson, PE
> http://www.sdotson.com
> Check the Inventor FAQ for most common questions
> www.sdotson.com/faq.html
> --------------------------------------------------------------------------
--
> ------
>
>
Message 7 of 15
Anonymous
in reply to: Anonymous

yes for only $150/hour

--
Sean Dotson, PE
http://www.sdotson.com
Check the Inventor FAQ for most common questions
www.sdotson.com/faq.html
----------------------------------------------------------------------------
------
"Larry Caldwell" wrote in message
news:77085B027501EA541C79A3CEDB35E834@in.WebX.maYIadrTaRb...
> Oh ... an easy one, eh? ... That's really Cool ... BTW ... does it come
with
> live online tech support?
> ~Larry
Message 8 of 15
Anonymous
in reply to: Anonymous

No problem, I put a $150. retainer under that beer in your new fridge.
~Larry

"Sean Dotson" wrote in message
news:BCA111D757D27C1E7C52A414E260383D@in.WebX.maYIadrTaRb...
> yes for only $150/hour
>
> --
> Sean Dotson, PE
> http://www.sdotson.com
> Check the Inventor FAQ for most common questions
> www.sdotson.com/faq.html
> --------------------------------------------------------------------------
--
> ------
> "Larry Caldwell" wrote in message
> news:77085B027501EA541C79A3CEDB35E834@in.WebX.maYIadrTaRb...
> > Oh ... an easy one, eh? ... That's really Cool ... BTW ... does it come
> with
> > live online tech support?
> > ~Larry
>
>
Message 9 of 15
jorgen
in reply to: Anonymous

I have wanted to try VBA in IV for a long time to brush up on my University programming classes.

But too little time, and not knowing where to start have kind of stopped me.

I read your tutorial, and it was a nice startingpoint with a good example for everyday(?) use.

So now I have picked up my "Visual Basic for Applications" book and started to go through it. (already on page 40).

Thanks for a nice, but small tutorial.
Keep'em coming! I'd appreciate more tutorials, explaining how to access many different IV functions/properties/etc.
And I'll look forward to the motion simulation tutorial you almost promised at the end of the tutorial.


One question though: Is there a file I could put a macro in and always have it available? (without putting it in the template part and all part files).

Jorgen "VBA" Bjornes

Thanks a lot
Message 10 of 15
Anonymous
in reply to: Anonymous

Yes, if you place code in your default.ivb project it is available at all
times within IV. See my tips and tricks tutorial and the section of
visibility macros. That code is in the default.ivb.

If you have any suggestions of things you'd like to do with functions let me
know and I can add more examples to the tutorial. I was racking my brain to
try to come up with some examples. Of course if I stop thinking about it
I'll probably think of 100.

How about a lookup table tied to Excel?

This would almost be like an ipart without the embedded table. You could
have a common linked excel sheet to all parts in this manner.

--
Sean Dotson, PE
http://www.sdotson.com
Check the Inventor FAQ for most common questions
www.sdotson.com/faq.html
----------------------------------------------------------------------------
------
"jorgen" wrote in message
news:f14be63.7@WebX.maYIadrTaRb...
> I have wanted to try VBA in IV for a long time to brush up on my
University programming classes.
> But too little time, and not knowing where to start have kind of stopped
me.
>
> I read your tutorial, and it was a nice startingpoint with a good example
for everyday(?) use.
>
> So now I have picked up my "Visual Basic for Applications" book and
started to go through it. (already on page 40).
>
> Thanks for a nice, but small tutorial.
> Keep'em coming! I'd appreciate more tutorials, explaining how to access
many different IV functions/properties/etc.
> And I'll look forward to the motion simulation tutorial you almost
promised at the end of the tutorial.
>
>
> One question though: Is there a file I could put a macro in and always
have it available? (without putting it in the template part and all part
files).
>
> Jorgen "VBA" Bjornes
>
> Thanks a lot
>
Message 11 of 15
Anonymous
in reply to: Anonymous

> If you have any suggestions of things you'd like to do with functions let me
> know and I can add more examples to the tutorial.

Yeah, a for real 'Save As' command (GD&R)

Richard
Message 12 of 15
Anonymous
in reply to: Anonymous

Sean,
I would definatly be interested in the lookup table example.
Thanks for all your effort!


"Richard Hinterhoeller" wrote in message
news:3E69055A.8070204@hfx.eastlink.ca...
> > If you have any suggestions of things you'd like to do with functions
let me
> > know and I can add more examples to the tutorial.
>
> Yeah, a for real 'Save As' command (GD&R)
>
> Richard
>
Message 13 of 15
Anonymous
in reply to: Anonymous

you better run...(I'll never be writing one as I see no need for it)
sorry 🙂

--
Sean Dotson, PE
http://www.sdotson.com
Check the Inventor FAQ for most common questions
www.sdotson.com/faq.html
----------------------------------------------------------------------------
------
"Richard Hinterhoeller" wrote in message
news:3E69055A.8070204@hfx.eastlink.ca...
> > If you have any suggestions of things you'd like to do with functions
let me
> > know and I can add more examples to the tutorial.
>
> Yeah, a for real 'Save As' command (GD&R)
>
> Richard
>
Message 14 of 15
Anonymous
in reply to: Anonymous

Huff! Huff! Huff! I'm running 😉

Richard
Message 15 of 15
Anonymous
in reply to: Anonymous

Indeed, a really good tutorial and I am also definatly interested in the lookup table example.

keep on the good work,

richard

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

Post to forums  

Autodesk Design & Make Report