- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to figure out how (vla-offset) works with polylines. My findings so far:
- blue indicates the offset
- draw order is indicated by the numbers
- each group of polyline segments has been joined into 1 polyline
- offsetting is done using (vla-offset (vlax-ename->vla-object (car (entsel))) 4) at the command line
In the first column, offsets seem to follow these rules:
- Individual PLINE drawn left to right = offset below
- PLINE right to left = above
- PLINE top to bottom = left
- PLINE bottom to top = right
However, as shown in the second column in the picture, when the original pline is exploded and a particular segment is deleted and replaced with a PLINE segment with a reversed drawing order, the offset gets flipped. Seems to be the case with closed plines as well.
Is all this correct? Is there a more comprehensive vla-offset reference somewhere?
To give more context, I'm trying to offset a given polyline (at least 2 segments and up to 4) so that the offset is always on the outside of the polyline, no matter what changes are made to the entity to be offset before the offset function is used. If there's a better method for doing this than using vla-offset let me know! (Also, I plan on making a separate algorithm for joining connected lines or groups of lines and polylines into just polylines and then going from there).
Thanks!
Solved! Go to Solution.