
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
as the title suggests, I have the following problem:
Given an entity E (in most cases a pline), a point P on E, and a number d, draw a line L of length d which starts at point P and is perpendicular to E, i.e. perpendicular to the tangent vector to E at P.
Now, I solved this problem a bit dirty: simply offset E by a distance d, which gives E', and find the closest point on E' to the point P. Call that point P'. Then the line along P and P' is the sought line L.
The problem with this is that I'm creating these auxiliary offset lines with "command", and in general I don't want them to be visible. So I did a ton of google-ing, but didn't find how I could offset lines with entmake, for example (I assume entmake can simply create an entity and add it to the drawing database without actually displaying it? Perhaps I'm wrong). Also, this while procedure seems a bit dirty and I wonder if there is a more clean, straightforward way to do this. I also tried to set the color of the offset lines to the background color, tried to adjust transparency, etc., but still these lines are recognizable - perhaps there don't exist invisible lines (colorwise) at all?
Any suggestions are highly appreciated, as usual.
Solved! Go to Solution.