Jump to content

Recommended Posts

Posted (edited)

Hello Everyone,

I'm looking for a code that's can help me to export coordinates for the point of intersection .

please look to the attached file be more clear 

 

 

 

 

P.jpg

Edited by Kalsefar
Posted
(defun c:test (/ )
  (if
    (setq ss (ssget '((0 . "point"))))
     (repeat (setq i (sslength ss))
       (setq e (entget (ssname ss (setq i (1- i)))))
       (princ (cdr (assoc 10 e)))
       
     )
     
  )
)

 

Posted (edited)

1 If you set osmode to 32 it will find the intersection point.

 

2 If its a block then generally the intersection is the insertion point.

 

3 Like hosneyalaa if a "Point".

 

You need to clarify which it is.

 

There is so many export points to csv file examples out there just google.

Edited by BIGAL
Posted

Assuming the image shows two separate lines, obtain the coordinates the line end points from DXF groups 10 & 11 and then use the inters function to calculate the point of intersection.

Posted

Like lee if its a symetrical 2 lines around mid point pick 1 line.

 

(setq lin (car (entsel "\nPick line")))
(setq pt (mapcar '/ (mapcar '+ (vlax-curve-getStartPoint lin) (vlax-curve-getEndPoint lin)) '(2 2 2)))

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...