Message 1 of 9
Customization - Extracting info from CAD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I would like to some customization on DATAEXTRACTION+insert blocks.
Actually I want each vertex coordinate of polyline simply in csv file.
I am doing as below in 2 steps.
step - 1
Placing circle on each vertex of polyline using below said lisp
(defun c:mkc ( / obj c i x y e) (vl-load-com) (setq *model-space* (vla-get-modelspace (vla-get-activedocument (vlax-get-acad-object)))) (setq obj (vlax-ename->vla-object (car (entsel)))) (setq c (vlax-get obj "Coordinates") i 0 e (vla-get-elevation obj) ) (repeat (/ (length c) 2) (setq x (nth i c) y (nth (1+ i) c) ) (vla-addcircle *model-space* (vlax-3d-point (list x y e)) 1.0) (setq i (+ i 2)) ) (princ) )
Step - 2
Using -DATAEXTRACTION I am getting coordinates of drawn circles.
I have to do these for more than 100 drawings every time..!!!!
So here I want to customize step-1 & step-2. is it possible to combine step-1&step-2 together as one lisp?
So When I run combined lisp it has to ask me to select poly line and then it will place circle on each vertex then extract coordinate of each circle (output xls or csv).