TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Peter2 on December 11, 2017, 03:04:58 AM
-
There are 2 similar questions, but no answers:
Trim hatch by layer / https://www.theswamp.org/index.php?topic=53379.msg580946#msg580946
How to trim hatch object? / https://www.theswamp.org/index.php?topic=39580.msg480057#msg480057
Situation:
- I have a simple "wall": some parallel lines, hatches between it
- I want to trim the wall between two lines
-> see attachment
Manual editing - Basic problem:
- In manual editing with mouse, the hatches don't accept a selection with "fence" or "crossing".
- If a selection set contains hatches (e.g. lines plus hatches), the entire selection set will be ignored.
- The selection of the hatches has to be done click by click.
Lisp coding:
- Same behaviour as described above
- When I start with a "select" command (ssget fence) I can select all objects.
- But when sending them to the trim-command ("command trim trimlines (ssname 1) (ssname 2)"), they don't have the right position to trim. They don't trim between the lines (where I defined the fence for selection), they trim between the beginning of the object and the first line.
Question:
- What to do?
- How to trim hatches between two lines (defined via 4 points)?
Have a fine day!
-
This does the job :
(prompt "\n Select Edge for cutting : ") )
)