VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1 REPLY 1
Reply
Message 1 of 2
chris.bird
293 Views, 1 Reply

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

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? 

1 REPLY 1
Message 2 of 2
TerryDotson
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.

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

Post to forums  

Autodesk Design & Make Report

”Boost