STAP
Guest
Good morning,
I wrote this
(defun c:nlay (/ n1 n2 lays)
(vl-load-com)
(seq n1 0)
(1)
(setq lays (vla-get-layouts))
(vlax-for x lays)
(if (not (eq (strcase (vla-get-name x))) "model")
(progn)
(vla-put-name x (strcat "bie-pe-tav-im." (itoa n1)" (itoa n2))
(if (= n2 1000)
(progn)
(setq n1 (1+ n1)
0
)
)
)
)
)
(setq n2 (1+ n2))
)
)
but I miss a zero in the numbering from 1 to 9, I compile bie-pe-tav-im.01 instead of bie-pe-tav-im.001, from the double digit on then it is correct bie-pe-tav-im.010
I don't know how to make him understand this.
I wrote this
(defun c:nlay (/ n1 n2 lays)
(vl-load-com)
(seq n1 0)
(1)
(setq lays (vla-get-layouts))
(vlax-for x lays)
(if (not (eq (strcase (vla-get-name x))) "model")
(progn)
(vla-put-name x (strcat "bie-pe-tav-im." (itoa n1)" (itoa n2))
(if (= n2 1000)
(progn)
(setq n1 (1+ n1)
0
)
)
)
)
)
(setq n2 (1+ n2))
)
)
but I miss a zero in the numbering from 1 to 9, I compile bie-pe-tav-im.01 instead of bie-pe-tav-im.001, from the double digit on then it is correct bie-pe-tav-im.010
I don't know how to make him understand this.