BigThumper Posted March 6, 2011 Posted March 6, 2011 Can you add an attribute to a non-blocked entity? Basically, I want to "name" plines. In case I'm going about this wrong, let me ask the question another way. I'm just getting used to the wonders of attributes & data extraction (I love it!). Right now I have blocks with attributes that I use data extraction to count. I also need some way to calculate length. These blocks represent electrical devices - then I need to calculate the amount of wire used to connect the devices. So now I use a pline to join the devices, get the length of that polyline, and then manually enter that length into the spreadsheet from the data extraction. But...I'm thinking if I can link an attribute to a pline, then I can include that in the data extraction and automate it. But I don't see how I can use a block for this, since the pline will be completely variable and needs to be "custom-fit" for each circuit. Ideas? Quote
dbroada Posted March 6, 2011 Posted March 6, 2011 unless something has changed with 2011 you cannot use attributes on anything other than blocks. if all your lines are straight can you use a dynamic block with a stretch action? Quote
BigThumper Posted March 6, 2011 Author Posted March 6, 2011 I don't see how...wait a minute. I've been using a single pline joining the multiple (from 2 to 20) device blocks and then viewing the resulting length. I guess I could try making a block with a circuitname attribute, inserting it multiple times to join each pair of devices - and then total the lengths in the extraction. Hmm.... Quote
BigThumper Posted March 18, 2011 Author Posted March 18, 2011 I want to use a curved polyline/arc for my circuit builder. I'm creating a block with grips to change the endpoints, length, and curve. How can I obtain the length of the curve - as opposed to the linear distance between the endpoints? Quote
BIGAL Posted March 21, 2011 Posted March 21, 2011 If all your lines are plines arcs lines etc theres lots of add up all the length of the objects lisp and vba programs, as a simple answer you would do the total length of a particular layer. I would stay with plines rather than blocks easier to change. Ssearch here for "total" as a start Found this in the archive section at the bottom of the home page http://www.cadtutor.net/forum/showthread.php?42734-Line-Length-Calculator Quote
Recommended Posts
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.