.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Late Binding C# Example

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
989 Views, 2 Replies

Late Binding C# Example

Does anyone have an example of late binding to AutoCAD via C# in order
to send it keyin commands?

Warren
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

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
Message 3 of 3
Anonymous
in reply to: Anonymous

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

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost