.NET

Reply
*Carlos
Message 1 of 4 (147 Views)

How do I print a message in AutoCAD 2005 without Autodesk.AutoCAD.EditorInput?

147 Views, 3 Replies
07-15-2005 04:59 PM
Hello again...sigh,

I'm using AutoCAD 2005, so when I add acdbmgd and acmgd to my C# solution as
references, I cannot use:

using Autodesk.AutoCAD.EditorInput;

As a result, I can't use the WriteMessage method for printing a message in
AutoCAD. How can I do it using AutoCAD 2005?

Sorry to ask so many questions. Maybe I'm totally off track here...

-Carlos
*KWBrown
Message 2 of 4 (146 Views)

Re: How do I print a message in AutoCAD 2005 without Autodesk.AutoCAD.EditorInput?

07-15-2005 05:50 PM in reply to: *Carlos
Search the ObjectARX discussion Group for a post by Jim Awe containing
MgdDbg which had classes for AC2005 Net interface.

.. sorry, don't have a link ..

kwb


"Carlos" wrote in message
news:4903328@discussion.autodesk.com...
Hello again...sigh,

I'm using AutoCAD 2005, so when I add acdbmgd and acmgd to my C# solution as
references, I cannot use:

using Autodesk.AutoCAD.EditorInput;

As a result, I can't use the WriteMessage method for printing a message in
AutoCAD. How can I do it using AutoCAD 2005?

Sorry to ask so many questions. Maybe I'm totally off track here...

-Carlos
*Albert Szilvasy
Message 3 of 4 (146 Views)

Re: How do I print a message in AutoCAD 2005 without Autodesk.AutoCAD.EditorInput?

07-15-2005 07:12 PM in reply to: *Carlos
WriteMessage is new in AutoCAD 2006. There was another way of doing this in
AutoCAD 2005. Something like CommandPrompt.Message or similar. BTW, if you
are new to AutoCAD I recommend that you use the COM interop assemblies
first. They are easier to use although in some scenarios they are somewhat
slower.

albert
"Carlos" wrote in message
news:4903328@discussion.autodesk.com...
Hello again...sigh,

I'm using AutoCAD 2005, so when I add acdbmgd and acmgd to my C# solution as
references, I cannot use:

using Autodesk.AutoCAD.EditorInput;

As a result, I can't use the WriteMessage method for printing a message in
AutoCAD. How can I do it using AutoCAD 2005?

Sorry to ask so many questions. Maybe I'm totally off track here...

-Carlos
*Carlos
Message 4 of 4 (146 Views)

Re: How do I print a message in AutoCAD 2005 without Autodesk.AutoCAD.EditorInput?

07-21-2005 06:12 PM in reply to: *Carlos
In case anyone is ever interested...

Autodesk.AutoCAD.ApplicationServices.CommandLinePrompts.Message("My
String");

Thanks again for your comments.

-Carlos


"Albert Szilvasy" wrote in message
news:4903358@discussion.autodesk.com...
WriteMessage is new in AutoCAD 2006. There was another way of doing this in
AutoCAD 2005. Something like CommandPrompt.Message or similar. BTW, if you
are new to AutoCAD I recommend that you use the COM interop assemblies
first. They are easier to use although in some scenarios they are somewhat
slower.

albert
"Carlos" wrote in message
news:4903328@discussion.autodesk.com...
Hello again...sigh,

I'm using AutoCAD 2005, so when I add acdbmgd and acmgd to my C# solution as
references, I cannot use:

using Autodesk.AutoCAD.EditorInput;

As a result, I can't use the WriteMessage method for printing a message in
AutoCAD. How can I do it using AutoCAD 2005?

Sorry to ask so many questions. Maybe I'm totally off track here...

-Carlos
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!