You may be look into dxf 10 and 40 of a circle object.
Code to get dxf sth like : (cdr (assoc DXF_code entity_record))
Archive :Code:(setq circleObj (car(entsel "\nSelect circle :"));Get ename of circle object picked (setq e_circleObj (entget circleObj)) ; Get record of Entity Circle (setq CenterPoint (cdr (assoc 10 e_circleObj))) ; Get Center Point by dxf 10 (setq Radius (cdr (assoc 40 e_circleObj))) ; Get Radius by dxf 40
Or maybe use VL:(setq CenterPoint (cdr(assoc 10 (setq e_circleObj (entget(car(entsel "\nSelect Circle :"))))))
Radius (cdr(assoc 40 e_circleObj)))
Code:(setq vla_circle (vlax-ename->vla-object (car (entsel "\nSelect Circle :"))) ;Get VLA Object Circle by (vlax-ename->vla-object ename) center (vlax-get vla_circle 'center) Radius (vlax-get vla_circle 'Radius) )




Reply With Quote


Bookmarks