See the top rated post in this thread. Click here

Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Help needed for modification of block extraction lisp

  1. #11
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL USA
    Posts
    3,667
    Login to Give a bone
    0

    Default Re: Help needed for modification of block extraction lisp

    Quote Originally Posted by BIG-AL View Post
    Should these be other way around XY not YX ?
    Coordinates for locations are provided using two sets of numbers on a simple Cartesian coordinate system. This way, locations can be found using easting/northing (or x,y) pairs. As a convention, the pair is typically represented easting first, northing second.

    As a licensed surveyor for 47 years who also used GIS that's the only way I've ever seen it labeled but what Peter said about Survey Data could also be true as Civil 3D offers many options for importing Survey Data including Northing, Easting, Elevation & Description or Station, Offset, Elevation & Description (which offers options for labeling points that way as well).

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

    Default Re: Help needed for modification of block extraction lisp

    Try this for block vaues as text. No mention of what to do with the answer, a table, a csv, to Excel please advise.

    Code:
    (defun c:txblk ( / ss bname lst lst2 x)
    (defun Nestedtext (blockName / ename ret)
     (setq ename (tblobjname "block" blockName)
           ret   (entget ename)
           )
    	   (setq lst '())
      (if ename
          (while (setq ename (entnext ename))
    	    (if (= (car (assoc 1 (entget ename))) 1)
    		(setq lst (cons (cdr (assoc 1 (entget ename))) lst))
    		)
          )
      )
    (setq lst (reverse lst))  
    )
    (setq lst2 '())
    (setq ss (ssget '((0 . "insert"))))
    (repeat (setq x (sslength ss))
    (setq bname (cdr (assoc 2 (entget (ssname ss (setq x (1- x)))))))
    (Nestedtext  bname)
    (setq lst2 (cons lst lst2))
    )
    (setq lst2 (reverse lst2))
    (princ lst2)
    (princ)
    )
    (c:txblk)

  3. #13
    Member
    Join Date
    2016-05
    Posts
    19
    Login to Give a bone
    0

    Default Re: Help needed for modification of block extraction lisp

    Open AutoCAD from the Ribbon select Insert then to right select “Extract Data”
    Or type “DATAEXTRACTION”
    1.png
    Next
    2.png
    Save dxe file with name you want.
    3.png
    Now you can select a folder full of drawings that contains blocks with attributes you want to extract to file or table or both
    4.png
    After selecting the folder all the drawings in the folder and subfolders will be included
    5.png
    Next

  4. #14
    Member
    Join Date
    2016-05
    Posts
    19
    Login to Give a bone
    0

    Default Re: Help needed for modification of block extraction lisp

    Next

    next
    6.png

    Next
    7.png
    Next
    8.png
    Next save to excel and AutoCAD Table
    9.png
    Next
    t_exl.png
    Next

Page 2 of 2 FirstFirst 12

Similar Threads

  1. AutoLisp (Modification in Area Lisp Needed)
    By Sameer Ahmed in forum AutoLISP
    Replies: 2
    Last Post: 2019-09-25, 05:12 AM
  2. Need a help in modification of lisp. Please update the lisp code as required.
    By brahmanandam.thadikonda762224 in forum AutoLISP
    Replies: 0
    Last Post: 2018-09-20, 04:12 AM
  3. Replies: 3
    Last Post: 2015-01-05, 03:05 AM
  4. Help needed with Attribute extraction and import into MS Excel
    By Lee Buckmaster in forum Productstream - General
    Replies: 0
    Last Post: 2012-04-30, 08:23 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
  •