Please load the code on a blank dwg.
There are 2 commands on the code:
On World UCS creates 2 helix the second a perfect continuation of the other.
Same code as before but on a custom UCS. The second helix is not drawn as a continuation of the first one.
Can somebody help me understand this.
(defun set_act_ucs
(/ ucsorg ucsxdir ucsydir xvec yvec act_ucs
) ucsorg '(35.5021 10.9139 -1.27168)
ucsxdir '(-0.997401 -0.0720439 0.0)
ucsydir '(0.0 0.0 1.0)
xvec '()
yvec '()
)
"TEMP"
)
)
)
(defun helix_test
(/ starts s_rad e_rad pitch ends step in_ang
) starts '(9 0 0)
s_rad '(9 2 0)
e_rad '(9 3 0)
pitch 1
ends '(-1 0 0)
step 0.75
in_ang
(angle ends starts
) )
(vl-cmdf "._helix" "_non" starts
"_non" s_rad
"_non" e_rad
"_H" pitch
"_A" "_non" ends
) ends
(polar starts in_ang pitch
) )
(vl-cmdf "._helix" "_non" starts
"_non" s_rad
"_non" e_rad
"_H" pitch
"_A" "_non" ends
) )
(defun c:helix_on_world_ucs
() (helix_test)
)
(defun c:helix_on_custom_ucs
() (set_act_ucs)
(helix_test)
)