AutoCAD 2010 :: Echoing Data From One Attribute To Other Attributes (or Text Objects)?
Nov 16, 2012
I have a drawing template (block) where the drawing number is displayed in two locations (attributes). The same value has to be entered in both attributes.
Is there any way of "echoing" the data from one attribute to other attributes (or text objects)?
Working in Autocad 2011, PC version.My drawing has blocks that contain (1) visibible and editable attribute. Also contain (4) invisible and constant attributes. I need to update text information in the (4) invisible attributes. Using BATTMAN seemed the easiest way to do this, but when "Sync" ing the changes, the rotation angle/placement of the Visible attribute changes globally in the drawing.
(Many of the Visible attributes location were adjusted to prevent overlapping with other drawing lines.
How can I update text values of invisible attributes without rotating/adjusting the placement of my visible one?I've tried -attedit & attredef - neither of them did what I needed.
I wrote this little piece of code (attached) that explode all the blocks in the current drawing.This is magical, compared with what we had to do in VBA.
This works perfectly but now I want to go deeper and managed blockreferences with attributes.Based on my code, I can determine if oBTR.HasAttributeDefinitions is true or false.
If the blockreference has attributes, I suppose I will have to use Explode instead of ExplodeToOwnerSpace.
My first question is, using explode, I need before to know in which space the blockreference is inserted (Model or any layout) so to insert the exploded entities correctly. So, is it possible from a blockreference to get its own SpaceId?
An another idea I had is to edit the blockreference (not the block definition) to replace attributes with text...
How to choose the attribute or field data from a list?
When using the “title block”, attributes and fields to better control the information that belongs to the drawing, then it worth to have a feature that allows selecting this information from a LIST.
For example, if we need to specify “location” of the project, then it is better to have sort of list from which we can select the location of the project the same we do it in the Excel (as shown in the screenshot below).
Is there such feature in the AutoCAD? To choose the information from a list?
This was my first go-around attempting to create a custom tool palette for our office. Everything was fine, the palette worked well. All of the block libraries and associated files were initially saved on my local drive. I then moved the files and folders out on the network, repathed all the items on the palette to the new area but for whatever reason when I insert blocks that have attribute data attached It is not recognizing it anymore. I am just trying to get this piece straightened out before I export the palette itself out to the network to share.
I have some blocks that are associated with regions in my drawings. I want to select regions based on attributes in the associated blocks. Is that possible?
Is it possible to link my blocks to an external database and select the regions based on a field in the linked database?
After working several hours on a drawing with many attribute blocks, all the text in all the attributes disappeared. Block outline remains as defined but text is gone. Have been using this version (Autocad 2012) about five months and this is the first episode. how can I get the blocks to appear as originally drawn?
Is it possible, via whatever methods (lisp?) to be able to have a premade block with an attribute and insert it into a drawing then assign a value to it by selecting another existing block in the drawing and using one of its own attribute’s values?
For example, say I have a block representing a telephone and it had an attribute called "PhoneNo" and I inserted it into a drawing showing an office floor plan that had blocks in each office space that are telephone junction boxes with attributes "PhoneExtension". I would like to be able to autocomplete the entering of the “PhoneNo” data by selecting one of the telephone junction boxes in the drawing and using its attribute’s value.
I need to create blocks in which the same text appears twice. I've created an invisible attribute to hold the text and created two mtext object containing fields that point to the attribute value.
The text fields show the default value of my attribute but will not change when the attribute is set on an placed instance. After setting the attribute on an instance I've tried UPDATEFIELD and REGEN but still I see the default value.
whenever I make a block with attributed text the block works just fine when I insert it into a drawing like normal. However if I try and open the block drawing by itself the attributed text just turns into normal text after I get this message "Orphan Attdef Objects found & Converted to Text". This problem seems to happen on two of our machines but a third co-workers machine still works fine.
In my title block I have a attribute with the name project_Number. Now what I want to do is the following. When I edit my block with the project number. The project number should automatically be added to a text box without me typing in the project number twice.
E.g.. This Drawing is part of the consulting services provided for Project[Project_Number] and may not be used or applied for any other purpose without prior consultation.
in other word the project number should be reference in the text box from the attribute.
Is there an easy way to transfer the text inserted in one attribute and copy it over to another attribute in the same block? This is for a titleblock. We are currently using AutoCAD Electrical. We need to do this on over 10,000 drawings so we would like to be able to write a script or lisp routine so we could run a batch across all of the drawings.
I'm working in AutoCAD Map 3D 2008 and Autocad Civil 3D 2009.
The General Task:I want to convert the object data to attribute data so that I can export it to an Excel file, add another column of data, and then import that new data as attribute data.
The Specific Task:I have thousands of campus water meter locations (a block with a small icon, attribute data, and object data) that belong to two different systems, domestic water and lake water. Each of these blocks has object data item (a barcode tag) that I want to show as a label next to the block.
However, before I do that, I want to export that barcode data to an excel file so I add a column (eventually a new piece of attribute data) that says whether or not that specific water meter is radio read or manually read. I want to then import that radio read/manual read excel file back into autocad and have an X appear on the block icon if it is radio read. I also want the barcode information to show up as a label.
My problem:I can't get the barcode object data to export with the locations in one easy excel sheet that I can simply import after I have made my changes.
Find some person on here who knows how to convert object data to attribute data.
Is there a way to constrain a few objects to an attribute text box width? I want the background box and line to stretch, based on what is typed in that attribute box.
I know that if I make the attribute, a multi-line attribute, I can add a backgroud mask. I don't want to take this route, because the mask boundary varies, depending on what character is typed. Also, there is a gap between the mask and line I would like to maintain.
I tried some constraint stuff, but all I seem to be able to constrain is the insertion point of the text box, and not the width grip...
I used the BEDIT command (editor) on my block to modify the text size then save the block editor changes. Then use ATTSYNC to perform the changes on all existing blocks references to resize the texts, but after i complete the ATTSYNC command, the text in all the blocks disappear.
I am using AutoCAD 2012 (Electrical). I have a few blocks that I pasted in a drawing with text that is contained in attributes.
I would like to explode these blocks so that I can make some changes to them, but when I do this, I lose the text that is contained in the attributes. After exploding the blocks, I just see the attribute names rather than the text that they originally contained.
I hate to have to re-type all this info. If I could somehow choose to choose to convert the text originally contained in attributes to plain old static text, that would be perfect for me.
I am running AutoCAD 2012 Electrical. The source wiring diagrams I am working with have attributed blocks all over the drawing. For my purposes, I dont need to export the data, but I do need to change the drawing. When I use "Burst" or "Explode Attributes to Text" in the Express Tools menu, it does change the attributes to text. However, it throws all the data that is in in the attribute all over the face of the drawing. This is extremely time consuming to delete them as some are micro small text.
I need a command that will explode the attributes to text, turning the blocks into entities, as if there are no blocks at all.
We are using AutoCAD Map 3D 2011 (Service Pack 2 - Version 3). This is replicable on multiple machines in multiple OS environments.
We attach a source drawing, run a query on Object Data but when that data appears in Model space it appears without any of the accompanying text for that object.
You can then execute the same query with a crossing window which brings in the surrounding objects including their text, but the original object still does not have its text. If you delete the object and re-run the query with the crossing window again, then the object appears with its text.
This is a nightmare for the users because if they want to search on a specific object, and then have to delete it to get it back with the text, they then have to search for the item in amongst all the other items. This kind of defeats the purpose of querying that object in the first place.
Is this just the way AutoCAD functions, or are we doing something wrong in our process sequence for querying the object data?
Problem: Create a dynamic block with visibility, use a Multiline Attributes for text entry in to the block. I create multiple lines of text when editing the block in model space. Either with gripping the txt window width or use "Enter" to define multiple lines.... I proceed to edit the block slightly and when I close and save changes......All ML Attributes default to single line text. In turn i have to re-edit all my text.
Bugs like this are extremely painful. No rhyme or reason to them... Looking for a workaround other than using separate attributes for each line of text.
Without using scripts, is there any way to have rectangles or textboxes act on values coming from a data file? For examplle if the value in a textbox was greater than 10 coming from a data record, could the textbox change color, or any other attribute to make it change from record to recortd as it is being viewed or printed?
creating a block with attributes. I did manage to get my block set up and inserted in a dwg, but I am unable to change the "value" of any attribute. Unless I click on the "..." button next to the value field.
What I really want to do is on our fire alarm blocks we have 3 different attributes one for the address, the candela and one for misc info. I want to make an attribute that takes the number from the candela (15,30,75or 110) and change a different attribute to a value depending on which candela we use (such as 15=.078, 30=.113, 75=.195 or 110=.259). But I don't want the .078,.113,.195,.259 to print out on paper, I want to export block information excel file so I can add up all values.
I have a block with several attributes. One of the attributes is the result of mulitplying two or more of the other attributes together. I want this to be calculated automatically everytime one of the attribute values changes.
They need to stay within the same block (I think) for when i extract the data to a text file.
If its not possible with attributes, will fields be any better? (I know even less about those than I do attributes!)
I made a dynamic block (REINF_ID) with attributes that i will use to determine the reinforcement of structural walls on elevations. I inserted an attribute called LIGN1 which will be visible and the other attributes such as DIA(bar diameter)-SPC(rebar spacing)-POSITION(rebar position) will be invisible.
Now, in the block editor i want to insert 3 fields in the LIGN1(visible) attribute default value that will link to other attributes in the same block. example: LIGN1 default = 25M(DIAattribute) @(text) 300(SPCattribute) EF(POSITIONattribute). When i insert my block in a dwg and i decide to modify the DIAMETER(invisible attribute) from 25M to 30M for example, I want the value in the LIGN1 attribute to update to show the new DIAMETER.
When I regen, it does not modify the attribute (LIGN1) 25M to 30M, it keeps the default value of the attribute (25M).
In VBA, how can I batch convert field attributes in blocks to text attributes while retaining the blocks? Is there a simple way to univerally convert them all at onceusing VBA? The plotted values for the fields must be retained, too.
Explode will not retain the value of the field.
Burst will not work as it explodes the blocks as well.
You can right-click on the field and slelct "Convert to text" from the RCM. So I know that the process exists within CAD, just need to batch the process for a quantity of DWGs at a time - in VBA.
I am a little new to assigning attributes. My company had a block with two attributes that I need to alter. When the block is inserted, it asks a quantity. The other attribute is titled location. I am told if needed, all these quantities can be totaled per drawing. It has a title of "location". Two things: How to replicate this action? And is there a way to show all properties of a field for an attribute?
I am using M Text Attributes to store imperial lengths in the drawing, feet inches and fractions (stacked). When I read back the Text String property which, is the M text Attribute.Contents parsed, I am having problems because the parser does not add a space between the inch and the fraction. So, is there any setting that could be used to tell the parser to add the space between the inch and the fraction?
I was given a customers title block but there are no defined attributes. I'm using AutoCad Electrical 2010. I have to double click on the title block and the edit block definition box pops up. I select the block to edit and click ok. I would like to use the enhanced attribute editor on these title blocks. Is there a way to define the attributes on this kind of title block using the enhanced attribute editor?
I have a block which includes some Multiple lines attributes.
Now I don't want them to be multiple lines any more.
How can I change them to single line attribute?
In the block editor, the "Multiple lines" in the properties palette is gray out. I have create single line attribute and replace the multiple line attributes one by one.
Why don't make the Multiple lines property editable? This problem is since Multiple line attribute first time introduced.
Interesting thing is single line attributes can easily changed to multiple line attributes through the properties palette!