Author Topic: How to determine start point of a polyline?  (Read 8362 times)

0 Members and 1 Guest are viewing this topic.

yarnstormer

  • Guest
How to determine start point of a polyline?
« on: July 29, 2015, 11:14:45 AM »
I'm editing a large file that I did not begin that contains a number of lines to indicate sewer lines. I edit the beginning and end Z coordinates to properly elevate the line and use a custom "above w slope" label to label the distance, pipe size and slope.

Some of the lines are drawn in the wrong direction. I know how to switch the direction but what I don't know is if there is a way to know in advance if it's drawn wrong. I have to change the label style, curse appropriately, then reverse direction and redo the invert elevations. In some cases I don't want to have the label change immediately because I want to compare my cad calculated slopes to what I assume are manually calculated slopes from when this project was begun. So it would be nice to know in advance which ones were buggered up.

I am drawing in Civil 3D but this not a true sewer network - it's just a map we maintain for planning purposes.

Any ideas for some sort of query I can use to check the direction before labeling? maybe some elusive grip info?

Workaround - create a label style with just an arrow and insert it on the line perhaps so I don't have to dump my current labeling until I'm sure I have new info entered. sounds tedious.


ronjonp

  • Needs a day job
  • Posts: 7529
Re: How to determine start point of a polyline?
« Reply #1 on: July 29, 2015, 11:25:21 AM »
Maybe a quick visual cue would be to make a linetype with '>' as the character and apply it to all your lines. Then you can easily see the direction.

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

yarnstormer

  • Guest
Re: How to determine start point of a polyline?
« Reply #2 on: July 29, 2015, 11:36:30 AM »
Good idea - can always switch em back after if I don't like the look.

Keep em coming!

ronjonp

  • Needs a day job
  • Posts: 7529
Re: How to determine start point of a polyline?
« Reply #3 on: July 29, 2015, 11:51:39 AM »
Can you post the file with a "right & wrong" scenario?

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: How to determine start point of a polyline?
« Reply #4 on: July 29, 2015, 12:27:25 PM »
I'm editing a large file that I did not begin that contains a number of lines to indicate sewer lines. I edit the beginning and end Z coordinates to properly elevate the line and use a custom "above w slope" label to label the distance, pipe size and slope.

Some of the lines are drawn in the wrong direction. I know how to switch the direction but what I don't know is if there is a way to know in advance if it's drawn wrong. I have to change the label style, curse appropriately, then reverse direction and redo the invert elevations. In some cases I don't want to have the label change immediately because I want to compare my cad calculated slopes to what I assume are manually calculated slopes from when this project was begun. So it would be nice to know in advance which ones were buggered up.

I am drawing in Civil 3D but this not a true sewer network - it's just a map we maintain for planning purposes.

Any ideas for some sort of query I can use to check the direction before labeling? maybe some elusive grip info?

Workaround - create a label style with just an arrow and insert it on the line perhaps so I don't have to dump my current labeling until I'm sure I have new info entered. sounds tedious.

I would suggest you convert them to feature lines....it will make assigning the elevations and calculating slopes much easier.
Be your Best


Michael Farrell
http://primeservicesglobal.com/

yarnstormer

  • Guest
Re: How to determine start point of a polyline?
« Reply #5 on: July 29, 2015, 12:39:31 PM »
I have not worked with feature lines. Can you give me a quick explanation?
Would I have to redo each label etc?

This is the entire sewer network for a largish county. I hesitate to reinvent the wheel in case some one else wants to edit the drawing down the line and is not familiar with feature lines either. I get fussed at for using mtext!

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: How to determine start point of a polyline?
« Reply #6 on: July 29, 2015, 12:50:05 PM »
well then....perhaps feature lines are not the way to go...

except the labels would be dynamic

perhaps a different option is to create them as Parcel Lines and then put elevations on them....

or draw them as pipes...easier to put elevation on them...

Just use Create Pipe Network from Object.....


The reason I'm pointing you in this direction....is eventual output as SDF (spatial data format)

You are technically creating a GIS data set and that SDF file could then be attached to MAP and maintained using MAP moving forward
Be your Best


Michael Farrell
http://primeservicesglobal.com/

yarnstormer

  • Guest
Re: How to determine start point of a polyline?
« Reply #7 on: July 29, 2015, 01:01:20 PM »
The reason I'm pointing you in this direction....is eventual output as SDF (spatial data format)

You are technically creating a GIS data set and that SDF file could then be attached to MAP and maintained using MAP moving forward


You are preaching to the choir man but I'm sorta stuck with this plan for now. I am at least allowed to give GIS dept info now. Took a couple of years to get to that point. Engineers + GIS = drama. At least in my hood.

Here's at bit of the file. Not a huge hassle just thought there might be a way to tell what direction lines were going that I was unaware of.

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Re: How to determine start point of a polyline?
« Reply #8 on: July 29, 2015, 01:10:50 PM »
I would suggest you convert them to feature lines....it will make assigning the elevations and calculating slopes much easier.

Close Civil3D and reboot your computer

You sound like a damn Autodesk salesperson.

:)
TheSwamp.org  (serving the CAD community since 2003)

ronjonp

  • Needs a day job
  • Posts: 7529
Re: How to determine start point of a polyline?
« Reply #9 on: July 29, 2015, 02:05:25 PM »
The reason I'm pointing you in this direction....is eventual output as SDF (spatial data format)

You are technically creating a GIS data set and that SDF file could then be attached to MAP and maintained using MAP moving forward


You are preaching to the choir man but I'm sorta stuck with this plan for now. I am at least allowed to give GIS dept info now. Took a couple of years to get to that point. Engineers + GIS = drama. At least in my hood.

Here's at bit of the file. Not a huge hassle just thought there might be a way to tell what direction lines were going that I was unaware of.
Seems like the linetype would be the easiest visual indicator if you're doing this by hand anyways.


Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: How to determine start point of a polyline?
« Reply #10 on: July 29, 2015, 02:08:40 PM »
I would suggest you convert them to feature lines....it will make assigning the elevations and calculating slopes much easier.

Close Civil3D and reboot your computer

You sound like a damn Autodesk salesperson.

:)

Nah, you know I don't SELL the software....I do however provide TRAINING and or Continuing Education services for professionals at all levels.
Be your Best


Michael Farrell
http://primeservicesglobal.com/

yarnstormer

  • Guest
Re: How to determine start point of a polyline?
« Reply #11 on: July 29, 2015, 02:10:50 PM »

[/quote]
Seems like the linetype would be the easiest visual indicator if you're doing this by hand anyways.
[/quote]

I like it. I'll just pull all of my sewer files up and straighten them all out once and for all.

ronjonp

  • Needs a day job
  • Posts: 7529
Re: How to determine start point of a polyline?
« Reply #12 on: July 29, 2015, 02:14:09 PM »

If you want to send me the file, I could probably whip up some code to orient them correctly for you. Doing this by hand seems extremely tedious.

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: How to determine start point of a polyline?
« Reply #13 on: July 29, 2015, 02:36:11 PM »
Actually another method...would be to convert them to parcel lines en mass

This combined with segment direction label style will allow you to know what direction they are going in all at once.

Combine this with the  _AeccReverseFeature command will then let you reverse them if they are going the wrong way.

Side benefit they can then be exported as SDF
Be your Best


Michael Farrell
http://primeservicesglobal.com/

yarnstormer

  • Guest
Re: How to determine start point of a polyline?
« Reply #14 on: July 29, 2015, 02:54:15 PM »

If you want to send me the file, I could probably whip up some code to orient them correctly for you. Doing this by hand seems extremely tedious.

Interesting. How would you decide which/how to orient them? High end is the start? What would happen if some were not yet elevated? It is the process of elevating that is aggravating.

Could you write something that let me pick a line near one end, manually enter an elevation for that end, and would then request an elevation for the other end. If possible it might reverse the line by using the higher elevation as the new starting point.
I honestly don't care what direction they "think" they are going I just get aggravated that I can't tell in properties which end is which until I change the elevations.