Apprentice

Apprentice

Anonymous
Not applicable
294 Views
4 Replies
Message 1 of 5

Apprentice

Anonymous
Not applicable
Please some help.

I wanna use some commands that only exists in apprentice, but i don't know how to use apprentice. Where can i use it? Can i use apprentice in a VBA program?
I need to use FileSaveAs and ExecuteSaveCopyAs properties in my program, but it always gives an error.

Thanks,
Frederico Ottoni.
0 Likes
295 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Why do you say you need apprentice to use these? They are both part of the Inventor API. Apprentice is basically just a small subset of the Inventor API. To use the standard Inventor API you either go into Inventor's VBA environment by pressing Alt F11 or in VB by referencing the Inventor Object library. To access Apprentice you have to do it somewhere other than within Inventor. You can access it in any other program that has a VBA environment such as Word, by making a reference to "Autodesk Inventor's Apprentice Object Library" , or in VB by doing the same. -- Kent Keller Autodesk Discussion Forum Facilitator "ottoni" wrote in message news:8894228.1100015756598.JavaMail.jive@jiveforum1.autodesk.com... > Please some help. > > I wanna use some commands that only exists in apprentice, but i don't know how to use apprentice. Where can i use it? Can i use apprentice in a VBA program? > I need to use FileSaveAs and ExecuteSaveCopyAs properties in my program, but it always gives an error. > > Thanks, > Frederico Ottoni.
0 Likes
Message 3 of 5

Anonymous
Not applicable
Neither you can use the apprentice in VBA nor in an add-in. the apprentice can be used only of out of process application. The VBA macro of Inventor as wel the add-in is inprocess.

So either you need to write an exe and use apprentice or if you want to use it in VB add-in or VBA, create activex dll, in that dll create the necessary methods and property and use the apprentice server for desired functionality. and call those methods and property either from your add-in or VBA macro.

Manoj
0 Likes
Message 4 of 5

Anonymous
Not applicable
Thanks,
But now, how can i create an exe?
can i do this from within Inventor or i will need a Visual Basic?

Frederico Ottoni
0 Likes
Message 5 of 5

Anonymous
Not applicable
You will need Visual Basic. "ottoni" wrote in message news:24631234.1100086075695.JavaMail.jive@jiveforum2.autodesk.com... > Thanks, > But now, how can i create an exe? > can i do this from within Inventor or i will need a Visual Basic? > > Frederico Ottoni
0 Likes