Jump to content

Recommended Posts

Posted

I have a couple of questions I've been searching on the WEB without any... but really any answer...

What is the definition of argument in lisp?

Where can I get information from ALL ACET codes, VLA codes? I guess BETTER all subroutines from express tools which are very useful but without knowing them it is very difficult to develop any lisp without controlling the result.

Thanks a lot

Posted

Thanks Lee,

 

I may be completely overwhelmed because I cannot understand anything in this file. Apparently nothing is loading from when I use appload command although I know it should load all this subroutines for expresstools to work properly. Isn't there a PDF or an HLP file where all these subroutines are explained? I opened the count.lsp and found this inside:

 

(setq lst (acet-table-name-list (list "block" 1 4 16))) ;exclude anonymous and xref blocks

 

What are these parameters to filter out anonymous blocks and xrefs?

 

Basically I want to filter all xrefs so I can extract xref names from a bunch of drawings in different text files.

 

Thanks again

Posted

The parameters are explained in the headers of each of the functions - the functions could be scattered in different files throughout the Express Folder.

 

You could just write your own:

 

(defun _tablenames ( table exclude / item result )
 (while (setq item (tblnext table (null item)))
   (if (zerop (logand (cdr (assoc 70 item)) exclude))
     (setq result (cons (cdr (assoc 2 item)) result))
   )
 )
 (reverse result)
)

Hence, to exclude XRefs and Anonymous Blocks:

 

(_tablenames "BLOCK" (+ 1 4 16))

Lee

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...