(setq pt2 (polar pt0 ang 100000000))<--you are setting a limit with this line
I would suggest you use the first entity selected as base for every offset and record every distance you input, add the total + the new value for your OffsetVal variable, that way the direction would still be from the orginal entitiy no need to reassign value for pt2 but only increment the offset distance by total + new value and no need for entlast
a simple code woudl be soemthing like this
HTHCode:(defun c:test (/ PickedEnt pt0 i) (setq PickedEnt (entsel "\nPick Ent:")) (setq pt0 (cadr PickedEnt)) (setq pt0 ( getpoint pt0 "\nPick direction to offset:")) (setq i 0) (while (setq OffsetVal (getreal "\nOffset Distance:")) (setq OffsetVal (+ i OffsetVal)) (command "_Offset" OffsetVal PickedEnt pt0 "") (setq i OffsetVal) ) (princ) )




Reply With Quote

Bookmarks