Vismut65
17th Apr 2012, 07:54 am
Hi,
I have made an IF function. But it doesn't work. The code is below.
If the value of "l_kyl" is larger or smaller than "7" I want two different blocks to be inserted. It only takes the first block independent of the value of "l_kyl". Someone who knows and can help me?.
/Dan
(if (= feet "1")
(progn
(if (< l_kyl "7") (command "_.insert" "P:\\CAD\\r18G\\Drives\\DUE\\Dimritning\\L3\\Fot\\L 3_fot_H_W.dwg" "0,0" "1" "1" "0"))
(if (> l_kyl "7") (command "_.insert" "P:\\CAD\\r18G\\Drives\\DUE\\Dimritning\\L3\\Fot\\L 3_fot_H_A.dwg" "0,0" "1" "1" "0"))
))
I have made an IF function. But it doesn't work. The code is below.
If the value of "l_kyl" is larger or smaller than "7" I want two different blocks to be inserted. It only takes the first block independent of the value of "l_kyl". Someone who knows and can help me?.
/Dan
(if (= feet "1")
(progn
(if (< l_kyl "7") (command "_.insert" "P:\\CAD\\r18G\\Drives\\DUE\\Dimritning\\L3\\Fot\\L 3_fot_H_W.dwg" "0,0" "1" "1" "0"))
(if (> l_kyl "7") (command "_.insert" "P:\\CAD\\r18G\\Drives\\DUE\\Dimritning\\L3\\Fot\\L 3_fot_H_A.dwg" "0,0" "1" "1" "0"))
))