Jump to content

Recommended Posts

Posted

Hello,

So I use this Lee Mac's lisp for counting att values, but the problem is that I have too many attributed blocks (for levels, labeling materials, labeling doortype, windowtype and so on..). The table created from my selectionset gets too big with 80% useless information, where I want to extract info from 1 or 2 blocks.

 

My question is: Could someone modify it, to count those attributes of specified blocks?

Example:

1.Select blocks to count their att values

2.Proceed with selectionset and filter only these selected blocks and count their attrib values

 

ScreenShot006.jpg

Posted

As a quick modification, add the following line at line 70 of the code:

(setq alist (vl-remove-if-not '(lambda ( x ) (member (car x) '([highlight]"A1" "A2"[/highlight]))) alist))

List the attribute tags you wish the program to count.

 

Dipesh, I believe the OP is referring to my Count Attribute Values program.

Posted

Well, thats not quite I was looking for, but it does the job:

 

(setq alist (vl-remove-if-not '(lambda ( x ) (member (car x) '("П1" "П2" "П3" "П4" "П5" "П6" "П7" "П8" "П9" "П10" "П11" "П12" "A1" "A2" "A3" "A4" "A5" "A6" "A7"))) alist))

 

If I don't get *error* too long string on input.

 

Tried:

(setq att-string (getstring T "\nType attribute name to count: "))
(setq alist (vl-remove-if-not '(lambda ( x ) (member (car x) '("att-string"))) alist))

But It didn't work.

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