.NET

Reply
New Member
Hagerman
Posts: 1
Registered: ‎05-13-2006
Message 1 of 2 (93 Views)

VBA Calls From .NET

93 Views, 1 Replies
05-13-2006 11:50 PM
Can a VBA routine (macro) be called from win .NET - does it really make sence to attmpt it. I have an app written in VBA, I want to use the code in a new app that calls the vba routines already written. Rather than converting all the vba commands to new "autocad command" it seems quicker to deployment to use whats written and call the vba functions as need. Rather than converting them to .NET Autocad Command and then writting the code to call the commands. Does this make sense? :smileyhappy:
*Bobby C. Jones
Message 2 of 2 (93 Views)

Re: VBA Calls From .NET

05-16-2006 10:06 AM in reply to: Hagerman
It can be done via COM Interop. The AcadApplication object has all of the
methods you'll need to load and run VBA macros. However, there isn't any
direct way to pass data between your .NET app and VBA.
--
Bobby C. Jones

wrote in message news:5174057@discussion.autodesk.com...
Can a VBA routine (macro) be called from win .NET - does it really make
sence to attmpt it. I have an app written in VBA, I want to use the code in
a new app that calls the vba routines already written. Rather than
converting all the vba commands to new "autocad command" it seems quicker to
deployment to use whats written and call the vba functions as need. Rather
than converting them to .NET Autocad Command and then writting the code to
call the commands. Does this make sense? :smileyhappy:
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.