CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

?
CAD discussions, advices, exchange of experience

CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedPolyline with attributes?

 Post Reply Post Reply
Author
DamonB View Drop Down
Newbie
Newbie


Joined: 16.Dec.2014
Location: United States
Using: AutoCad 2015
Status: Offline
Points: 7
Direct Link To This Post Topic: Polyline with attributes?
    Posted: 04.Feb.2015 at 13:54
Hey guys,
 
I lay a lot of gas lines down, and they are rarely ever a straight shot from point a to point b, so we use polylines and do segmented zig zags across our maps. This works fine, except I have been tasked with taking an inventory of each line in our system. I have to go through all of our maps and manually pull all info off of each line and record it into excel. I can not do this with the way our system is currently. I would like to set this up so that in the future, recording inventory will take a fraction of the time. I want to make it so that when I draw my polyline, it asks me to define attributes like you would do a block. Then I can put in all of my vital information and when the time comes I can run data extraction, and have all of the information sent to an excel spreadsheet in a couple of minutes. I was going to make a block or a dynamic block to do this, but the polylines are so different that it just doesn't seem feasible to do it this way. some are only 30 feet long, others are 21,000. I can't make and save a block for every line I draw, so is there a way to simply add attributes to a Pline I've just drawn? I've also considered entering my parameters in the properties, but I would like it to prompt me for the information much like it does the attributes when you insert a block. Any help is appreciated.
Back to Top
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
Direct Link To This Post Posted: 04.Feb.2015 at 17:13
I would use a dynamic block (with attributes) of a line one unit long then after inserting it I would stretch it the length I need. 

What attributes would you be assigning to these lines?

Would the attributes be visible or invisible?
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>

Back to Top
DamonB View Drop Down
Newbie
Newbie


Joined: 16.Dec.2014
Location: United States
Using: AutoCad 2015
Status: Offline
Points: 7
Direct Link To This Post Posted: 04.Feb.2015 at 17:22
Originally posted by John Connor John Connor wrote:

I would use a dynamic block (with attributes) of a line one unit long then after inserting it I would stretch it the length I need. 
I've tried this a few ways now. The problem with using a single line like this is that the line snakes and zig zags. This is why I have the interest in the polyline. The closest thing I've come to is using about 6 broken segments under one dynamic block, inserting it, and orienting the segments into one crooked line, complete with the attributes I need. The problem with this is knowing how many segments I am going to need. some could have up to 50 segments, some may have 1.

What attributes would you be assigning to these lines?
I work for the gas company. and these are all gas lines. I will need to incorporate the year of installation, material, coating, nominal size, job # and pressure.

Would the attributes be visible or invisible?
Invisible
Back to Top
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
Direct Link To This Post Posted: 04.Feb.2015 at 17:23
One dynamic block for every segment.

Never mind.  Bad idea.


Edited by John Connor - 04.Feb.2015 at 17:34
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>

Back to Top
DamonB View Drop Down
Newbie
Newbie


Joined: 16.Dec.2014
Location: United States
Using: AutoCad 2015
Status: Offline
Points: 7
Direct Link To This Post Posted: 04.Feb.2015 at 18:02
Right, then I would end up entering the attributes over and over again. To put this into the simplest terms, I currently use a polyline, this can follow the path of the pipeline just fine, and it's fast. Faster than if I used a bunch of broken lines. So I'd like to continue using polylines.
 
I need attributes, or some form of text values, that I can directly associate with the drawn polyline. Then when inventory time comes next year I can run data extraction and be done very quickly. A standard block will not work as it is frozen and this "block"/polyline will differ each time it is used. A dynamic block may be possible but it has yet to make a solution apparent.
 
I find it hard to believe that this isn't something that is done fairly commonly. Someone has to have done this before. Even if there is a lisp routine to run a polyline and convert it to a block or something. I've just exhausted everything I can think of. It's driving me crazy.
Back to Top
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
Direct Link To This Post Posted: 04.Feb.2015 at 18:38
It is done just not with plain AutoCAD.
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>

Back to Top
Jerry88 View Drop Down
Newbie
Newbie


Joined: 31.Jan.2015
Location: United States
Using: AutoCAD2007
Status: Offline
Points: 2
Direct Link To This Post Posted: 05.Feb.2015 at 02:13
Hello:
I am an accountant who spent years as a computer programmer and have a possible solution.
I would keep all my data in an Excel spread sheet.
Then enter the data in the AutoCAD drawings as a SCHEDULE. 
Draftsmen and Architects use schedules all the time as OLE objects with outside references.
You keep all your data, locations, lengths, maintenance in Excel and access it from AutoCAD.
Jerry in Boise
Back to Top
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
Direct Link To This Post Posted: 05.Feb.2015 at 11:55
Anything involving AutoCAD and an Excel spreadsheet is going to be an old school solution at best.  It time the company looks at a GIS mapping system for building intelligence into their mapping.  The payoff over the long term will make the investment well worth the initial cost of new software and training.
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>

Back to Top
DarylEP View Drop Down
Newbie
Newbie


Joined: 05.Feb.2015
Location: Bahamas
Using: AutoCAD 2015, Inventor 2015
Status: Offline
Points: 1
Direct Link To This Post Posted: 05.Feb.2015 at 19:22
One suggestion would be to create a multileader Style with a block containing attributes, then when you draw a line insert the leader for that segment. My suggestion would be to keep your attributes to a minimum. Information like Material, Coating and such could be better linked to an Excel table. The lengths of pipes can be done thru a Data Extraction.
DarylEPC
Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,105 seconds.