| Author |
Message |
perriwinkle
Guest
|
Posted:
Thu Jan 06, 2005 3:53 am Post subject:
assign a variable value to an attribute tag |
|
|
How do I assign a variable like count to an attribute in a block. For instance I want to count all doors in a drawing and put that total in a schedule. The doors have hardware so when I find a door of type A it gets 2 hinges and 1 knob. All of this info needs to land in a schedule, but I need totals sooo if I find 2 doors I have 4 hinges and 2 knobs... Because the schedule is a moving target, I decided to make it a block with attributes but now I don't know how to get the variable values assigned to the attribute.
|
|
| Back to top |
|
 |
ECCAD
Guest
|
Posted:
Thu Jan 06, 2005 5:43 am Post subject:
Re: assign a variable value to an attribute tag |
|
|
Perriwinkle,
You may have to post any code you have now,,so we can
respond. Stuffing an attribute is relatively easy, once you
cycle through a block, get the attribute entity.
Bob |
|
| Back to top |
|
 |
Doug
Guest
|
Posted:
Thu Jan 06, 2005 6:08 pm Post subject:
Re: assign a variable value to an attribute tag |
|
|
I hope that I'm wrong in my opinion that what you want isn't possible. I've
been looking for ways to do it too. The only thing I"ve found is to extract
the attributes and add them up in Excel. I use ATTOUT and import the text
file into Excel.
You can probably write a LISP program that will check for the existence of
your block, find the highest existing count, and then add another. But
that's not really putting a variable into an attribute.
DougVL
"perriwinkle" <nospam@address.withheld> wrote in message
news:30132519.1104965633458.JavaMail.jive@jiveforum1.autodesk.com...
| Quote: | How do I assign a variable like count to an attribute in a block. For
instance I want to count all doors in a drawing and put that total in a |
schedule. The doors have hardware so when I find a door of type A it gets 2
hinges and 1 knob. All of this info needs to land in a schedule, but I need
totals sooo if I find 2 doors I have 4 hinges and 2 knobs... Because the
schedule is a moving target, I decided to make it a block with attributes
but now I don't know how to get the variable values assigned to the
attribute.
|
|
| Back to top |
|
 |
|
|
|
|