Author Topic: Detect textscreen height?  (Read 1817 times)

0 Members and 1 Guest are viewing this topic.

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Detect textscreen height?
« on: April 25, 2013, 06:24:29 AM »
Is there a way to detect the height of the textscreen? For output similar to the LIST command I would like to know how many text lines fit on the textscreen.

DEVITG

  • Bull Frog
  • Posts: 481
Re: Detect textscreen height?
« Reply #1 on: April 27, 2013, 08:48:52 PM »
Command: SCREENSIZE

SCREENSIZE = 1172.0000,504.0000 (read only)   units in PIXELS , read only .
Location @ Córdoba Argentina Using ACAD 2019  at Window 10

Gasty

  • Newt
  • Posts: 90
Re: Detect textscreen height?
« Reply #2 on: April 27, 2013, 11:09:15 PM »
Hi,

Screensize variable doesn't store the text screen size, but the drawing editor screen size. I think that to get the text screen size you need some call to the Windows API, however I don´t know how to do that from vlisp other than creating a specific COM object and type lib.

Gaston Nunez


RAIN CODE

  • Guest
Re: Detect textscreen height?
« Reply #3 on: April 29, 2013, 03:41:49 AM »
@ Roy,
since you brought this up and reminded me of a question.

Does anyone know how to change the nos of text command line without using the option dialog box to change it ?

Let say now I have a 10 line of text command line which is taking quite a space of the graphics screen and
then I like to use lisp to adjust the nos of text command line to 3.

is there a way just by using autolisp of setvar ?

Thanks.

VovKa

  • Water Moccasin
  • Posts: 1632
  • Ukraine
Re: Detect textscreen height?
« Reply #4 on: April 29, 2013, 06:15:24 AM »
you can get
Code: [Select]
(vla-get-DockedVisibleLines (vla-get-Display (vla-get-Preferences (vlax-get-acad-object))))but you can't put

info about command line window is stored in profile file (FixedProfile.aws) which has xml structure

RAIN CODE

  • Guest
Re: Detect textscreen height?
« Reply #5 on: May 05, 2013, 02:11:18 AM »
sorry @ roy for the off topics in ur post.
it was insensitive for me to do that , sorry.  :embarrassed:

Thanks Vovka...it will be great if users get to change the number of command line without going to Option menu.