TheSwamp

Code Red => .NET => Topic started by: jmaeding on January 31, 2017, 08:39:21 PM

Title: textscr in bricscad via .net?
Post by: jmaeding on January 31, 2017, 08:39:21 PM
I know acad uses Internal.Utils.Textscr, but bcad does not have that. I looked at the dll pinvoke approach, but the export lists do not have a mangled name in them, just acedTextscr.
Are those "mangled" names special? Should the dllimport work on Textscr?
I will try but don't do these too often.
thx
Title: Re: textscr in bricscad via .net?
Post by: It's Alive! on February 01, 2017, 07:29:53 PM
yeah acedTextscr isn't mangled so

Code: [Select]
[DllImportAttribute("brx17.dll", EntryPoint = "acedTextscr")]
public static extern int acedTextscr();
should work
Title: Re: textscr in bricscad via .net?
Post by: jmaeding on February 03, 2017, 02:24:05 PM
wow, thanks for the reply!
Seems my message notifications are not turned on or something for theswamp, I almost missed the reply.
Title: Re: textscr in bricscad via .net?
Post by: n.yuan on February 03, 2017, 02:55:03 PM
With assembly acMgd.dll:

Autodesk.AutoCAD.ApplicationServices.Application.DisplayTextScreen=true/false;

I am not sure since which version DisplayTextScreen was made available, but at least back to Acad2012, which is the oldest I still have, maybe even earlier. Is it available in bricscad? I do not know.