See the top rated post in this thread. Click here

Results 1 to 5 of 5

Thread: Apply line object data field to linetype?

  1. #1
    Active Member
    Join Date
    2000-10
    Posts
    59
    Login to Give a bone
    0

    Thumbs down Apply line object data field to linetype?

    Anybody know if there is a quick and dirty way to read the value of an object data field an apply a linetype accordingly? Example, I am importing ESRI .SHP files for water lines that have a field for the pipe size, I have linetypes for various pipe sizes i.e. "water8" for "8" Water".

    If it's not quick and dirty, it's not worth the effort, I can just annotate the line with the value, but the linetype would clean it up a little for me.

    Bruce

  2. #2
    Civil Engineering Moderator MHultgren's Avatar
    Join Date
    2000-12
    Location
    Indy West (Not West Indies)
    Posts
    1,447
    Login to Give a bone
    0

    Lightbulb Re: Apply line object data field to linetype?

    Possibly create a Lookup table for the linetypes? They would need to be defined in the drawing before running the Import though. Might take two steps instead of automatically updating as the linework comes in, but it may be a bit faster of an option.

  3. #3
    Member
    Join Date
    2004-06
    Posts
    19
    Login to Give a bone
    0

    Default Re: Apply line object data field to linetype?

    Hi,

    Possibly post a piece of dwg or

    Table Name:
    Field name:
    Field Type:

    Give the details I can prepare a routine to do your request.

    Best Regards,
    Prabhakar.B
    bprabhakar001@gmail.com

  4. #4
    Active Member
    Join Date
    2000-10
    Posts
    59
    Login to Give a bone
    0

    Default Re: Apply line object data field to linetype?

    Wow! Thanks for the quick responses and help, I will try both methods. I have attached a small piece of the drawing.

    Bruce
    Attached Files Attached Files

  5. #5
    Geospatial Moderator Jmurphy's Avatar
    Join Date
    2000-11
    Location
    TN/KY Area
    Posts
    1,640
    Login to Give a bone
    1

    Default Re: Apply line object data field to linetype?

    Use linetypes by layer then when you import create the lines on the layer obtained from the data. Another option is do a property query to change the line type after you import.

Similar Threads

  1. 2014: Added object data fields to Polyline, but object data is empty or zero
    By tntdraftsol in forum AutoCAD Map 3D - General
    Replies: 6
    Last Post: 2015-07-24, 12:20 PM
  2. linking field data to other object data
    By keith_velishek in forum AutoLISP
    Replies: 28
    Last Post: 2014-03-23, 03:53 AM
  3. Command line interface for MEP object data
    By RobertB in forum AMEP General
    Replies: 0
    Last Post: 2009-07-24, 04:11 PM
  4. Field data lost at data link synchronization
    By brennsvette in forum AutoCAD 3D (2007 and above)
    Replies: 0
    Last Post: 2008-09-17, 03:07 PM
  5. Replies: 1
    Last Post: 2007-04-07, 12:39 PM

Posting Permissions

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