Page 1 of 1

How to know the "LAYER" command make?

Posted: Fri Jan 21, 2022 4:48 am
by SPirou4D
1. I want to know what make the "LAYER" command and what parameters is necessary, please?

2. What is the CMS ICAD command to the place of AutoLISP "CHPROP" command?

Re: How to know the "LAYER" command make?

Posted: Fri Jan 21, 2022 8:21 am
by QuanNguyen
Please type the command "-layer" then input the parameters as you like.
refer this:
LayerCmd.png
LayerCmd.png (16.5 KiB) Viewed 4158 times
The same for the command "ChProp".

Re: How to know the "LAYER" command make?

Posted: Fri Jan 21, 2022 8:57 am
by sln8458
Also

CHPROP is supported in Icad 10.1
Image
.

Steve

Re: How to know the "LAYER" command make?

Posted: Fri Jan 21, 2022 11:09 am
by SPirou4D
QuanNguyen wrote:
Fri Jan 21, 2022 8:21 am
Please type the command "-layer" then input the parameters as you like.
refer this:
LayerCmd.png

The same for the command "ChProp".
Ha yes in the history command panel may be.....
No!
Mine (french ICAD) is empty : http://sitarchi.free.fr/Download/Image%20002.png

--
I work on CMS IntelliCAD v10.0.1572.123806.PE.VC15.x64.CMS100a

Re: How to know the "LAYER" command make?

Posted: Fri Jan 21, 2022 11:17 am
by SPirou4D
sln8458 wrote:
Fri Jan 21, 2022 8:57 am
Also

CHPROP is supported in Icad 10.1
Image
.

Steve
Hi Sim8458,
Yu're welcome. I am new here but I want to study the LISP for CMS ICAD.

Yure right and mine v10 has the "CHPROP" too.
I havn't used the command prompt but the commands bar only

So now it's clearer! I see all the parameters
I understood that "_LAYER" create/modify layers and "CHPROP" to change the properties of objects.

(command "CHPROP" 1 2 3 4 5) ; so there are 5 parameters
===============================================
(command "CHPROP" ent "" "_la" (cdr (assoc 8 (entget plan))) "")
ent is the selected variable
"" end of selection
"_la" is the propriety "layer"
(cdr (assoc 8 (entget plan))) is the value of the layer
"" end of the command


At soon and thanks all!

Re: How to know the "LAYER" command make?

Posted: Fri Jan 21, 2022 11:46 am
by SPirou4D
QuanNguyen wrote:
Fri Jan 21, 2022 8:21 am
Please type the command "-layer" then input the parameters as you like.
Yes now all is clear:
http://sitarchi.free.fr/Download/Image%20003.png

but why with "-LAYER" and non "_LAYER" please?

Re: How to know the "LAYER" command make?

Posted: Sat Jan 22, 2022 1:27 am
by sln8458
_layer = open layer dialog

-layer = command bar input (see QuanNguyen post #2 above)

Steve

Re: How to know the "LAYER" command make?

Posted: Sat Jan 22, 2022 3:37 am
by SPirou4D
sln8458 wrote:
Sat Jan 22, 2022 1:27 am
_layer = open layer dialog
-layer = command bar input (see QuanNguyen post #2 above)
Steve
Thks Steve but on my v10 in french,
-LAYER and _LAYER don't display parameters! Strange not?
but when I change to english lang: I see parameters on command history or commands bar!
See here: http://sitarchi.free.fr/Download/result.jpg

So now I must code in english UI!