u-x Posted October 24, 2008 Share Posted October 24, 2008 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 Quote Link to comment Share on other sites More sharing options...
u-x Posted November 3, 2008 Author Share Posted November 3, 2008 no one ? Quote Link to comment Share on other sites More sharing options...
eldon Posted November 3, 2008 Share Posted November 3, 2008 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. Quote Link to comment Share on other sites More sharing options...
wannabe Posted November 3, 2008 Share Posted November 3, 2008 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. Thats what I do and if it can be improved I would be very keen to hear. Quote Link to comment Share on other sites More sharing options...
GhostRider Posted November 3, 2008 Share Posted November 3, 2008 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... Quote Link to comment Share on other sites More sharing options...
CarlB Posted November 4, 2008 Share Posted November 4, 2008 At Cadalyst, Bill Kramer (Harry) posted a routine that placed points at all intersections of lines/circles/arcs etc. You could modify the routine to print out x-y coordinates of all intersection points, if that's what you need. http://management.cadalyst.com/cadman/article/articleDetail.jsp?id=101854 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.