I'm trying to join an arc and a line. I've tried the following:
(setq arc1 (entmakex-arc cen rad ang1 ang2 lyr))
(setq pt1 (vlax-curve-getStartPoint arc1))
(setq pt2 (vlax-curve-getEndPoint arc1))
(setq lin1 (entmakex-line pt1 pt2 lyr))
(vl-cmdf "._join" arc1 lin1)
'entmakex-arc' and 'entmakex-line' are functions to make the respective entities (params should be self-explanatory). This code draws the arc and the line properly but will not perform the join. I've searched the internet for an hour now, and cannot find anything that works. What is wrong with this code? Or, if there's a better way to approach this task, please tell. I've tried variations adding an empty string "" to the end of the vl-cmdf parameters, but nothing works.
Note that the entities are drawn in AutoCAD and I can manually join them together, so the endpoints match up, etc. But, I need to automate the join part. Any help is appreciated.