- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I was trying to write a lisp but i'm thinking it's too difficult for my basical knowledge.
shortly, i have:
- 1 plan reference object (2d poly/ lw poly): it represent, for example, the alignment of a road (elevation 0);
- a set of target objects (3d polys/lines): representing 3d sections of the road; they intersect the ref.object in xy plan.
i would like to:
- select the ref object (Selected on snapshot)
- select the set of target objects (green on snapshot)
obtaining a 3d poly that is the projection (along z axis) of the ref object onto the target objects (yellow on snapshot), with vertex on xy intersection point and z from target objects in that point.
note: the ref object has original vertex that are not in the xy intersections with the target objects (as you can see from the snapshot), so the final 3dpoly must have vertex on xy intersection (and z from target object) and vertex on ref object's original vertex xy and interpolated z.
i attach the example.dwg of the snapshot, to clarify the problem.
i'm not very sure this could be done with a lisp: i was looking to solve it with a simple (in my opinion) approach, extracting the vertex coords for each entity, then with a mathematical approach obtaining what i want.
another problem is that some target object could not intersect the ref object (so i think it's very important to add, first of all, a step to filter the intersecting target object to exclude the not intersecting ones).
Hope to start a constructive discussion on the argument, it could improve a lot my workflow, and surelly improve my autolisp coding
Thank you all in advance,
Solved! Go to Solution.