Results 1 to 7 of 7

Thread: VBA/Lisp to pick XY values corresponding to the numbers

  1. #1
    Member
    Join Date
    2011-07
    Posts
    22
    Login to Give a bone
    0

    Default VBA/Lisp to pick XY values corresponding to the numbers

    Hi,

    We have a cable routing drawing where we provide nodes/points and assign address to each points. The nodes are in blocks and the address are plain texts.

    As of now we manually pick the coordinates of each node along with the adress. Is there a program that shall simply the task or can we make the address as attributes/blocks so that the work is made simpler.

    Requesting support or any other method to follow is highly appreciated.

    Cheers,

    Rajesh
    Attached Files Attached Files

  2. #2
    Member
    Join Date
    2004-01
    Posts
    4
    Login to Give a bone
    0

    Default Re: VBA/Lisp to pick XY values corresponding to the numbers

    Create a FIELD who displayed the coordinates of Insert-Basepoint-Position?
    (without open the dwg, your Post sounds like this)

    Its also possible to pre-define this Field in ATTDEF as Value.

    Search for: Autocad field coordinates
    Example in this kind https://www.google.de/url?q=https://...DO1pruPE9vSF2A

  3. #3
    Member
    Join Date
    2011-07
    Posts
    22
    Login to Give a bone
    0

    Default Re: VBA/Lisp to pick XY values corresponding to the numbers

    Hi, thanks for your reply.

    My requirement is something similar to the one you have referred, but instead of coordinates being displayed we have node markings & require the coordinates along with the node numbers.

    Thanks.

    Rajesh

  4. #4
    I could stop if I wanted to
    Join Date
    2005-06
    Location
    CORDOBA-ARGENTINA
    Posts
    275
    Login to Give a bone
    0

    Default Re: VBA/Lisp to pick XY values corresponding to the numbers

    please explain how do you want engage blocks with reference or adres .

    if possible do a before and after sample
    Attached Images Attached Images
    Last edited by devitg.89838; 2017-08-01 at 07:11 PM. Reason: sh solved

  5. #5
    Member
    Join Date
    2011-07
    Posts
    22
    Login to Give a bone
    0

    Default Re: VBA/Lisp to pick XY values corresponding to the numbers

    Hi,

    Let me brief the steps that we follow to pick the coordinates.
    In general we use this for preparing the cable routing document.

    1. Draw poly lines (in cable contour layer ).
    2. At required places we place nodes ( refer attached image ) and assign node numbers.
    3. Except Junction node, others will have two or three node numbers attached to it.
    4. Once all these are done, we manually pick the X/Y values and update them in a excel sheet.

    So like this, we have many nodes and node numbers assigned to them. Intention is to have a lisp that shall automatically export the values of each node in a excel file ( refer attached sample).

    Thanks.

    Rajesh
    Attached Images Attached Images

  6. #6
    All AUGI, all the time
    Join Date
    2003-07
    Posts
    555
    Login to Give a bone
    0

    Default Re: VBA/Lisp to pick XY values corresponding to the numbers

    Whilst this is not exactly what you want but should point you in the right direction.

    http://www.cadtutor.net/forum/showth...ction-to-Excel

  7. #7
    Member
    Join Date
    2011-07
    Posts
    22
    Login to Give a bone
    0

    Default Re: VBA/Lisp to pick XY values corresponding to the numbers

    Hi, Will check this and revert. thanks for the suggestion.

    Regards,

    Rajesh

Similar Threads

  1. Need a lisp that can extract the numbers from selected Text
    By brahmanandam.thadikonda762224 in forum AutoLISP
    Replies: 6
    Last Post: 2016-12-10, 11:04 PM
  2. lisp routine for page numbers in Autocadd
    By mrmwood568385774 in forum AutoLISP
    Replies: 5
    Last Post: 2013-08-22, 06:29 PM
  3. Need LISP function to pick layer on the fly
    By tatriest in forum AutoLISP
    Replies: 3
    Last Post: 2010-02-19, 02:52 PM
  4. Replies: 4
    Last Post: 2006-07-14, 08:34 PM
  5. Lisp won't return pick box to my costum setting?
    By Hammer.John.J in forum AutoLISP
    Replies: 11
    Last Post: 2006-01-07, 12:47 AM

Posting Permissions

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