TheSwamp

CAD Forums => CAD General => Topic started by: jonesy on November 27, 2008, 09:33:26 AM

Title: my polylines have way too many segments!
Post by: jonesy on November 27, 2008, 09:33:26 AM
I have a problem with a drawing I inherited.

The polylines have way too many segments on them. Does anyone have any idea as to what might have caused this AND also will this have any affect on the drawing loading/savingtimes/performance and the size taken up on the network?

Many thanks in advance
T :)
Title: Re: my polylines have way too many segments!
Post by: CAB on November 27, 2008, 09:59:49 AM
Don't know why although when you offset a spline they tend to multiply the number of vertex.
There are several pline simplify routines posted here that will change the number of vertex in a pline.
Title: Re: my polylines have way too many segments!
Post by: jonesy on November 27, 2008, 11:28:35 AM
Thanks CAB, this seems to be on ALL the plines in this drawing. It doesnt look like they've been offset at all.  Some have widths, others are 0 width. I've been using the Pedit command and straightening them, but I'll do a good searcharound for a lisp.

My main concern was the drawing performance with all these extra vertex
Title: Re: my polylines have way too many segments!
Post by: M-dub on November 27, 2008, 01:02:15 PM
It looks to me like that pline was autogenerated somehow.  Why would someone.....    on second thought, never mind.
Title: Re: my polylines have way too many segments!
Post by: Jeff_M on November 27, 2008, 01:03:01 PM
If you have access to Map, the Drawing Cleanup command (under Map Tools) allows you to weed plines. You may need to run it a few times, with a fairly large distance set for the weeding factor, but it should will be faster than pedit'ing them.
Title: Re: my polylines have way too many segments!
Post by: jonesy on November 27, 2008, 01:58:16 PM
If you have access to Map, the Drawing Cleanup command (under Map Tools) allows you to weed plines. You may need to run it a few times, with a fairly large distance set for the weeding factor, but it should will be faster than pedit'ing them.
Thanks Jeff.

No map :( Not anymore. We got rid of it about 6 weeks ago, to move to something more suited to structural work. The IT people even removed Map before installing the Revit suite.
Title: Re: my polylines have way too many segments!
Post by: Jeff_M on November 27, 2008, 02:16:02 PM
OK, well then, does Revit include the Express tools? If so, the Delete Duplicate Objects in the Modify section will do this too. (Command name is Overkill)
Title: Re: my polylines have way too many segments!
Post by: jonesy on November 27, 2008, 02:37:36 PM
OK, well then, does Revit include the Express tools? If so, the Delete Duplicate Objects in the Modify section will do this too. (Command name is Overkill)
This is in AutoCAD (which comes with Revit Suite)I'll take a look tomorrow to see if it works.

Thanks Jeff
Title: Re: my polylines have way too many segments!
Post by: Serge J. Gianolla on November 27, 2008, 04:59:24 PM
I have a problem with a drawing I inherited.

The polylines have way too many segments on them. Does anyone have any idea as to what might have caused this AND also will this have any affect on the drawing loading/savingtimes/performance and the size taken up on the network?

Many thanks in advance
T :)

If you have received the drawing created by MX or even worse 12D their strings have vertices set at 1m interval for instance for generating accurate models but a killer when going to AutoCAD.
Title: Re: my polylines have way too many segments!
Post by: Alan Cullen on November 27, 2008, 05:36:09 PM
Not strickly true with 12D. The number of vertices is determined by the point spacing for alignment strings specified in 12D before export to acad.

But yeah...as a general rule you get a lot of vertices when coming from 12D or MX
Title: Re: my polylines have way too many segments!
Post by: Serge J. Gianolla on November 27, 2008, 06:23:32 PM
Not strickly true with 12D. The number of vertices is determined by the point spacing for alignment strings specified in 12D before export to acad.

But yeah...as a general rule you get a lot of vertices when coming from 12D or MX

Alan,

AutoCAD user but not of the other 2 mentioned, I receive a lot of files though! The MX ones for example will have the vertices located only at the endpoints of a straight string, but 12D will generate them along same straight element at specified intervals. I am curious by what you said, perhaps the 12D users here are not cluey enough to know better. Without going to weeding [with the impact it has on curve representation] is there a way to streamline the strings without losing integrity? This might not be a short answer :lmao:
Title: Re: my polylines have way too many segments!
Post by: Alan Cullen on November 27, 2008, 06:49:41 PM
Serge,

I am a 12D user...have used it for many years.

I'll try for a quick explanation.....

When you create a, or convert to, an alignment string, you can specify the chainage interval (I use 2.5m). Any strings created from the alignment string (e.g. road strings) will then all have points (vertices) at the specified chainage interval (every 2.5m in my case). Unfortunately...if you want curves to be defined properly, you need a tight interval.

The only way around it as I see it is to redraw the strings in acad, which is easy enough to do, but takes time...as does everything.

Any strings representing existing survey will have vertices at all points picked up by the surveyors.
Title: Re: my polylines have way too many segments!
Post by: CAB on November 27, 2008, 09:36:12 PM
Here are two threads to look at.

http://www.theswamp.org/index.php?topic=2024.0

http://www.theswamp.org/index.php?topic=2171.0

If none of the routines do what you need let us know. I have others. :)
Title: Re: my polylines have way too many segments!
Post by: Serge J. Gianolla on November 28, 2008, 12:55:42 AM
Serge,

I am a 12D user...have used it for many years.

I'll try for a quick explanation.....

When you create a, or convert to, an alignment string, you can specify the chainage interval (I use 2.5m). Any strings created from the alignment string (e.g. road strings) will then all have points (vertices) at the specified chainage interval (every 2.5m in my case). Unfortunately...if you want curves to be defined properly, you need a tight interval.

The only way around it as I see it is to redraw the strings in acad, which is easy enough to do, but takes time...as does everything.

Any strings representing existing survey will have vertices at all points picked up by the surveyors.

Thanx for that and hello from Brissie!
Title: Re: my polylines have way too many segments!
Post by: Alan Cullen on November 28, 2008, 02:47:11 AM
No wuckers mate...and cheers from Cairns...... :-)
Title: Re: my polylines have way too many segments!
Post by: jonesy on November 28, 2008, 05:27:15 AM
OK, well then, does Revit include the Express tools? If so, the Delete Duplicate Objects in the Modify section will do this too. (Command name is Overkill)
This works a treat Jeff. Thanks so much :)
Title: Re: my polylines have way too many segments!
Post by: jonesy on November 28, 2008, 05:28:58 AM
Here are two threads to look at.

http://www.theswamp.org/index.php?topic=2024.0

http://www.theswamp.org/index.php?topic=2171.0

If none of the routines do what you need let us know. I have others. :)

Alan, thanks tof the links... saved the "weed" file for future use.

Thanks
T :)
Title: Re: my polylines have way too many segments!
Post by: Alan Cullen on November 28, 2008, 06:09:23 AM
Tracey...just be careful of using "weed"...it can work unexpectedly...as is the way it has been written.

I tend to just trace (no pun intended) over polylines with excessive vertices using osnap END to get the actual polyline I want. Can always U if what I see is not what you want. Doesn't really take that long.

On the other hand, with todays powerful computers, polylines with heaps of vertices shouldn't really be a problem.

Just my 2 cents worth.......
Title: Re: my polylines have way too many segments!
Post by: jonesy on November 28, 2008, 07:48:15 AM
Thanks for the word of warning.

Computers are powerful, but its a PITA trying to find the mid or end of a line when theres that many vertices, so even if theres no direct hit in performance (computer wise) there is a hit on user performance when editing :(
Title: Re: my polylines have way too many segments!
Post by: Alan Cullen on November 28, 2008, 07:51:22 AM
Ahhhhh...suffer my mate.........mwhahaha

 :lmao: :lmao: :lmao:

Set your osnaps.......

 :evil: :lmao: :lmao:
Title: Re: my polylines have way too many segments!
Post by: Alan Cullen on November 28, 2008, 08:10:13 AM
Tracey...a quick way to overcome the problem...draw a straight line on what is visibly a straight line....Then draw arcs (3 point arcs) on the curves. Then note of the arc radius...then delete it and use FILLET and that radius to join the straights. That's what I do, it takes seconds and works fine.
Title: Re: my polylines have way too many segments!
Post by: MP on November 28, 2008, 09:09:36 AM
It's probably only me but every time I see this thread title I hear John Lennon "I've got blisters on mah fingers!".

carry on

:whistle:
Title: Re: my polylines have way too many segments!
Post by: M-dub on November 28, 2008, 09:17:47 AM
It's probably only me but every time I see this thread title I hear John Lennon "I've got blisters on mah fingers!".

carry on

:whistle:

:-D

I think it might be only you, but that's funny.
Title: Re: my polylines have way too many segments!
Post by: Alan Cullen on November 28, 2008, 09:20:12 AM
"I've got blisters on mah fingers!"
and mah hair is a mess
but I promise you baaaabeeey
I will love you none the less.....

second verse........same as the first...woot
Title: Re: my polylines have way too many segments!
Post by: CAB on November 28, 2008, 09:51:30 AM
Alan, thanks tof the links... saved the "weed" file for future use.

Thanks
T :)

Tracey
Use this one as it works better than the Weed version.
 http://www.theswamp.org/index.php?topic=19865.msg244786#msg244786

Gile's works as well as mine.
;;  http://www.theswamp.org/index.php?topic=19865.msg244892#msg244892
Title: Re: my polylines have way too many segments!
Post by: jonesy on November 28, 2008, 09:59:08 AM
Thanks CAB, I'll give them a go when I open "that" drawing on Monday

Cheers
T :)
Title: Re: my polylines have way too many segments!
Post by: Tankman on December 14, 2008, 12:31:24 AM
I have a problem with a drawing I inherited.

The polylines have way too many segments on them. Does anyone have any idea as to what might have caused this AND also will this have any affect on the drawing loading/savingtimes/performance and the size taken up on the network?

Many thanks in advance
T :)

Was the file you're working in generated in some other, other than an AutoDesk, CAD program?
This would be the only place I've experienced what you describe above.
Title: Re: my polylines have way too many segments!
Post by: jonesy on December 14, 2008, 09:41:33 AM
I have a problem with a drawing I inherited.

The polylines have way too many segments on them. Does anyone have any idea as to what might have caused this AND also will this have any affect on the drawing loading/savingtimes/performance and the size taken up on the network?

Many thanks in advance
T :)

Was the file you're working in generated in some other, other than an AutoDesk, CAD program?
This would be the only place I've experienced what you describe above.
Thanks for your answer. I would hope its either been scanned, and some raster/vector program has been run on it, or its come from a different software. I'd hate to think someone is actually drawing plines like this :( But then I thought newer AutoCAD software had some dialog box to warn you if it were not created by Autodesk software?
Title: Re: my polylines have way too many segments!
Post by: Dinosaur on December 14, 2008, 02:31:20 PM
This is a typical result from a vertical such as Land Desktop or Civil 3D when the contours they generate are exploded into polylines or exported into AutoCAD.
Title: Re: my polylines have way too many segments!
Post by: jonesy on December 14, 2008, 02:45:34 PM
I have seens something similar on contours, but these are mainly doors and windows. In fact every polyline with a width had way too many segments. The ones with 0 width still had too many, but not as many.
Title: Re: my polylines have way too many segments!
Post by: Dinosaur on December 14, 2008, 03:32:55 PM
It still sounds like a product of importing a vertical app's object into an autoCAD primitive.  If those polylines were once part of some "smart object" there can be a lot of excess baggage along for the ride.  If those ploylines had been generated by the vertical utilizing the REGION or BPOLY command, you would find a polyline with vertices at every point of intersection by other linework along the resulting boundary once it is exploded out of the original object.
Title: Re: my polylines have way too many segments!
Post by: jonesy on December 14, 2008, 04:18:42 PM
Having worked with verticals in the past, I can certainly see how that can happen, but, for example on one window frame there "should" be one grip for each corner of the window, being that all it is is a rectangle, with no change of shape/direction etc. This rectangle has about 20 grips along each segment, and I get no proxy messages, and no incompatibility messages. The drawing, as far as I am aware, has never been part of a 3d model. I can honestly say that I have never seen this behaviour in a drawing before. :)
Title: Re: my polylines have way too many segments!
Post by: Dinosaur on December 14, 2008, 05:01:51 PM
That is what happens when a polyline is generated with BPOLY or REGION commands - any line that intersets the bounding polyline will create a vertex at that point even if it is on a continuous course.  Think of all the little parts created in a window or door object and all of the potential intersections.