Visual Basic Customization

Active Member
Posts: 9
Registered: ‎07-27-2011
Message 1 of 2 (117 Views)

is there a way to import custom vba's from microstation to acad2011

117 Views, 1 Replies
07-27-2011 09:37 AM

I have multiple vba's written for microstation and I was wondering if there is a way to import them into acad2011.

Are there any similarities between the two pltforms in regards to vbas? 

Valued Mentor
Posts: 482
Registered: ‎06-06-2010
Message 2 of 2 (112 Views)

Re: is there a way to import custom vba's from microstation to acad2011

07-27-2011 01:39 PM in reply to: chris.bird

In Microstations VBA IDE you should be able to export the code to FRM/FRX and BAS files.  These files could then be imported in AutoCAD's VBA IDE.  Then comes the problems:


First, there are bound to be procedures specific to getting/creating objects and more that are MSTA specific.  Those will have to be changed to accomodate the differences in AutoCAD.  It won't be as simple at export/import.


Second, unless you plan to stay with 2011/2012 forever, why bother.  It is rumored (or possibly stated) that Autodesk will remove VBA at some point in the near future.


In summary the best choice would be a complete rewrite using the Managed .NET API.  This would provide the conversion with an actual future and result in a better, faster application.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community