TheSwamp
Code Red => .NET => Topic started 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 ?
-
Off the top of my head, you could wrap the ARX global functions, acedTextScr() and acedGraphScr() and call them using PInvoke.
-
would you mind to show me the source code to learn?
-
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 ?
-
'...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
-
Heh - forgot it was in there.
-
'...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;