Jump to content

splines&lines intersections ?


Recommended Posts

hi there ! newbie, glad to be here.

 

i have no specific experience in macros&automation in autocad, but im very interesting to learn about it.

 

so, here is my little 2-d problem :

 

i have a grid constisted by lines and some curves in spline entity.

 

i need to extract in some way the coordinates of the intersections between the splines and the grid !!

 

the way i follow until now, is too complicated and demands much time (that i havent). More specific, i mark the intersections one by one, using the "point" command, since first ive put the origin to my coordinate system (the grid is my coordinate system), and then marking the points and writing down the "list" command, i obtain a text including the coordinates that im seeking for (furthermore i have to re-form the text, in order only the coordinates without other text to be obtained ).

 

Does anyone knows a faster way ??

 

thanx in advance

Link to comment
Share on other sites

  • 2 weeks later...

One way that would be faster is to insert a block at each intersection. Then when you do an attribute extraction, amongst the information of the block is the insertion X,Y coordinates of the block. You can choose to extract only this information which then goes into excel or a data file.

 

The block can be a simple one like a cross, but because it is a block, you can get the information out. :D

Link to comment
Share on other sites

One way that would be faster is to insert a block at each intersection. Then when you do an attribute extraction, amongst the information of the block is the insertion X,Y coordinates of the block. You can choose to extract only this information which then goes into excel or a data file.

 

The block can be a simple one like a cross, but because it is a block, you can get the information out. :D

 

Thats what I do and if it can be improved I would be very keen to hear.

Link to comment
Share on other sites

Not sure if it would be any better than what you are already doing but there's a lisp posted here in the forum called PO2TXT written by Fuccaro, that lists points to a txt file like this :

364.2119 ; 153.9238 ; 4.5000
356.9890 ; 118.2579 ; 4.5000
309.0690 ; 124.7824 ; 0.0000
275.0524 ; 152.7754 ; 0.0000
239.3318 ; 166.2459 ; 0.0000
264.5440 ; 211.0347 ; 0.0000
334.1973 ; 209.1100 ; 4.5000
325.7932 ; 198.3127 ; 4.5000
297.8635 ; 167.1718 ; 4.5000
259.7417 ; 138.6528 ; 2.0000
239.3416 ; 80.6587 ; 2.0000

 

let me know if you can't find it in a search and I'll hunt it up...

Link to comment
Share on other sites

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...