assign a variable value to an attribute tag
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
assign a variable value to an attribute tag

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization
Author Message
perriwinkle
Guest





Posted: Thu Jan 06, 2005 3:53 am    Post subject: assign a variable value to an attribute tag Reply with 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
ECCAD
Guest





Posted: Thu Jan 06, 2005 5:43 am    Post subject: Re: assign a variable value to an attribute tag Reply with quote

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 Reply with quote

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
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB