Author Topic: grread to quick keyword  (Read 250 times)

0 Members and 1 Guest are viewing this topic.

masao

  • Newt
  • Posts: 97
grread to quick keyword
« on: May 06, 2024, 09:46:21 AM »
hi~i read this https://www.theswamp.org/index.php?topic=34804

and has two questions about grread

1)

if i want to add else keyword into LM:UCS-ssget,how can i add it.

(setq size (LM:UCS-ssget (strcat "\n->[ARC(A)/CIRCLE(B)/ARC and CIRCLE(N)]
\n->Filter by:[radius size(R)/circle color(C)/circle linetype(L)]
\n->select object or[setting(S)]{now radius size" (rtos radius size) "now circle color" (rtos circle color) "now circle linetype" circle linetype "}:")))

if key A

(ssget (list '(0 . "ARC")))

if key B

(ssget (list '(0 . "CIRCLE")))

if key N

(ssget (list '(0 . "ARC,CIRCLE")))

if key R

enter radius size setting

(setq radius size (getreal))

then back (setq size (LM:UCS-ssget

if key C

enter circle color setting

(setq circle color (acad_colordlg 7))

then back (setq size (LM:UCS-ssget

if key L

enter circle linetype setting

(setq circle linetype (getstring))

then back (setq size (LM:UCS-ssget

if i key A and setting radius size=5 circle color=2 circle linetype="HIDDEN"

get (ssget (list '(0 . "ARC" (cons 40 5) (cons 62 2) (cons 6 "HIDDEN"))))

it can make it?

2) and grread can use both getstring and keyword , if enter getstring word not affected by keyword(if Key A can enter else funtoin but getstring word has "A"  alphabet.)

on grread funtion use Right click and Enter has different?
« Last Edit: May 06, 2024, 09:58:47 AM by masao »