Message 1 of 7

Not applicable
10-24-2016
06:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello guys,
with the following code I try to mirror a pline at the x-axis and put it on a new defined layer, named like the first layer from which it got copied, but renamed through adding 180°. - except C000-Ebene and C180-Ebene !!
Example: Layer is called "C090-Ebene", so the renamed layer must be called "C270-Ebene" and so on.
(if (and ((/= layname "C000-EBENE") (/= layname "C180-EBENE")))
(progn (setq mirror_lay (strcat "-C" (AddLeadingZeros (rtos (+ zeileCE_wert 180.) 2 0) 3) "-EBENE") );SETQ
(command "_mirror" (ssget "L") "" "0,0" "1,0" "_n") (command "_layer" "_new" mirror_lay "") (command "_chprop" (ssget "L") "" "_layer" mirror_lay "") );PROGN );IF
Addleadingzeros is a function, which calculates the name and works properly.
I got this message: ; Fehler: no function definition: nil
Solved! Go to Solution.