+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 19
  1. #1
    Junior Member
    Using
    Map 3D 2013
    Join Date
    Jan 2014
    Posts
    15

    Default AutoFill in Object Data from a 3d Line in AutoCAD MAP 2013

    Registered forum members do not see this ad.

    Hi all,

    Need to get this sorted as soon as possible. It is beyond me im afraid .
    I use AutoCAD Map 2013 - attached is a sample dwg and a picture of what i require. Each line represents where the data needs to go.
    Also explained here:

    Basically i have object data attached to a 3d line for a drainage pipe.
    In the properties-Geometry of Autocad it has the Start X, Start Y, Start Z, End X. End Y,End Z of the line and all i require is each to automatically fill out my Object Data table - ODipe
    Start X = DS_Pipe_E
    Start Y = DS_Pipe_N
    Start Z = DS_IL

    End X = US_Pipe_E
    End Y = US_Pipe_N
    End Z = US_IL

    And then i just need the Length of the line to fill out the Length in the Object Data Table.

    Once i understand the concept i will need to do the same for the property connections and then pits. but am happy to try get one solved first.
    This will literally save me hours every week and it has to be possible.
    Any help will be so greatfully appreciated.
    Attached Images
    Attached Files

  2. #2
    Senior Member Emigrato's Avatar
    Discipline
    See details...
    Emigrato's Discipline Details
    Discipline
    See details below.
    Details
    Cisco CCNA
    Using
    Map 3D 2006
    Join Date
    Sep 2011
    Posts
    165

    Default

    No way, I'm sorry.
    The START/END geometric fields are automatically fed up by the display list, so you cannot 'em edit.
    You'd better add those custom 6 start/end as Object Data, sir.


  3. #3
    Super Member Murph_map's Avatar
    Computer Details
    Murph_map's Computer Details
    Operating System:
    Win 7, Win 8
    Computer:
    HP something or other and the laptop is an HP too
    RAM:
    2 gigs or 6 gigs in Laptop
    Discipline
    Utilities
    Murph_map's Discipline Details
    Occupation
    Boats and campers renting and repairs
    Discipline
    Utilities
    Details
    GIS and Map making.
    Using
    Map 3D 2016
    Join Date
    Feb 2011
    Location
    TN or KY depends if I'm at work or home.
    Posts
    920

    Default

    You can do it with a custom lisp routine or export to sdf format then data connect to it and run a number of calculations then import back into map and create OD tables.
    If you just need a table showing the data you can try dataextract, why does it need to be object data?
    Murph

    Need a boat or camper for the weekend?

  4. #4
    Luminous Being
    Using
    Civil 3D 2016
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    9,819

    Default

    Know about Dspec but dont use it.

    The D-SPEC standard (Drainage & Telecommunications – Optical Fibre standard) was created to enable Local Government authorities around Australia to participate in the use of a single specification when dealing with the creation of new council assets.
    You need a commercial product and these are out there yeah but you will have to pay. The pipe is only 1 part of a huge number of objects that you need to export out. Get the entries wrong and your dspec will be rejected. I would google first to see who can supply a Autocad version. Are you in WA?

    Dont like to dampen others enthusiasm but this one option will end up a can of worms. Alternatively it may be a viable commercial product.

    A few to start Civilcad, Geocomp consulting, Listech
    A man who never made mistakes never made anything

  5. #5
    Junior Member
    Using
    Map 3D 2013
    Join Date
    Jan 2014
    Posts
    15

    Default

    Quote Originally Posted by Emigrato View Post
    No way, I'm sorry.
    The START/END geometric fields are automatically fed up by the display list, so you cannot 'em edit.
    You'd better add those custom 6 start/end as Object Data, sir.

    I have no idea what you just said? i dont want to edit them i jsut want to copy paste them - which can be done physically i just want to automate it.

  6. #6
    Junior Member
    Using
    Map 3D 2013
    Join Date
    Jan 2014
    Posts
    15

    Default

    Quote Originally Posted by Murph_map View Post
    You can do it with a custom lisp routine or export to sdf format then data connect to it and run a number of calculations then import back into map and create OD tables.
    If you just need a table showing the data you can try dataextract, why does it need to be object data?
    Yea i gathered i would need a lisp routine. i just dont know how to extract the correct data - and then get it back into the object data. how do i extract the co-ords to a spreadsheet and then import them back? help?
    it needs to be the object data so then for that pipe all the information can be exported together - linked to the object for input into a GIS system. as Big Al said below - its for a Dspec submission. so it needs to be in the object data.

  7. #7
    Junior Member
    Using
    Map 3D 2013
    Join Date
    Jan 2014
    Posts
    15

    Default

    Quote Originally Posted by BIGAL View Post
    Know about Dspec but dont use it.



    You need a commercial product and these are out there yeah but you will have to pay. The pipe is only 1 part of a huge number of objects that you need to export out. Get the entries wrong and your dspec will be rejected. I would google first to see who can supply a Autocad version. Are you in WA?

    Dont like to dampen others enthusiasm but this one option will end up a can of worms. Alternatively it may be a viable commercial product.

    A few to start Civilcad, Geocomp consulting, Listech
    Hi Big Al,
    Im in victoria and I'm in the industry. I do Dspec submissions for the councils. just trying to develop a faster method of doing it using autoCAD map.
    already use those programs but I like AutoCad Map better. We currently use Geocivil to do it but its old and clunky. I understand there are many aspects. i just need a grasp of what to do and i will develop the rest for each of the different objects etc.
    so i need a lisp to export the geometric start/end co-ords to a table or excel or something and then i need a way of importing them to the correct object data. Anyone game to have a try? im new to lisp and dont have a strong programming background but im having a crack.

  8. #8
    Luminous Being
    Using
    Civil 3D 2016
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    9,819

    Default

    You need to get into the xdata and look at all the properties (entget car (entsel)) ; pick line, look at the bit (102 . "{ACAD_XDICTIONARY") (360 . <Entity name: 7ffffb063d0>) (102 . "}") this is the xdata link. I am trying to find some stuff I did as a bit of playing with xdata it may get used as part of a commercial product so I can not post.

    If you look at this bit of code there are two parts the 1 is the variable name and the 40 is the value to go against that name. Not sure about ODIPE will paly a bit more.

    Code:
    (setq anXrec (entmakex (list (cons 0  "XRECORD")
    (cons 100  "AcDbXrecord")
        (cons 1 wallvar)
        (cons 40 wallsize)
    so in your case (cons 1 "Type") (cons 40 "Pipe")
    (cons 1 "pipe_No")(cons 40 375)
    A man who never made mistakes never made anything

  9. #9
    Junior Member
    Using
    Map 3D 2013
    Join Date
    Jan 2014
    Posts
    15

    Default

    Ok thanks Big AL,
    i tried to look at the x data


    Command: (entget car (entsel))
    Select object: ; error: bad argument type: lentityp #<SUBR @2b6d8fa0 CAR>

    so im kinda stuck there.

  10. #10
    Luminous Being
    Using
    Civil 3D 2016
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    9,819

    Default

    Registered forum members do not see this ad.

    Getting closer google "vla xdata" went to a autodesk website with un documented code example.

    Code:
    (setq ent (entget (car (entsel))))
    (vla-GetXData (vlax-ename->vla-object (cdr (assoc -1 ent))) "" 'codes 'datas)
    A man who never made mistakes never made anything

Similar Threads

  1. AutoCAD Electrical 2013 Data Links
    By JBS1959 in forum Electrical
    Replies: 2
    Last Post: 8th Apr 2015, 07:18 pm
  2. Autofill AutoCAD table data like you do in Excel
    By AutoCAD Tips Blog in forum AutoCAD RSS Feeds
    Replies: 0
    Last Post: 21st Jul 2011, 01:20 pm
  3. An AutoCAD (and Excel) Hip Tip on AutoFill
    By Lynn Allen's Blog in forum AutoCAD RSS Feeds
    Replies: 0
    Last Post: 27th Jul 2007, 12:40 am
  4. Tables from Object Data in AutoCAD 2008
    By AutoCAD Insider in forum AutoCAD RSS Feeds
    Replies: 0
    Last Post: 21st Feb 2007, 04:30 pm
  5. Autofill dy blocks in AutoCAD 2006
    By tnblueswirl in forum AutoCAD General
    Replies: 3
    Last Post: 24th Jan 2007, 11:33 am

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