Author Topic: How can .net api perform like the AutoCAD Command:TextScr?  (Read 4176 times)

0 Members and 1 Guest are viewing this topic.

ahopera

  • Guest
How can .net api perform like the AutoCAD Command:TextScr?
« 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 ?

Glenn R

  • Guest
Re: How can .net api perform like the AutoCAD Command:TextScr?
« Reply #1 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.

ahopera

  • Guest
Re: How can .net api perform like the AutoCAD Command:TextScr?
« Reply #2 on: September 07, 2009, 07:40:32 AM »
would you mind to show me the source code to learn?

JoshuaModglin

  • Guest
Re: How can .net api perform like the AutoCAD Command:TextScr?
« Reply #3 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 ?

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: How can .net api perform like the AutoCAD Command:TextScr?
« Reply #4 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
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Glenn R

  • Guest
Re: How can .net api perform like the AutoCAD Command:TextScr?
« Reply #5 on: September 08, 2009, 05:29:33 AM »
Heh - forgot it was in there.

xsfhlzh

  • Guest
Re: How can .net api perform like the AutoCAD Command:TextScr?
« Reply #6 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;