EXPLODE DASHED POLYLINES AND HATCH TO SEGMENTS

EXPLODE DASHED POLYLINES AND HATCH TO SEGMENTS

sanetdikkumbura1950
Advocate Advocate
1,341 Views
6 Replies
Message 1 of 7

EXPLODE DASHED POLYLINES AND HATCH TO SEGMENTS

sanetdikkumbura1950
Advocate
Advocate

Hi,
How to explode a polylines and hatch like this? with same scale and same geolocation.
Please help

0 Likes
1,342 Views
6 Replies
Replies (6)
Message 2 of 7

Patchy
Mentor
Mentor

Two different ways:

Explode the hatch.

Modify the flatten routine to include polyline will do.

0 Likes
Message 3 of 7

sanetdikkumbura1950
Advocate
Advocate

@Patchy The polyline is not broken into segments.

0 Likes
Message 4 of 7

VincentSheehan
Advisor
Advisor

I use the WMFOUT to export the polylines then WMFIN to bring them back into AutoCAD as separate segments.

Vincent Sheehan

Sr. Civil Designer
Poly In 3D Blog

0 Likes
Message 5 of 7

Patchy
Mentor
Mentor

I have to find that routine, it's online somewhere.

The one I'm having is a combined and coded.

 

0 Likes
Message 6 of 7

Valentin_CAD
Mentor
Mentor

@sanetdikkumbura1950 ,

 

Use the EXPLODE Command to separate the hatch and the LINEXP.LSP to explode the linetypes (use the APPLOAD command to load).

 

ValentinWSP_0-1696508461815.png

 

 

 



Select the "Mark as Solution" if my post solves your issue or answers your question.

Seleccione "Marcar como solución" si mi publicación resuelve o responde a su pregunta.


Emilio Valentin

0 Likes
Message 7 of 7

Kent1Cooper
Consultant
Consultant

@Valentin_CAD wrote:

Use the EXPLODE Command to separate the hatch and the LINEXP.LSP to explode the linetypes ....


[I agree with others about simple EXPLODE for Hatch patterns.]

 

Three things I don't like about LINEXP:
The resulting pieces are all 2D ["heavy"] Polylines, not Lines from straight objects, or Arcs from Circles or Arcs, or Elliptical arcs from Ellipses, or shorter Polylines from original Polylines;

On curves, they are not 2D Polyline arcs, or partial Ellipses, but are made up of many short line segments.

On Circles at least [I haven't tried all possible object types, so maybe also in some others], the segment positioning doesn't match the pattern of the original Circle.

 

Try my BreakUp.lsp routine, >here<, to improve on those things.

 

Here's an example of some differences between a BreakUp command and LINEXP:

Kent1Cooper_0-1696515375230.png

This happens to be DIVIDE2 linetype, but results are similar in others.

The result of BU-DIVIDE2 on the left aligns with the Circle's dash/gap/point pattern.  Its arcs are true Arc objects, and its points are Point objects.

The LINEXP result on the right doesn't generate its pattern in the same way as the original Circle.  And its "arcs" are 2D Polylines of [in this case] 25 very short line segments.  And its "points" are 2D Polylines of zero length.

 

BreakUp.lsp isn't fully "correct" yet -- see the notes at the top.  This topic is encouraging me to work the kinks out further.  It also has a pattern-generation difference in full Ellipses, though it results in true partial Ellipse objects [and Point objects in linetypes involving dots].  And on Polylines, it assumes linetype generation is on whether or not it is for a particular one.  [LINEXP does some weirder things with Polylines involving arc segments with linetype generation on, though it does better if it's off.]  And it requires you to use the command specific to the linetype result you want -- it does not [yet] read the current linetype of a selected object.  And it knows the drawing's linetype scale, but works as if an object has a linetype scale of 1 -- it doesn't [yet] read other-than-1 linetype scale on an object.  Those are some of the things I want to work on.

Kent Cooper, AIA
0 Likes