Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Polyline linetype

g.stratoudaki
Explorer

Polyline linetype

g.stratoudaki
Explorer
Explorer

Hello,

when I draw a polyline I can't change  the linetype or the color of each segment separately as the thickness.

How I can do that with pedit commant  or with another command or a combination of commands ?

It is very important to me to solve this problem.

Thanks

G.

0 Me gusta
Responder
Soluciones aceptadas (1)
5.469 Vistas
7 Respuestas
Respuestas (7)

imadHabash
Mentor
Mentor

Hi,

 

as i understand you ... you may need to select the polyline then press Ctrl +1 and start change all proprieties that you need . 

Imad Habash

EESignature

0 Me gusta

cadffm
Consultant
Consultant

In theory, you can do that with heavy polylines, but in practice it does not work!

(one polyline, different colors for different vertex)

 

Explode Pline to Lines..

Sebastian

0 Me gusta

Kent1Cooper
Consultant
Consultant
Solución aceptada

@g.stratoudaki wrote:

....

when I draw a polyline I can't change  the linetype or the color of each segment separately as the thickness.

How I can do that with pedit commant  or with another command or a combination of commands ?

....


Be careful about your terminology.  What you can change separately for each segment is the width, not the thickness.  Thickness has a specific meaning in AutoCAD, and it's not  the same as width in Polylines -- it's up off the page in the Z direction.  A Polyline's thickness is the same for the entire object, as are its color and linetype and linetype scale and Layer and so on.  A Polyline has both width(s) and  thickness, and either or both can be zero or otherwise.

 

No, you can't assign linetype or color for segments individually with PEDIT.  You would have to either:

 

A)  As @cadffm said in Post 3, Explode the Polyline, and do it to the resulting lines and arcs.  You will, however, lose any width(s)  that the segments had in the original Polyline, since Lines and Arcs can't have width.

 

B)  If you want to keep non-zero width(s), you can break up the Polyline into separate one-segment Polylines, using something like PolylineSubdivide.lsp with its PSD command, available here.  You will, however, lose the beveling of ends where they meet the other former segments.

 

EDIT:

 

C)  If a Polyline is made up of line segments only  that have the same width throughout, and continuous linetype, you can duplicate that with the TRACE command.  That will result in separate Trace objects for each segment, and will maintain the beveled ends of the separate pieces where they meet, and they can be given different colors [or put on different Layers, etc.].  However, Traces can't have non-continuous linetypes [you can assign one, but it won't display that way], and they can't be arc-shaped, only straight.  But if the conditions are as described, duplicating such a Polyline with TRACE could probably be automated easily enough into a command with AutoLisp.

 

In any case, if you want the results to be one object as the original Polyline was, you would need to define them together into a Block, or if you want them sort of like one object, you could Group them together.

Kent Cooper, AIA

g.stratoudaki
Explorer
Explorer

Thanks for your help but I don't solve the problem. It is very urgent to me to find a lisp so to change the linetype or the color of a polyline, per example with 4 segments. I will use this result in the polyline to describe 2 segments with continuous linetype  and the other 2 segments with dashdot linetype. It's not usefull to me to exlode the polyline in 4 segments because I want to count one object

 

G.

0 Me gusta

cadffm
Consultant
Consultant

Once again clearly:

The object POLYLINE or LWPOLYLINE can not accept your desired presentation.
(You can save the information in POLYLINE, but these changes would never be displayed.

 

It's not working!

 

 

 

Sebastian

0 Me gusta

Kent1Cooper
Consultant
Consultant

@g.stratoudaki wrote:

.... It is very urgent to me to find a lisp so to ... describe 2 segments with continuous linetype  and the other 2 segments with dashdot linetype. It's not usefull to me to exlode the polyline in 4 segments because I want to count one object ....


That is, as @cadffm said, simply not possible within one Polyline.  You can make the Exploded result into one object by defining the pieces as a Block, as I mentioned at the end of Post 4, but whether that is useful depends on what you want to do  with it as one object.  For instance, you will not be able to see its overall length in the Properties box, as you can with a single Polyline, nor do certain editing operations on it [e.g. Offset/Trim/Extend].  But if all you need it to be one object for is to be able to manipulate it all together in certain other ways [e.g. Move/Copy/Rotate/Array], a Block could be a workable solution.

Kent Cooper, AIA
0 Me gusta

cadffm
Consultant
Consultant

Some Workarounds attached

 

Sebastian

0 Me gusta