.NET

Reply
*Warren Newhauser
Message 1 of 3 (600 Views)

Late Binding C# Example

600 Views, 2 Replies
05-31-2007 01:39 PM
Does anyone have an example of late binding to AutoCAD via C# in order
to send it keyin commands?

Warren
*Tony Tanzillo
Message 2 of 3 (600 Views)

Re: Late Binding C# Example

05-31-2007 08:35 PM in reply to: *Warren Newhauser
Perhaps you need to rephrase your question.

What API are you talking about (Managed or
Active), and what do you mean by 'in order
to send it key commands' ?



--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

"Warren Newhauser" wrote in message news:5612944@discussion.autodesk.com...
Does anyone have an example of late binding to AutoCAD via C# in order
to send it keyin commands?

Warren
*Warren Newhauser
Message 3 of 3 (600 Views)

Re: Late Binding C# Example

06-01-2007 10:45 AM in reply to: *Warren Newhauser
HI Tony,

I will try to clarify:


1. The overall objective is this: from a C# .NET 2.0 program, I would
like to be able to send commands to AutoCAD (i.e., pline, -insert, etc.)
just like you are typing them in yourself.

2. This approach should work across multiple version of AutoCAD. I
currently have the above working using "early binding" where I reference
the AutoCAD DLL directly into the VS2005 project. However, it is totally
dependent on the version of AutoCAD. Thus I am thinking "late binding"
is better way to go because it does not reference a specific version of
the AutoCAD DLL. [I have tried the .NET SendKeys() class, but have a lot
of problems with it. Sometimes it works, sometimes not so I don't think
it is a viable option]

3. I am looking for an example of a C# program using "late binding" OR
any other way a program can send input to AutoCAD.

Thank you,

Warren


Tony Tanzillo wrote:
> Perhaps you need to rephrase your question.
>
> What API are you talking about (Managed or
> Active), and what do you mean by 'in order
> to send it key commands' ?
>
>
>
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.