I want to macro or LISP quick selection in IJCAD

Asked 1 years ago, Updated 1 years ago, 86 views

In the quick selection of the IJCAD, the dimensions inputted to the "priority of dimension values" of the dimensions are extracted and selected, and the color or layer is changed to visualize the dimensions that are not on-scale.
You can do it with quick selection, but you want to macro or LISP it.

ijcad lisp autocad

2022-09-30 11:39

1 Answers

You can use LISP to achieve the desired behavior.
Here is an example:

·How to do it

I made this code as a trial.
The color of the dimension entered in "Priority of Dimension Values" has been changed to red.
Please refer to it

 (defunc:MYSAMPLE (/ss ObjNum Cnt Obj dimension priority)
(setqss(ssget "A"'((0. "DIMENSION"))))
(setqObjNum(sslengthss))
(setq Cnt0)
(repeatObjNum)
(setqObj(ssnames Cnt))
(setq dimension (entgetObj))
(setq priority (cdr(assoc1 dimension)))
(if(=priority"")(ssdel Objss)(setq Cnt(1+Cnt)))
)
(command "change"ss" "p" "c" "1"")
)

Note:
IJLSPDEV.CHM in IJCAD_2022_DEV_CHM.zip at the following URL has a reference for LISP.
https://support.ijcad.jp/hc/ja/articles/4416529488281


2022-09-30 11:39

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.