How do I setup a block to trim a line on insertion?

How do I setup a block to trim a line on insertion?

Anonymous
Not applicable
3,547 Views
7 Replies
Message 1 of 8

How do I setup a block to trim a line on insertion?

Anonymous
Not applicable

I created blocks that I want to be able to insert onto a line and have the part of the line that is within an area of the block (a circle area) to be trimmed automatically. Is there a way to set this up while avoiding solid hatches and wipeout? With solid hatches I have issues with plotting and wipeout as far as I can tell only works if you set up the draw order correctly for the objects in the drawing.

 

Thanks,

 

Andrew

0 Likes
Accepted solutions (1)
3,548 Views
7 Replies
Replies (7)
Message 2 of 8

Libbya
Mentor
Mentor

There is no way to have a dynamic block alter the line work that is outside the block.  Wipeout is the only way I know of to do what you are asking for.  Yes, the draworder needs to be correct.  You might be able to make something work using a text object with a background mask within the block, but it would require the same draworder as a wipeout and would be more difficult to size correctly.   

Message 3 of 8

Anonymous
Not applicable

I have access to existing blocks that sort of do what I want, but I do not have someone over here to ask how the blocks were setup. How these blocks work is when I go to insert them (from a tool palette), I am prompted in the command line to either <B> break a line or <S> insert the block in space. If I select break a line, I can click on a line to insert the block and the line is trimmed where the block is inserted. Looks like some scripting to me. Thoughts? 

0 Likes
Message 4 of 8

Libbya
Mentor
Mentor
Accepted solution

Yes, that tool palette tool will implement some script/lisp routine prior to block insertion.  That's not part of the dynamic block functionality, though.  You might want to ask on the LISP forum.  

0 Likes
Message 5 of 8

Anonymous
Not applicable

I would create wipeouts within the blocks that you normally use for this feature. Its easy to set up and use. Simply use WIPEOUT command and create your boundary for it. Use DRAWORDER to set both objects to the front with the linework you want shown ontop of the wipeout. This would let you insert blocks and select your point of intersection and the block will then not show any linework that is below it.

0 Likes
Message 6 of 8

Anonymous
Not applicable

I don't want there to be the possibility of the block going behind the line effectively making the wipeout useless.

0 Likes
Message 7 of 8

Anonymous
Not applicable
If that happens you can use a simple DRAWORDER command and put it above the line or the line below the block.
0 Likes
Message 8 of 8

Anonymous
Not applicable

Why not go the Wipeout route, but once placed (in the correct drawing order) group or even block the line & block together. this will avoid the two objects from changing drawing order relative to each other.

 

Hope this helps,

 

Alan

0 Likes