.NET

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

VBA Calls From .NET

85 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 (85 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:

You are not logged in.

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

Announcements
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