getting first intersecting 3dsolid and intersection point value along a line in autolisp.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I want to check for the first 3d solid along a line. This line would be a starting point and the direction. The idea of this being, inserting a dynamic block at the starting point and extend it till the first intersection using dynamic stretch and parameter.
This has to be independent of current view. And the code will always run in WCS (even if the current view is different).
I've shown here the line (just for representing, I'd just have a starting point and its angles) and there are three random 3d solids on it's path. I want to get the first intersection point (on the green cube face). note that these are just to get across the idea and may not be actual situations. the 3d solid may have any shape.
This 3d solid can be in any layer or have any color.
How can I go about getting this point?
I'm using AutoCAD Mechanical 2020.
Thanks in advance for any help!