Auto Trim objects outside of a 2d boundary

Auto Trim objects outside of a 2d boundary

Anonymous
Not applicable
8,204 Views
8 Replies
Message 1 of 9

Auto Trim objects outside of a 2d boundary

Anonymous
Not applicable

I have created a pattern that I would like to overlay on a boundary. Once I have overlaid the pattern, I would like to delete any of the pattern that is not within the boundary. There are tons of lines that need to be deleted. Some lines intersect with the boundary, other lines sit solely outside the boundary. I need to delete and trim accordingly so that only the pattern that lies inside the boundary reains. As a side note, any line of the pattern that intersects with the boundary will need to be trimmed so that the only remaining portion of this intersecting line lies within that boundary. This will take hours unless there is an automated function to use. I have attached a picture of a sample desired output. Does anyone have any suggestions?

0 Likes
8,205 Views
8 Replies
Replies (8)
Message 2 of 9

3wood
Advisor
Advisor

Here provide 2 methods to do it automatically.

 

Method 1

1. Trim around the boundary  with command EXTRIM (Express Tools)

2. Select all entities inside the boundary with SMARTSEL, then press Esc to cancel the selection.

3. Command ERASE -> ALL -> Remove -> Previouse -> Enter.

 

Method 2

1. Make a block from all entities except the boundary.

2. Clip the block with the boundary polyline. You can use CLIPIT command.

2. Explode the block with EXPLODEALL, settings as below:

explodeall1.PNG

Message 3 of 9

vishnuprakashr
Contributor
Contributor

Why doesnt "EXPLODEALL" command doesnt work in my 2016 version of auto cad inspite of having a 3 year licence?

0 Likes
Message 4 of 9

Alfred.NESWADBA
Consultant
Consultant

Hi;

 

>> Why doesnt "EXPLODEALL" command doesnt work in my 2016 version of auto cad

You do know that this is not an AutoCAD command, it's a tool that has to be loaded.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
Message 5 of 9

vishnuprakashr
Contributor
Contributor

could u tell me how to  load this tool?

0 Likes
Message 6 of 9

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> could u tell me how to  load this tool?

Follow the link 3wood provided in method 2.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 7 of 9

JDMather
Consultant
Consultant

Can you attach your file here?

I am surprised that extrim in Method 1 didn't work.

 

If Extrim doesn't work - then for the add-in in Method 2, click on the hyperlink.

 

Hyperlink.png

 


-----------------------------------------------------------------------------------------
Autodesk Inventor 2019 Certified Professional
Autodesk AutoCAD 2013 Certified Professional
Certified SolidWorks Professional


0 Likes
Message 8 of 9

Kent1Cooper
Consultant
Consultant

What bounds the pattern to the right and above and below?  That pattern certainly looks as though it could be defined pretty easily into a Hatch pattern, in which case you could just apply it within a boundary, and wouldn't have to lay it in over more area than you need and then cut it back.  Even without defining all of it into one pattern, you could use a parallel-lines pattern three times with a little care about the scaling, rotation and origin, and get the same effect.

Kent Cooper, AIA
0 Likes
Message 9 of 9

Kent1Cooper
Consultant
Consultant

@Kent1Cooper wrote:

...  That pattern certainly looks as though it could be defined pretty easily into a Hatch pattern....


Such as this:

*LATTICE5, Lattice of parallel lines in 5 directions
30, 0,0, 0,1
60, 0,0, 0,.8660254
90, 0,0, 0,1
120, 1,0, 0,.8660254
150, 1,0, 0,1

 

EDIT:  And here's a more fully symmetrical-ized and also kind of interesting pattern [horizontals in the added first line]:

 

*LATTICE6, Lattice of parallel lines in 6 directions
0, 0,0, 0,.8660254
30, 0,0, 0,1
60, 0,0, 0,.8660254
90, 0,0, 0,1
120, 1,0, 0,.8660254
150, 1,0, 0,1

Kent Cooper, AIA
0 Likes