Brian Ekins

October 2009

Sun Mon Tue Wed Thu Fri Sat
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

« VBA Document Projects | Main | Autodesk University »

October 02, 2008

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00e553fcbfc6883401053523eac2970c

Listed below are links to weblogs that reference Converting VBA Auto Macros to an Add-In:

Comments

Jon Brabbs

Man I've been doing this the hard way, I've got about 100 lines to do this!

Thanks for the post Brian. I will have a play and see what happens.

Cheers

Jon

AlexF

Hi,
I realise I'm a little late joining the party on this, but I was wondering if the template you've created can be used with the Express 2008 versions of both C# and VB.NET?

Cheers,

Alex.

Bob Collins

Brian,

I ran thru this example using C# and it builds successfully, but I have to manually register the dll to get Inventor to see it. I am running Vista64 / Inventor 2009 64 bit. Do I need to do anything different for the 64 bit vs the 32?

Just got back from AU - had a great time!

Thanks,

Bob

DanV

Brian,

Great code. This will come in handy. A question though, is there a way to generated a pdf\dwf of all the sheets in the IDW file. I noticed that it only publishes the current sheet.

Thanks,

Dan

-----------

See the posting http://modthemachine.typepad.com/my_weblog/2009/01/translating-files-with-the-api.html

-Brian

Tim Straz

Hi Brian,

Thank you for posting this and all the other great tips. Is it possible to see the conversion of a VBA form to a VB Add-in?
Thanks,
Tim

Peter Bosse

Hi Brian,

(AutoSave DWF/PDF)

If I want to place the DWF/PDF in a particular folder fx. T:\InvDrw.. How do i do that..?

Brian Ekins

The full filename of the file to create is being defined in the program. You set this to anything you would like. In the sample it's getting the full filename of the document being saved and modifying the extension.

Dim filename As String
filename = DocumentObject.FullFileName
filename = Left(filename, Len(filename) - 4)

It could be changed to something like this:

Dim filename As String
filename = "T:\InvDrw\Myfile.dwf"

AlvaA

Is it necessary for me to register (using RegAsm) any custom assemblies that my add-in class references?

Here is the problem I am having:
I am have created an add-in to Inventor 2009(in C#) and I am in the process of debugging it. My add-in uses classes that are defined in other custom assemblies that I have created to be used with the add-in. When I register the add-in, run Inventor, and click on my created add-in button, I sometimes get exceptions stating that my add-in cannot find the custom assemblies that are needed in order for it to run, although the assemblies are in the same directory as the add-in .dll and are of the correct version.

Randy

I have the expresss version of visual basic. I build a project in 32 bit and it works. I build it on a 64 bit machine and it doesn't show in the addins. I tried to manually registering it per your bat setup, got a successful register and it still does not show. What am I missing.

Randy

What I was missing was the name it was published with. It is there and works great.

Thanks

Enrico Lucchetti

Hi Brian, I built the project and I regoster i on 32 bit, but it does not work in Inventor (I'm using 2008 version). What am I missing? Is it right if the dll is not in the bin directory of Inventor?

thanks

Enrico

Jon Holler

Hi Brian,

The "StandardAddInServer" gives me errors when I open the the template in vb2008. Any idea what's happening here?

Jon

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

RSS Feed

Search