Jump to content
Rhayes

Att. Tag information

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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

A lisp routine would be nice. I do not have one that inserts a block.

Do you know where i could find a lisp routine that would do that.???

Share this post


Link to post
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?

Share this post


Link to post
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

Share this post


Link to post
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.???

Share this post


Link to post
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'?

Share this post


Link to post
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.???

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×