Jump to content

Node Measuring System


Recommended Posts

Hello all,

 

I work in utilities and would like to set node points at certain points of a network and have a table populate with the dimensions from each node point.

 

Is there anyway of doing this in AutoCAD 2011.

Link to comment
Share on other sites

Can be done using a lisp here is an example of how to create a table via lisp, you need to search how to add a line it should be easy. I will have a look also

 

 ; this uses 2 lists of values representing two columns list1 & list2 
; if you look at it as X & Y it should make sense
; by Alan H 2014

; now do table 
(setq numrows (+ 2 (sslength ss1))) ; number of items in list1 & 2
(setq numcolumns 2)
(setq rowheight 0.2)
(setq colwidth 150)
(setq objtable (vla-addtable curspace pt1 numrows numcolumns rowheight colwidth))
(vla-settext objtable 0 0 "DRAWING REGISTER")
(vla-settext objtable 1 0 "DRAWING NUMBER") 
(vla-settext objtable 1 1 "DRAWING TITLE") 

(SETQ X 0)
(SETQ Y 2)

(REPEAT (sslength ss1)
 (vla-settext objtable Y 0 (NTH X LIST1))
 (vla-settext objtable Y 1 (NTH X LIST2))
 (vla-setrowheight objtable y 7)

 (SETQ X (+ X 1))
 (SETQ Y (+ Y 1))
)

(vla-setcolumnwidth objtable 0 55)
(vla-setcolumnwidth objtable 1 170)

(command "_zoom" "e")

Link to comment
Share on other sites

  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...