News:

Please remember to do a search before you ask a question!

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

Trouble Closing Polyline

Started by EnvCons, August 19, 2024, 02:49:35 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

EnvCons

I have tried connecting polylines on this series of objects (lines and arcs) originally created by a surveyor to no avail. I did see a problem where two arcs did not connect and with an earlier version connected those,  but I still was not able to close the graphics. Other than the two radii that do not connect on the right upper section, can anyone find where the existing polylines do not meet? I have to believe that is the problem, but I can't find where they are.

ThanksYou cannot view this attachment.   
EnvCons
TurboCAD 2024 Pro 64-bit V31, Build 77.1, AlienWare Aurora R12 11th Gen Intel(R) Core(TM) i9-11900KF @3.50GHz, NVIDIA GeForce RTX 3080 ti, Windows 11 Pro

Andy H

#1
Quote from: EnvCons on August 19, 2024, 02:49:35 PMOther than the two radii that do not connect on the right upper section,

Erm,  If you meant the two in the blue circle, on the attached.  They are not connected.  something odd happens when joining on my system, part of the finished polyline is hidden.  NO idea why.  I assume its something on my computer, but I guess it could be the file.  Anyway. try the following to find a problem.

Assuming only one problem arc (which there is in this case).  A way to check is - Select join polyline tool, and engage 'Auto Join' button on the inspection bar.  Click anywhere, to make the auto join.  Go into node edit mode, and select the joined polyline,  Look for two 'RED' nodes,  these are the start and end of the polyline.  and shows where it is not closed. And where some tweaking is needed.

Once tweaked, in node edit mode, Hover over a node, right click and choose close. (or use the inspection bar icon).

Andy H

OK,  Figured out what was causing part of the joined poly to be invisible on my computer.   After auto joining, The setting - Line pattern alignment - is being turned off. ticking it in selection properties, or object properties, shows the whole 'new' polyline.  I haven't a clue why it gets turned off, nor what difference it makes to TC.

PCSteel

I can confirm the same behaviour on my system Andy and had given up. I don't know how you managed to track that down! Well done.
John@PC Steel

Core i7-6700 CPU
16GB Ram
64 Bit
Windows 10 Home
TurboCAD 2015 Pro Platinum 64 bit Build 90.0
TurboCAD 2023 Platinum 64 bit Build 63.3

Jeff_in_90620

I was able to close everything by using Chain Polyline, which resulted in 5 distinct segments.

You cannot view this attachment.

I was then able to use Meet 2 Lines to close everything.

You cannot view this attachment.

There were small differences in endpoint locations for some Polylines, but no apparent difference in endpoint locations for other Polylines.

You cannot view this attachment.

You cannot view this attachment.


Jeff
 
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

Alvin Gregorio

Quote from: EnvCons on August 19, 2024, 02:49:35 PMI have tried connecting polylines on this series of objects (lines and arcs) originally created by a surveyor to no avail. I did see a problem where two arcs did not connect and with an earlier version connected those,  but I still was not able to close the graphics. Other than the two radii that do not connect on the right upper section, can anyone find where the existing polylines do not meet? I have to believe that is the problem, but I can't find where they are.

ThanksYou cannot view this attachment. 
The Join Polyine works*, upon intially opening the file and trying it.

I think the problem lies in the fact that:
1) All the entities' Line Patterns are set to "By Layer"
2) That Layer's Line Style is the imported "DGN Style 4", which has is Dash|Space|Dash|Space|(repeat).  Respective values=20.8|10.4|.026|10.4
3) The entities' Line Pattern Dash Scale (and therefore resultant Joined Polyline) is set to 480 (multiply by the Drawing's Space Units, which is inches)

>That results in too much space between the Line Style items (Dashes & Spaces).
>Change that Line Pattern Dash Scale to something much less (about 20 and it starts looking coherent), and the Join Polyline works*.
>Or change all the entities Line Style (Pen Pattern) to Continuous; or change the PRESERVE Layer Line Style to Continuous.

*there are still imperfections around the edges; but it will probably serve your purpose.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

EnvCons

I just now was able to get back on here and see the comments. The same thing about half of the poly line disappearing happened to me.

I'll review what everyone said but it looks like one or more of you figured it out and provided a workable solution.

Thank you all!

Mike
EnvCons
TurboCAD 2024 Pro 64-bit V31, Build 77.1, AlienWare Aurora R12 11th Gen Intel(R) Core(TM) i9-11900KF @3.50GHz, NVIDIA GeForce RTX 3080 ti, Windows 11 Pro

Jeff_in_90620

Quote from: EnvCons on August 21, 2024, 02:16:24 PMI just now was able to get back on here and see the comments. The same thing about half of the poly line disappearing happened to me.

When I used Join and half of the polylines disappeared, rotating the View brought them back.  Very odd.


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

EnvCons

Alvin,
I changed to continuous.  It was the easiest fix for me.

Thank you,
Mike
EnvCons
TurboCAD 2024 Pro 64-bit V31, Build 77.1, AlienWare Aurora R12 11th Gen Intel(R) Core(TM) i9-11900KF @3.50GHz, NVIDIA GeForce RTX 3080 ti, Windows 11 Pro

EnvCons

Ok, now I'm really confused with this one.  It shows as closed and I cannot find an issue with the nodes although I didn't have time to check them all.  But it gives me a bad number for the area of the polygon. I drew this polgon to avoid the pick point or path hatching as the drawing had too many layers that gave me issues with drawing a larger polygon and then lessing out the interior through that process. Not perfect but it did the job, or so I thought.

Related to all of the above can someone tell me why this is not giving me an accurate area?

Thanks,
Mike
EnvCons
TurboCAD 2024 Pro 64-bit V31, Build 77.1, AlienWare Aurora R12 11th Gen Intel(R) Core(TM) i9-11900KF @3.50GHz, NVIDIA GeForce RTX 3080 ti, Windows 11 Pro

Andy H

OK.  Something is wrong internally (inside TC) with the polyline.  The first node I grabbed pulled apart (that was just luck)  Only although not connected it would not close.  I used the split tool, to sever various sections, and the node / vertex count in that area was wrong, i.e. not as expected.  The vertex count in selection palette should be the number of line segments + 1. Your showed about 10 too many.

Black polyline in the file is the original with the nodes pulled apart. I split the polyline at that section and redrew just that bit, then used join polyline.  The node count is better (Blue).

Lastly I used the chain polyline tool on the original profile (before I moved the nodes) This is the Red profile.  The node count is lower, because where chain meets a perfectly straight line consisting of multiple nodes. it remakes it as a single line.

I removed you hatch (and changed the background colour, as I prefer white).  See if any of these are what you require.  then you can choose the method best suited for when you alter the one in your drawing.

EnvCons

I've played around with chain polyline, but still don't understand what I'm supposed to do each time.  I see it connects some portions but then you have to select the chain polyline again.  I thought you could just continue around the polyline.  In any case, when I tried it just froze up (I drew in the blue circle) since snipping tool took my cursor out of the frame.
EnvCons
TurboCAD 2024 Pro 64-bit V31, Build 77.1, AlienWare Aurora R12 11th Gen Intel(R) Core(TM) i9-11900KF @3.50GHz, NVIDIA GeForce RTX 3080 ti, Windows 11 Pro

EnvCons

I don't understand what you did to "split" the two line segments.  When I put in edit node mode I can "break" the segment on the top left, but I don't see how to do that using the edit node function. Can you elaborate?

Thanks,
Mike
EnvCons
TurboCAD 2024 Pro 64-bit V31, Build 77.1, AlienWare Aurora R12 11th Gen Intel(R) Core(TM) i9-11900KF @3.50GHz, NVIDIA GeForce RTX 3080 ti, Windows 11 Pro

Andy H

Give me an hour and I'll knock up a video of the methods I used.

Andy H

#14
See if this video helps.  It may be a bit fast, but one can always pause the video to read the text.  Chain polyline can be good for finding where gaps are, when trying to join multiple polyline.  If the chain fails you know there is a problem (often a gap) with the original polyline/s. In this case,  although the original is faulty, because the nodes are touching, the chain can work out where it needs to go.

Andy

Oh.  As I say in the video.  I have not got a clue, if the area is now correct, or still way off.   There are probably better or easier ways around the problem,  but these two methods worked for me.

Alvin Gregorio

#15
Quote from: EnvCons on August 19, 2024, 02:49:35 PMI have tried connecting polylines on this series of objects (lines and arcs) originally created by a surveyor to no avail. I did see a problem where two arcs did not connect and with an earlier version connected those,  but I still was not able to close the graphics. Other than the two radii that do not connect on the right upper section, can anyone find where the existing polylines do not meet? I have to believe that is the problem, but I can't find where they are.

ThanksYou cannot view this attachment. 
Isn't this the exact same issue we had the other day.
That we resolved exactly as I will detail below.

>The Pens' "Line Width Scale System" are set to "Device Width".
>And the Pen/Line Pattern is "By Layer".
>And that PRESERVE Layer "Line Style" is something that got imported when you opened the original designer's drawing-- "DGN Style 4":


>And the inserted entities with all that set-- the Lines and Arcs-- have their Pen "Dash Scale" set to 480 (which is crazy-large; probably something that occurred in the import translation/conversion).  That Line Style is made up of this (as shown above; all values are per the current Drawing's Space Units).  With the Dash Scales being that large, we cannot see the Dashes and Spaces that make up the Line Style.
_____
>With all that above, when we "Join Polyline" and TurboCAD reconciles all the end/start-points, some of the segments are completely displayed as a Space in the Line Style, so it seems like the disappeared, but they didn't actually.

>You can, after the Join Polyline, select the new closed Polyline and assign a much smaller Dash Scale-- in the range of 1 to 12 seems to look good.

or
_____
>Change the PRESERVE Layers's Line Style to CONTINUOUS; or change all the entity's Pen/Line to CONTINUOUS.  (Or reduce all the Pens' Dash Scale to something much smaller, like
>Then do your Join Polyline (Local Menu "Auto Join" active) or whatever it is that you are ultimately wanting to do.

That, plus first cleaning up that one area that Andy encircled wherein the two Arcs' end/start points run past each other a bit, causing an intersect of the Arcs rather than the Arcs being coincident (their end/start points touching-- having the exact same coordinates).
____
I think most of this can be alleviated/mitigated if you just initially set your Drawing's Space Units to match the Surveyor's.  Surely the Surveyor doesn't work in inches.
____
How big is this thing supposed to be?  In the X direction?  6197 INCHES?  or 6197 FEET?
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

nikkipollard

#16
Alvin - when you work with metric drawings line pattern scales need to be bigger then they are when you work with imperial drawings - a mm is much smaller then an inch. - Autocad and Autocad clones have two different files for line pattern definitions.

Another trick you can try.
Checking the alignment option on the Pen page in properties - (or "line pattern alignment" in SI palette.) Forces a dash at each each end of segments in a polyline. - small segments wont disappear.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Alvin Gregorio

#17
Quote from: nikkipollard on September 06, 2024, 08:57:06 PMAlvin - when you work with metric drawings line pattern scales need to be bigger then they are when you work with imperial drawings - a mm is much smaller then an inch. - Autocad and Autocad clones have two different files for line pattern definitions.

Another trick you can try.
Checking the alignment option on the Pen page in properties - (or "line pattern alignment" in SI palette.) Forces a dash at each each end of segments in a polyline. - small segments wont disappear.
If I remember correctly, I believe EnvCons works somewhere in or near New Jersey USA.
So I doubt the surveyor or EnvCons works in Metric.
The Drawing came in with Inches Space Units, further causing me to believe Metric was never used in any iteration of this survey or drawing work.
________
I think the important thing for those following along to keep in mind is-- The values of Items within Line Styles-- Dash and Space Lengths, X and Y Offset, (others?)-- are per the current drawing's Space Units at time of insertion.
  Example:  If the Drawing Space Units are in Inches, a Line Style with a Dash item in it that has a Length of 1 when that Line Style (aka Pen Pattern) is used in a Line in the drawing space, and that Line's Dash Scale is set to 1, in World or Device Width Pen Width Scaling, that Dash will measure 1-inch.
            If that same Line Style were used in a drawing that had Space Units set to Feet, that Dash item within that Line's Pen Pattern would be 1-foot long (all Pen properties having been set as per the preceding paragraph).
_______
Yes, after having fixed the little arcs' intersection that Andy encircled, and doing the Join Polyline, simply enabling the Alignment option in the Pen Properties attends to the seemingly disappearing segment issue.
  It really depends on how the user wants it to look/present on which option of this or one of the ones I offered in my previous post they want to go with.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Alvin Gregorio

EnvCons comes to us often with this or very similar work with this or very similar questions.

I think next time, it would be good to get to the root cause in their workflow and advise improvement in procedures that will more simplicate this and help them achieve what they are principally wanting to achieve.

It has to do with the import, that's for sure.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Dean

Quote from: nikkipollard on September 06, 2024, 08:57:06 PMAlvin - when you work with metric drawings line pattern scales need to be bigger then they are when you work with imperial drawings - a mm is much smaller then an inch. - Autocad and Autocad clones have two different files for line pattern definitions.

Another trick you can try.
Checking the alignment option on the Pen page in properties - (or "line pattern alignment" in SI palette.) Forces a dash at each each end of segments in a polyline. - small segments wont disappear.

I think Nikki is correct,nice and simple... :) when you understand autocrud.
I had no problem autojoining the polyline,with pen alignment On.
The polyline data is correct.
"What do I know, I'm still learning".
Lenovo Legion T5  Intel(R) Core(TM) i7-14th Gen 20 cores Nvidia RTX 4070 Super 16GB Windows 11 home TurboCad 2025 with Animation Lab 6.0

Andy H

Regarding posts number #15 (Alvin) to posts #22 (Dean).    Am I correct in assuming you are referring to Mike's original post #1 (and its attached file).   

No problem,  Just so I know, as I'm answering a different problem, not connected to the first file. I thought Mike had the original one sorted in post #8.

Alvin Gregorio

Quote from: Andy H on September 07, 2024, 08:54:34 AMRegarding posts number #15 (Alvin)...    Am I correct in assuming you are referring to Mike's original post #1 (and its attached file).
Yes, correct
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Andy H

Thanks Alvin.   I'll bow out of this thread as its getting confusing. :) 

EnvCons

All of this is incredibly detailed. And yes, this is a continuing problem I get when obtaining DWG files from engineers.  I usually get a message saying the line scale pattern (or something similar) is unrealistically detailed or scaled (can't recall the exact message), but I don't know which lines so what would be really cool is if I could click on that message and it automatically provides a "realistic" pattern or at least alerts me to the layer or type of line or selected them all. 

Anyway, I do such simple line drawings but have to work with way too detailed plans, so I usually ask the engineer to dumb the drawing down to as little information as I need in order to do my environmental plans.

I was advised years ago to take the DWG file and save as TCW then put that data into a new file.  That seemed to help for certain things like overall scaling and issues with linear dimensions that were giving me problems, but recently with surveyors polygons not being connected and having to try to fix them, that is where I was struggling.

In the end, where polylines don't meet I just end up isolating them and drawing a new polyline on top using snaps, but when snapping to hundreds of points on arcs invariably something goes awry.

I tried many of the suggestions here some of which worked for one polyline but not for another.

My biggest problem is I don't do this on a daily basis and forget stuff! Ha.  But thank you all for looking into this and figuring out the issues.

Mike

 
EnvCons
TurboCAD 2024 Pro 64-bit V31, Build 77.1, AlienWare Aurora R12 11th Gen Intel(R) Core(TM) i9-11900KF @3.50GHz, NVIDIA GeForce RTX 3080 ti, Windows 11 Pro

Alvin Gregorio

Quote from: EnvCons on September 10, 2024, 07:50:31 AMAll of this is incredibly detailed. And yes, this is a continuing problem I get when obtaining DWG files from engineers.
If you can provide us with the original .dwg file(s) you are being provided by the engineers, we can probably guide you better.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

nikkipollard

Quote from: EnvCons on September 10, 2024, 07:50:31 AMAll of this is incredibly detailed. And yes, this is a continuing problem I get when obtaining DWG files from engineers.  I usually get a message saying the line scale pattern (or something similar) is unrealistically detailed or scaled (can't recall the exact message), but I don't know which lines so what would be really cool is if I could click on that message and it automatically provides a "realistic" pattern or at least alerts me to the layer or type of line or selected them all. 

Anyway, I do such simple line drawings but have to work with way too detailed plans, so I usually ask the engineer to dumb the drawing down to as little information as I need in order to do my environmental plans.

I was advised years ago to take the DWG file and save as TCW then put that data into a new file.  That seemed to help for certain things like overall scaling and issues with linear dimensions that were giving me problems, but recently with surveyors polygons not being connected and having to try to fix them, that is where I was struggling.

In the end, where polylines don't meet I just end up isolating them and drawing a new polyline on top using snaps, but when snapping to hundreds of points on arcs invariably something goes awry.

I tried many of the suggestions here some of which worked for one polyline but not for another.

My biggest problem is I don't do this on a daily basis and forget stuff! Ha.  But thank you all for looking into this and figuring out the issues.

Mike

 

Just say Ok. When the drawing opens select everything and change the line pattern scale to about 10 x the print scale. (you might have to play with the value) .

AutoCads pattern scaling system is a nightmare. There are global settings as well as local settings and system variables. I don't think the global setting is taken into account when the dwg is converted.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

EnvCons

Nickki,
Do you mind describing in a bit more detail what you are referring to with those two scales?  I just opened a drawing and it said "world line pattern is unrealistically detailed, try again with a larger dash scale".

After I select all, and choose properties where do I see the scales you are referring to?  The model space printing scale under Page Setup - Model Space is 1:1.

After selecting all and choosing properties, I guess I could fill in the dash scale under Pen?
EnvCons
TurboCAD 2024 Pro 64-bit V31, Build 77.1, AlienWare Aurora R12 11th Gen Intel(R) Core(TM) i9-11900KF @3.50GHz, NVIDIA GeForce RTX 3080 ti, Windows 11 Pro

nikkipollard

#27
Quote from: EnvCons on September 25, 2024, 12:23:39 PMNickki,
Do you mind describing in a bit more detail what you are referring to with those two scales?  I just opened a drawing and it said "world line pattern is unrealistically detailed, try again with a larger dash scale".

After I select all, and choose properties where do I see the scales you are referring to?  The model space printing scale under Page Setup - Model Space is 1:1.

After selecting all and choosing properties, I guess I could fill in the dash scale under Pen?
My apologies I was looking at the selection info palette when I typed that.
If you are changing properties in the selection info palette it is on the pen page and called "line pattern dash scale". (If you select a lot of items the selection palette won't show properties.) Select everything and type Ctrl + f. On the pens page it is called "Dash Scale". Choose the type of scale by changing scaling.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

EnvCons

Thank you, but I'm still not sure what you mean by 10x. 10x what?

Mike
EnvCons
TurboCAD 2024 Pro 64-bit V31, Build 77.1, AlienWare Aurora R12 11th Gen Intel(R) Core(TM) i9-11900KF @3.50GHz, NVIDIA GeForce RTX 3080 ti, Windows 11 Pro

nikkipollard

10 multiplied by the printing scale
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h