AutoLISP to offset closed polyline, hatch, and delete the second polyline [C3D]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi. In our firm, we often created partial hatches within buildings (represented by closed polylines). The process is as follows:
1. We select a closed polyline that was previously drawn and that represents the outline of a building.
2. We offset the polyline 2 units inside, creating a scaled version of the original polyline within the first.
3. We hatch the area within the two polylines with a specific hatch pattern, scale, layer and color.
4. We delete the smaller, inside polyline, leaving the original building outline and the new hatch within.
I'm looking to automate this process in some way. I had some marginal success with the Action Recorder, but it wasn't consistent if the building outline was angled, and I had to always use the rightmost edge of the building. I'm sure AutoLISP can automate this sequence, but I'm a complete beginner.
Can anybody spoonfeed me a script that does what I'm looking for? Thanks a whole ton.