Jump to content

Att. Tag information


Rhayes

Recommended Posts

We have a number of Different door widths in regards to egress and I have a typical egress tag that

Gives the door width and the occupancy number. My question is can you add a formula to a block att. That I can key in the door width and have the occ load number input Automaticlly.???

Link to comment
Share on other sites

Have you thought of using a dynamic block with visibility states for each door size? or....

If you use a lisp routine to insert the block, you could prompt for the door width (attribute 1), and use a formula to determine the occupancy number and use that as the value for the 2nd attribute.

Link to comment
Share on other sites

Ok, I notice from your blocks there are 3 attributes each

1. stair block- do you want 2 prompts, ST-X and width?

is the occupancy always the width / .2?

do you need "width/.2" displayed or just the width?

do you need "OCC" tagged on at the end in the third attribute?

2. door block - same questions

is the occupancy always the width / .15?

Link to comment
Share on other sites

Ok, I notice from your blocks there are 3 attributes each

1. stair block- do you want 2 prompts, ST-X and width? -YES

is the occupancy always the width / .2? - YES

do you need "width/.2" displayed or just the width? "Width/.2

do you need "OCC" tagged on at the end in the third attribute? Yes

2. door block - same questions

is the occupancy always the width / .15? YesToday 03:23 pm

Link to comment
Share on other sites

Thanks lpseifert, that was Awesome.

they work great.

I have a question.? If I want to change the top line of the

block to Read "4 Doors @ 33" Then the second line would be

(4x33) and read "132" /.15" and then the bottom would remain

the same as 880 OCC.

Can I add a line in the lisp that would take the Number of doors

x the actual width and then take that number and / by .15 for

the total Occupancy load.???

Link to comment
Share on other sites

You'd need to create a prompt for # doors

use strcat to create variable for attribute #1

edit variable for attribute #2

 

no time now maybe later, if you'd like.

 

BTW, what do you mean by 'that was assume'?

Link to comment
Share on other sites

Sorry I have another Dumb Question.?

If the block does not reside in the drawing the lisp does not work.

Is there a way to insert the block if it is not in the drawing.???

Am I getting way to complacated.???

Link to comment
Share on other sites

here's one way

(if
   (not
     (tblsearch "block" "BLOCKNAME"))
   (command "-insert" "BLOCKNAME" (command))
   )

the path of the block will need to be hard coded if it isn't in acad's search path.

Link to comment
Share on other sites

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