+ Reply to Thread
Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 28
  1. #11
    Full Member
    Using
    AutoCAD 2010
    Join Date
    May 2012
    Posts
    25

    Default

    Registered forum members do not see this ad.

    excuse me, i've just to understand the meaning of boundaries. Indeed, the boundary is on the same layer but don't have to be extract.

    I've tried the code. It work perfectly. with your code CONNECTEDTO, I obtain all I need. I removed the X and the Y. keeping only name of pullbox (start and end) and length
    I made some processing and obtain a 3 rows excel table
    And i succeed to upolad the length in my original table with VLOOKUP

    but unfortunately, after many try, I don't succed to transform CONNECTEDTO to make able the export to excel.

  2. #12
    Forum Deity pBe's Avatar
    Computer Details
    pBe's Computer Details
    Operating System:
    Windows XP
    Discipline
    Construction
    pBe's Discipline Details
    Discipline
    Construction
    Details
    Camp Construction planning and details
    Using
    AutoCAD 2009
    Join Date
    Apr 2010
    Posts
    2,089

    Default

    Quote Originally Posted by guigol View Post
    excuse me, i've just to understand the meaning of boundaries. Indeed, the boundary is on the same layer but don't have to be extract.
    Check

    Quote Originally Posted by guigol View Post
    excuse me, i've just to understand the meaning of boundaries. Indeed, the boundary is on the same layer but don't have to be extract.

    I've tried the code. It work perfectly. with your code CONNECTEDTO, I obtain all I need. I removed the X and the Y. keeping only name of pullbox (start and end) and length
    I made some processing and obtain a 3 rows excel table
    And i succeed to upolad the length in my original table with VLOOKUP
    Does that mean you dont need the START/END X&Y coordinates for the plines anymore?

    Quote Originally Posted by guigol View Post
    ...but unfortunately, after many try, I don't succed to transform CONNECTEDTO to make able the export to excel.
    Perhaps we can help you with that, post an example of a xls file which shows the compiled data

  3. #13
    Full Member
    Using
    AutoCAD 2010
    Join Date
    May 2012
    Posts
    25

    Default

    Quote Originally Posted by pBe View Post
    Does that mean you dont need the START/END X&Y coordinates for the plines anymore?
    Not really. Not for my final table, but It would be usefull to check data later.

    Quote Originally Posted by pBe View Post
    Perhaps we can help you with that, post an example of a xls file which shows the compiled data
    Annexe 6 corrigée controlée CAGC .xls
    here is my final table. The row "G" have to be completed.

    I'm developping à VBA macro to complete it with different source files. (the extract xhixh is our subject, is one of them)

  4. #14
    Forum Deity pBe's Avatar
    Computer Details
    pBe's Computer Details
    Operating System:
    Windows XP
    Discipline
    Construction
    pBe's Discipline Details
    Discipline
    Construction
    Details
    Camp Construction planning and details
    Using
    AutoCAD 2009
    Join Date
    Apr 2010
    Posts
    2,089

    Default

    Alrighty then, i'll look into it later.

  5. #15
    Forum Deity pBe's Avatar
    Computer Details
    pBe's Computer Details
    Operating System:
    Windows XP
    Discipline
    Construction
    pBe's Discipline Details
    Discipline
    Construction
    Details
    Camp Construction planning and details
    Using
    AutoCAD 2009
    Join Date
    Apr 2010
    Posts
    2,089

    Default

    Would you settle for CSV file?

  6. #16
    Full Member
    Using
    AutoCAD 2010
    Join Date
    May 2012
    Posts
    25

    Default

    No problem

  7. #17
    Forum Deity pBe's Avatar
    Computer Details
    pBe's Computer Details
    Operating System:
    Windows XP
    Discipline
    Construction
    pBe's Discipline Details
    Discipline
    Construction
    Details
    Camp Construction planning and details
    Using
    AutoCAD 2009
    Join Date
    Apr 2010
    Posts
    2,089

    Default

    Quote Originally Posted by guigol View Post
    No problem
    I saw your code is attached to RAB_F09097040411, but this name will change for every dwg we'll have to process.
    Okay, now answer me this, if its not the same for every drawing, how would the program diffrentiate which polyllnes to process? preferably the conduits resides on its own unique layer, that will reduce the number of items to process. we could however use a wildcard "RAB_F*" for conduits layers

    What about the Pull box blocks, do they differ on every drawing as well? or a least have the same TAG name <"CH_COD1"> for the value attributes?

    EDIT: In the end what you really need is the length of the polylines connected to a pull box data. and not the pull boxes Start/Endpoint, as the ConnectedTo rouitne already shows what pull boxes are associated with a particular conduit, is that correct? I believe you only need that info before to compare the coordinates with the collected plines coordinates.

  8. #18
    Full Member
    Using
    AutoCAD 2010
    Join Date
    May 2012
    Posts
    25

    Default

    Quote Originally Posted by pBe View Post
    Okay, now answer me this, if its not the same for every drawing, how would the program diffrentiate which polyllnes to process? preferably the conduits resides on its own unique layer, that will reduce the number of items to process. we could however use a wildcard "RAB_F*" for conduits layers.
    Here is some others dwg to test your code.
    F04364230311_75113_240311.dwgsF12707110411_75113_120411.dwg?F12187110411_75113_110411.dwg
    F62884220711_75113_220711.dwg F37510300511_75113_300511.dwg

    the layers where there are polylines begin with RA : "RAA, RAB, RAC, ..."


    Quote Originally Posted by pBe View Post
    What about the Pull box blocks, do they differ on every drawing as well? or a least have the same TAG name <"CH_COD1"> for the value attribute
    they always have the tag name <"CH_COD1">


    Quote Originally Posted by pBe View Post
    EDIT: In the end what you really need is the length of the polylines connected to a pull box data. and not the pull boxes Start/Endpoint, as the ConnectedTo rouitne already shows what pull boxes are associated with a particular conduit, is that correct? I believe you only need that info before to compare the coordinates with the collected plines coordinates.
    yes exactly. the coordinates of the pullbox and the plines are not usefull for me. It's just transition data which can help me to put <"CH_COD1"> and length together.

  9. #19
    Forum Deity pBe's Avatar
    Computer Details
    pBe's Computer Details
    Operating System:
    Windows XP
    Discipline
    Construction
    pBe's Discipline Details
    Discipline
    Construction
    Details
    Camp Construction planning and details
    Using
    AutoCAD 2009
    Join Date
    Apr 2010
    Posts
    2,089

    Default

    CODE UPDATE:
    Write to CSV file with this format
    Code:
    Format in Notepad
    14214,9.693995455208048,14213
    14217,10.6469506871911,14221
     
    Format in Excel
    14214 9.693995455208048 14213
    14217 10.6469506871911 14221
    IT will still scroll thru the screen and launch explorer with the file highlighted


    There are still polyliens connected to jsut one pullbox. You will recognize it when you open the CSV file
    Code:
    22211 1.344204292 
    14214 9.693995455 14213
    HTH
    Last edited by pBe; 8th Jun 2012 at 11:08 am.

  10. #20
    Full Member
    Using
    AutoCAD 2010
    Join Date
    May 2012
    Posts
    25

    Default

    Registered forum members do not see this ad.

    Thank you.

    It works perfectly

Similar Threads

  1. Extract Coordinates along polyline.
    By therock005 in forum AutoCAD General
    Replies: 27
    Last Post: 6th Feb 2013, 03:59 pm
  2. Replies: 2
    Last Post: 11th Oct 2011, 12:41 pm
  3. Polyline Length
    By awoehl in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 4
    Last Post: 19th Aug 2011, 06:30 pm
  4. Divide a polyline at equal intervals and extract coordinates in excel
    By symoin in forum AutoLISP, Visual LISP & DCL
    Replies: 11
    Last Post: 21st Jun 2011, 09:10 am
  5. Find points connected with line or polyline
    By Bane in forum AutoLISP, Visual LISP & DCL
    Replies: 9
    Last Post: 19th Aug 2008, 07:08 pm

Tags for this Thread

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