TheSwamp

Code Red => .NET => Topic started by: ahopera on September 07, 2009, 07:22:27 AM

Title: How can .net api perform like the AutoCAD Command:TextScr?
Post by: ahopera on September 07, 2009, 07:22:27 AM
Just as the title,use command textscr in cad system to show the text screen ,the lisp function (textscr) also has the same.but how can .net api to achieve this function ?
Title: Re: How can .net api perform like the AutoCAD Command:TextScr?
Post by: Glenn R on September 07, 2009, 07:28:07 AM
Off the top of my head, you could wrap the ARX global functions, acedTextScr() and acedGraphScr() and call them using PInvoke.
Title: Re: How can .net api perform like the AutoCAD Command:TextScr?
Post by: ahopera on September 07, 2009, 07:40:32 AM
would you mind to show me the source code to learn?
Title: Re: How can .net api perform like the AutoCAD Command:TextScr?
Post by: JoshuaModglin on September 07, 2009, 07:45:39 PM
It is actually quite simple. You can use the following:
Autodesk.AutoCAD.Internal.Utils.TextScr()


Just as the title,use command textscr in cad system to show the text screen ,the lisp function (textscr) also has the same.but how can .net api to achieve this function ?
Title: Re: How can .net api perform like the AutoCAD Command:TextScr?
Post by: Kerry on September 07, 2009, 08:01:57 PM

'...If you're using prior to AC2010 you'll need to reference acmgdinternal.dll

2010 has the Autodesk.AutoCAD.Internal.Utils in the acmgd.dll module
Title: Re: How can .net api perform like the AutoCAD Command:TextScr?
Post by: Glenn R on September 08, 2009, 05:29:33 AM
Heh - forgot it was in there.
Title: Re: How can .net api perform like the AutoCAD Command:TextScr?
Post by: xsfhlzh on September 08, 2009, 10:31:46 AM

'...If you're using prior to AC2010 you'll need to reference acmgdinternal.dll

2010 has the Autodesk.AutoCAD.Internal.Utils in the acmgd.dll module


In Ac2010
Application.DisplayTextScreen = true;