Author Topic: textscr in bricscad via .net?  (Read 1841 times)

0 Members and 1 Guest are viewing this topic.

jmaeding

  • Bull Frog
  • Posts: 304
  • I'm just here for the Shelties.
textscr in bricscad via .net?
« 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
James Maeding

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8691
  • AKA Daniel
Re: textscr in bricscad via .net?
« Reply #1 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

jmaeding

  • Bull Frog
  • Posts: 304
  • I'm just here for the Shelties.
Re: textscr in bricscad via .net?
« Reply #2 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.
James Maeding

n.yuan

  • Bull Frog
  • Posts: 348
Re: textscr in bricscad via .net?
« Reply #3 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.