Jump to content

Recommended Posts

Posted

Hai!

 

This is probably an easy question for those that have been around longer than me, or I am just tired, either way, I am confused.

 

What is a LWPOLYLINE? What makes it 'LW'? Why would one use one? How can one draw one?

 

TIA!

  • Replies 23
  • Created
  • Last Reply

Top Posters In This Topic

  • dbroada

    5

  • ReMark

    5

  • Tiger

    5

  • eldon

    3

Top Posters In This Topic

Posted Images

Posted

A lightweight polyline (lwpolyline) is defined in the drawing database as a single graphic entity. The lwpolyline differs from the old-style polyline, which is defined as a group of subentities. Lwpolylines display faster and consume less disk space and RAM.

 

Source: AutoCAD 2013 Help file.

Posted

LWPOLYLINES were introduced in R14 - according to my reference material they use an optimized format that saves memory and disk space. I'm not exactly sure how they are defined but they are controlled with the PLINETYPE system variable (at least in R14).

Posted

So, okey... but.. what are they? Is the LWPOLYLINE what we normally call a POLYLINE or is it something else?

Posted

A 2D polyline is now referred to as a LWPOLYLINE. Draw a polyline and do a LIST on it. Funny thing both Quick Properties and Properties will both refer to it as a polyline.

Posted

my understanding is that it is basically a 2D polyline.

 

If you look at its properties in VBA and I assume the others, a drawn POLYLINE shows as a LWPOLYLINE.

Posted

You drink 10 cups of coffee before 10 a.m. and you'd be speedy too!:shock:

Posted

before 10? its 16:20 here (and probably 17:20 for Tiger)

Posted

If you draw a polyline, then when listed it calls itself an LWPOLYLINE, but shows up in Properties as a Polyline.

 

If you now convert the polyline using CONVERTPOLY to a Heavy polyline, when listed it calls itself a POLYLINE, but shows up in Properties as a 2D Polyline.

 

Not absolutely logical to the ordinary person :shock:

Posted

Uh... no, not absolutely logical... but I can be reasonably certain when the client is talking about LWpolyline, he is talking about a normal polyline..

 

Eldon, heavy and light? What.. why..how... I am to young for this!! :shock:

 

 

 

Updating: ok, reading a bit about it. A Heavy Polyline is the older version of the polyline, it contains info about start and end of all entities, so one node contains the info about both line-ends that connect to that node. A Light polyline is the ..err lighter version with only info about one node in the one node.

 

And now, that I have read that, I understand ReMarks first post :D

Posted
but I can be reasonably certain when the client is talking about LWpolyline, he is talking about a normal polyline..

 

The client may have got hold of some technical words to make as if he knows about it.

 

 

 

Eldon, heavy and light? What.. why..how... I am to young for this!!

 

I think it is all to do with performance enhancement.

Posted

In fact it all becomes much clearer when both types are listed, and you can see how much more information is stored with the Heavy Polyline

 

 

LWPOLYLINE Layer: "0"

Space: Model space

Handle = 2D

Open

Constant width 0.0000

area 16.2907

length 12.0000

 

at point X= 37.4603 Y= 29.9092 Z= 0.0000

at point X= 41.8667 Y= 32.2722 Z= 0.0000

at point X= 47.1998 Y= 27.7380 Z= 0.0000

 

Heavy Polyline

POLYLINE Layer: "0"

Space: Model space

Handle = 2D

Open

starting width 0.0000

ending width 0.0000

area 16.2907

length 12.0000

 

VERTEX Layer: "0"

Space: Model space

Handle = 2E

at point, X= 37.4603 Y= 29.9092 Z= 0.0000

starting width 0.0000

ending width 0.0000

 

VERTEX Layer: "0"

Space: Model space

Handle = 2F

at point, X= 41.8667 Y= 32.2722 Z= 0.0000

starting width 0.0000

ending width 0.0000

 

VERTEX Layer: "0"

Space: Model space

Handle = 30

at point, X= 47.1998 Y= 27.7380 Z= 0.0000

starting width 0.0000

ending width 0.0000

 

END SEQUENCE Layer: "0"

Space: Model space

PlotStyleName: ByLayer

Handle = 31

 

Posted

does that mean a polyline with various widths will show as a heavy polyline?

 

I know I could answer myself but I am away from AutoCAD until I get to work tomorrow.

Posted

Nope,, still a LWPoly. I can convert it though to a HWPoly.

 

LW.jpg

Posted

thanks Tiger, saves me the problem of remembering what I was going to do when I got in this morning.

Posted (edited)

In order to reduce the size of a drawing is always better to use LWPOLYLINE instead 2DPOLYLINE.

Edited by Lazer

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...