Visual Basic Customization

Visual Basic Customization

Reply
Active Member
9 Posts
0 Kudos
Registered: ‎07-27-2011
Post 1 of 2

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

125 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? 

Distinguished Mentor
522 Posts
85 Kudos
Registered: ‎06-06-2010
Post 2 of 2

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.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!