+ Reply to Thread
Results 1 to 10 of 10

Thread: Polyline Width

  1. #1
    Forum Newbie
    Using
    AutoCAD 2008
    Join Date
    Apr 2010
    Posts
    3

    Default Polyline Width

    Registered forum members do not see this ad.

    My first post here, so please be gentle with me.

    I have generated a series of polylines - these represent roads within a road network. I need to change the widths of the polylines to represent the traffic flows on the roads as a ratio to the lowest flow. The flows and the ratios are contained in an excel spreadsheet. The question is is it possible to automate this process as I am likely to do this more than once as the traffic flow numbers come from a traffic model and is likely to change.

    Please be gentle with me as I am fairly new to AutoCAD - I only work with the basic stuff in the AutoCAD.

    Many thanks.

  2. #2
    Super Moderator rkmcswain's Avatar
    Computer Details
    rkmcswain's Computer Details
    Operating System:
    Windows 7 Pro x64
    Motherboard:
    Intel DZ77RE-75K
    CPU:
    i7-3770K 3.50GHz
    RAM:
    32GB
    Graphics:
    Nvidia Quadro 2000
    Primary Storage:
    125GB SSD
    Secondary Storage:
    500GB SATA
    Monitor:
    ASUS 27" / ASUS 24"
    Discipline
    Civil
    Using
    Civil 3D 2013
    Join Date
    Sep 2005
    Location
    Houston
    Posts
    3,633

    Default

    Do you happen to be running AutoCAD Map (as opposed to vanilla AutoCAD)?

  3. #3
    Forum Newbie
    Using
    AutoCAD 2008
    Join Date
    Apr 2010
    Posts
    3

    Default

    Quote Originally Posted by rkmcswain View Post
    Do you happen to be running AutoCAD Map (as opposed to vanilla AutoCAD)?
    I have not heard of AutoCAD Map - so I guess the answer is no I am not running AutoCAD Map.

  4. #4
    Senior Member Fire_col's Avatar
    Computer Details
    Fire_col's Computer Details
    Operating System:
    Windows 7
    Discipline
    Construction
    Fire_col's Discipline Details
    Occupation
    Contracts/Design Engineer
    Discipline
    Construction
    Using
    not applicable
    Join Date
    Feb 2010
    Location
    Nottingham/Derby UK
    Posts
    185

    Default

    Run the polyline edit command, PEDIT.
    The command bar will ask you: Select polyline or [Multiple]:
    Type M and hit enter if you want more than one line to have the same properties.
    The command bar will then give you a series of options to choose. Type W for width.
    Command bar will now ask that you specify the new width for all segments. Simply type in your desired width. Et voila! Your line is now at it's desired width.

    As you already know your flows and ratios though, I would be tempted to create specific linetypes and layers for each one with the width preset, then it's easy peasy and you won't have to run PEDIT.
    If all else fails, go outside for a fag (cigarette).

  5. #5
    Forum Newbie
    Using
    AutoCAD 2010
    Join Date
    Apr 2010
    Location
    greece-athens
    Posts
    1

    Default

    there is another way to do it more mass...
    quick select
    polylines
    choose the width (i.e. equal/grater....)
    and you change the width in the 'properties' box

  6. #6
    Forum Newbie
    Using
    AutoCAD 2008
    Join Date
    Apr 2010
    Posts
    3

    Default

    I think you guys missed my point - I need a fully automated process to do this via VBA (or similar). Basically each road has different flows. I don't really want to sit down and go through hundreds of polylines and changing its widths one by one and don't forget they would all have different widths (different volumes).

  7. #7
    Senior Member Fire_col's Avatar
    Computer Details
    Fire_col's Computer Details
    Operating System:
    Windows 7
    Discipline
    Construction
    Fire_col's Discipline Details
    Occupation
    Contracts/Design Engineer
    Discipline
    Construction
    Using
    not applicable
    Join Date
    Feb 2010
    Location
    Nottingham/Derby UK
    Posts
    185

    Default

    I don't think you'd need a routine for that. If you use layers for the diffent roads then all you would need to do is isolate that layer for that road the run Pedit select all, or bring up properties as Nassie suggested and change the width there
    If all else fails, go outside for a fag (cigarette).

  8. #8
    Quantum Mechanic ReMark's Avatar
    Computer Details
    ReMark's Computer Details
    Operating System:
    Windows 7 Pro 64-bit
    Computer:
    Thinkmate
    Motherboard:
    Intel DX58SO2 LGA1366 X58
    CPU:
    Intel i7-960 Quad-core 3.20GHz 8MB cache
    RAM:
    12GB (3x4GB) PC3-106000 DDR3
    Graphics:
    nVidia Quadro 4000, 2GB GDDR5
    Primary Storage:
    150GB Velocipraptor 10,000 rpm
    Secondary Storage:
    none
    Monitor:
    Dell P24LLH - 24" wide screen LCD
    Discipline
    See details...
    ReMark's Discipline Details
    Occupation
    CAD Draftsman/Designer...chemical manufacturing.
    Discipline
    See details below.
    Details
    I work for a specialty chemical manufacturer. I do a little bit of everything from P&IDs to civil to architectural and structural.
    Using
    AutoCAD 2013
    Join Date
    Nov 2005
    Location
    Norwalk, CT USofA
    Posts
    33,138

    Default

    The OP doesn't want to use Pedit or any other normal AutoCAD command. I think he would need a custom lisp routine to accomplish the task.
    "I have only come here seeking knowledge. Things they wouldn't teach me of in college." The Police

    Eat brains...gain more knowledge!

  9. #9
    Super Moderator rkmcswain's Avatar
    Computer Details
    rkmcswain's Computer Details
    Operating System:
    Windows 7 Pro x64
    Motherboard:
    Intel DZ77RE-75K
    CPU:
    i7-3770K 3.50GHz
    RAM:
    32GB
    Graphics:
    Nvidia Quadro 2000
    Primary Storage:
    125GB SSD
    Secondary Storage:
    500GB SATA
    Monitor:
    ASUS 27" / ASUS 24"
    Discipline
    Civil
    Using
    Civil 3D 2013
    Join Date
    Sep 2005
    Location
    Houston
    Posts
    3,633

    Default

    Quote Originally Posted by ML_Halcrow View Post
    I think you guys missed my point - I need a fully automated process to do this...
    I understood what you meant. AutoCAD Map is built to do things like this. Without it, you'll need a custom app.

  10. #10
    Super Moderator rkmcswain's Avatar
    Computer Details
    rkmcswain's Computer Details
    Operating System:
    Windows 7 Pro x64
    Motherboard:
    Intel DZ77RE-75K
    CPU:
    i7-3770K 3.50GHz
    RAM:
    32GB
    Graphics:
    Nvidia Quadro 2000
    Primary Storage:
    125GB SSD
    Secondary Storage:
    500GB SATA
    Monitor:
    ASUS 27" / ASUS 24"
    Discipline
    Civil
    Using
    Civil 3D 2013
    Join Date
    Sep 2005
    Location
    Houston
    Posts
    3,633

    Default

    Registered forum members do not see this ad.

    Quote Originally Posted by Fire_col View Post
    I don't think you'd need a routine for that. If you use layers for the diffent roads then all you would need to do is isolate that layer for that road the run Pedit select all, or bring up properties as Nassie suggested and change the width there
    But that doesn't solve the problem of how to automatically update the geometry when the database changes.

Similar Threads

  1. Polyline Width
    By Scoobydoo in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 6
    Last Post: 30th Dec 2010, 06:54 pm
  2. Polyline Width
    By Tconn in forum AutoCAD Drawing Management & Output
    Replies: 5
    Last Post: 20th Jun 2007, 09:36 am
  3. Polyline Width
    By Tconn in forum AutoCAD Drawing Management & Output
    Replies: 2
    Last Post: 19th Apr 2006, 05:51 pm
  4. Polyline width
    By viriato79 in forum AutoCAD Beginners' Area
    Replies: 5
    Last Post: 31st Mar 2006, 02:10 pm
  5. polyline width
    By cadam in forum AutoCAD Drawing Management & Output
    Replies: 9
    Last Post: 5th Feb 2004, 03:31 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts