AutoCAD 2010 :: Add Set Of Attribute Data To A Block That Already Exists Within Drawing?
Mar 22, 2012I am trying to add a set of attribute data to a block that already exists within a drawing.
View 1 RepliesI am trying to add a set of attribute data to a block that already exists within a drawing.
View 1 RepliesAutocad 2011, Electrical package,
I have an existing title block a few text attributes, to which I wish to add a watermark. I have added it in the block editor as a normal attribute, with the same details as the other attributes that work, only a different tag name. It has a default value, "DRAFT" and is tagged "WMARK". It works fine in the Block Editor, and If I test the block I can edit it to display whatever I want, but if I save the block and open it from Autocad proper, the attribute is not in existence, either as a default value, or editable from block properties, attribute editor or title block editor, whereas all of the other attributes are there. I have used BattMan to verify the settings of the attribute, and the only difference is that the others all have "L" in the "Modes" column, but I think that means that their position is "locked" whereas my new attribute is justified "aligned" therefore cannot be "locked" (This is some assumption on my part, as the documentation on the "Modes" column is almost non-existent). I cannot afford to waste much more time on this issue, as the boss is breathing down my neck, but editing watermarks on every drawing after every revision is frustrating, when it could be an attribute that is editable from the title block editor.
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 am looking for some code or something which can change the title block revisions from "01" to "02" in multiple drawings.
The title block revision block is set in attributes.
Is it possible to create a 'drawing scale' defined attribute inside my title block when brought into paper space? I tried setting it up using 'plotscale' fieldname with various formats and it keeps coming in as 1" = 1' or 1:1 rather than 1" = 20' because that's what my plot scale is inside paper space but my drawing scale is 20 scale. If I bring the title block in model space, it adjusts, but I don't plot from model space. Surely there's a way to make this automated inside paper space.
Also, I just setup a 'Date' attribute inside my title block today. What's the difference between Date, Saved Date and Plot Date? Will 'Date' update if its in a drawing and opened up a month from now and saved or do i need to take 'Date' out and replace with 'Saved Date' or Plot Date'?.
I have 2 drawings with the following content :
Drawing 1 : Contains tree blocks that have a specific scale dependant on the tree size
Drawing 2 : Contains a block with just a point and attribute data about the tree (name, size etc.)
This block is approximatly at the same location as the tree block (0,1 m precision)
Problem I want to join these two items together. In other words, in the tree block that is scaled correctly i want the attribute data with the name, size etc. These blocks don't have a corresponding unique number or something like that.
Is it possible to setup a block so that an attribute position remaines fixed (absolute to drawing) when moving the block?
I've been playing around with creating a Coordinate Block by following these instructions: [URL] ........
What I would like is to be able to set the position of the Coordinate Label and Coordinate Object independently, so that if I move one in the drawing, it doesn't move the other. I've looked into Dynamic Blocks, and the "Lock Position" parameter. I can move the attribute independently, but still everytime I move the block, the attribute moves too.
Our company uses a custom Sheet/Coordinate system to follow flyoffs across a drawing, and I'm trying to learn how to automate the process. It's completely manually right now, so any changes to a drawing creates a lot of work renumbering these flyoffs.
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.
View 2 Replies View Relatedwe have a block that we use to identify rooms. that block has 3 attributes: rooms name, rooms number and surface area.
A former colleague once showed me how to do this but I can't reach him... How can I inquire the data from an area and tag-it right to the surface area attribute of my block? I don't mean pick a pline, list and edit the block... it's something like pick the closed pline and the "area" data is displayed in the right tag of my block?
I am currently trying to make my AutoCad more powerful as a tool of Engineer but not Draftmen (My boss never thing about it, I could only get a standard AutoCAD, not AutoCAD-EMP).
I want to make it a tool for myself to analysis the building system, with excel (and VBA)
The first tool I wanted to create is an underground drainage capacity analysis tool. But I meet the first difficulty, how can I automatically transfer the information inside CAD drawing to the excel?
Say, There is a drainage system with 2 manhole and 1 pipe,
the Manhole have 3 attribute : Name, Model, Level, (and the X-Y coordination),
I Create a Block with attribute "Name ; Model ; Level".
and then I insert the Blocks and place it in correct location inside the Layout Plan.
How can I create some script to "Scan" all Block inside the drawing and make an excel file with data like:
Block-Serial, X-Coor, Y-Coor, Rotated Angle, Name, Model, Level.
I found a lisp to get block attribute data to a other block. See attachment. I can only apply it to one block. I like to apply it to selected blocks or blocks in a group. Is this possible?
View 9 Replies View RelatedHow 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.
View 1 Replies View Relatedselect all blocks on certain layers in a drawing, check attribute CIRCUIT in each block if it starts with MS then attribute CONTROL = switched. I hope thats clear enough the way
(defun c:control()
(graphscr)
(Setq sc (ssget "X" '((0 . "INSERT")
[Code].....
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)?
I'm trying to build a routine for my job to insert a block which consists of 3 single line variable attributes in a specific order. I need to be able to do this on many different drawings, and I would like to share this ability with my coworkers. Using the DesignCenter is not an option. In order to do this, I saved a drawing which consisted of the three attributes in the layout in which I need them to appear, however the order in which it prompts me to enter them is reversed. I already know how to set the order of attributes in an EXISTING block definition using the BATTMAN command, as every time I run the routine again, I'm redefining the block definition.
I'm not sure if it's important to know this, but the routine consists of a button with the following macro:
(command "-insert" "c:/folder/drawing.dwg" (getpoint "
Choose Insertion Point: ") (* (getvar "ltscale") 2) (* (getvar "ltscale") 2) "0");
EDIT: It works perfectly fine on my home computer, though my home computer runs an older version of acad.
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.
View 9 Replies View RelatedI am trying to create a block with 1 attribute (ELEVATION) showing a finished floor level and another text (field) to show another level derived by the sum of the attribute value + and additional (fixed) number, say 100.
I have tried using fields inside an ATTRIBUTE or a simple DTEXT but the field does not update, it only picks up the DEFAULT of the attribute, not the user entered input. How can I do this?
attached is the block
trying to set up a system for a less advanced user.
basically they donot like the advanced attribute menu when you edit a block with attributes in them.
looking at the varriables the end user likes the Attdia set to 1 when you insert a block it then displays nice clean menu which just has the attributes you can edit.
can this be set so when you later edit a block this menu appear rather than the advance attribute editor?
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.
View 6 Replies View RelatedHow to get attribute values to match in the same block? In my titleblock have the clients name displayed a couple of time in the block. I want to be able to change the clients name in one spot and have it change in the other. I have tried to use fields but the field will only display the default value of the attribute.
View 2 Replies View Related How to make an attribute block that contains a dimension?
I’m wondering if there is a way to create an attribute block that contains the particular text and the value of the dimension length. More specifically, in the screenshot below in need to show the steel bars (as an attribute) along with the value of the dimension of the bar such that in case the block is stretched then the value of the dimension length changes. I think the block itself needs to be dynamic.
The issue here is having an attribute for the “steel bar type” and its length. The “steel bar type” must be editable while the length must be written automatically to reflect the length of the bar.
Software: AutoCAD 2014, AutoCAD C3D, AutoCAD M3D, Revit
Windows 7 (Ultimate 64 bits),
Firefox 20.0,
Kaspersky 2013.
I have a simple block with a single attribute that I am trying to sync. Someone previously created this block, defined it on a named layer with the attribute defined on the same layer with a user font, then inserted it on three different layers. Now, even though I have redefined the block on layer 0, set everything to BYBLOCK, all the attributes are still on those other layers. And when I try to use ATTSYNC, all the values disappear. I don't get it. Isn't ATTSYNC supposed to retain all the values?
How can I get all of these blocks with their attributes and values intact on the same layer?
i have a for example a block with one attribute and would like add a new attribute. i´m trying to read the current block and redefine - it comes a new attribute in propertieswindow but not graphical.
(defun c:ent () (setq bn (getstring "
give a block name ")) (setq bez (getstring "
give a attribut name ")) (entmake (list (cons 0 "BLOCK")(list 10 0 0 0)(cons 2 bn)(cons 70 2))) (setq fe (entmakex (list (cons 0 "CIRCLE") (cons 8 "0") (cons 10 '(0 0 0)) (cons 40 1)))) (entmake (list (cons 0 "ATTDEF") (cons 8 "0") (cons 10 '(0 0 0)) (cons 11 '(0 0 0)) (cons 40 1) (cons 1 bez) (cons 3 "TOP") (cons 2 "NAME") (cons 70 0) (cons 73 0) (cons 50 0) (cons 41 1) (cons 51 0) (cons 7 "STANDARD") (cons 71 0) (cons 72 0) (cons 210 (list 0 0 1)) (cons 74 0) (cons 62 256) (cons 39 0) (cons 6 "BYLAYER"))) (entmake (list (cons 0 "ENDBLK")(cons 8 "0"))) (entdel fe) (entmake (list (cons 0 "INSERT")(cons 2 bn)(cons 10 '(0 0 0))(cons 66 1) (cons 62 256) (cons 39 0) (cons 6 "BYLAYER"))) (entmake (list (cons 0
[code]....
We have generic drawings of assemblies we use in layout drawings as standard details. We insert them as blocks with one or two dimensions that vary (geometry remains the same-these are just representative for information).
We could define these as attribute values so that a user types a length that displays in the drawing but if we wish this to be part of a dimension we would have to explode the dimension to manually replace the mtext dim value with an attribute tag.
This seems unsubtle so I edited the dim value to be a field referencing the attribute value and made the tag invisible. This worked in the drawing-the attached shows the attribute tag ALL THREAD and the resultant dimension text (as a field value) replaced with the default value LENGTH.
When the drawing is inserted as a block it duly prompts for a value for ALLTHREAD and any value can be typed-`1200, 3500, 1672 etc. but the dimension does not update from the default value LENGTH, even after using attsync, regenall. So, if the drawing recognizes the attribute then how come it cant recognize the graphic via a field reference and update it? Is it buried too deep in the database hierarchy for LT to make sense of it maybe?
I dont want to explode the dim but it looks like I may have too if this cannot be made to work.
We have specialized electrical schematic drawings on what is termed roll-drawings. These roll-drawings are simply 12" tall and variable width type drawings. We've had some as short as 24 inches and as long as 900 inches. As a result we use these section dimensions to distinguish circuit boundaries. It's not a real dimension, just a way to distinguish what circuit is located where. I've tried to recreate it using a block for improved automation as currently we just use a lisp routine that draws an arrow and lines. It looks like the screen capture of my block below. Is it possible to have the inside endpoints of the lines automatically stretch outwardly toward the arrows as the attribute Value changs?
View 3 Replies View RelatedIs there a way to enter the greater than or equal symbol into a block attribute value...?
For example...TEMP IS >= 20O F
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'm having an issue with creating a column bubble block that would have an attribute and both be annotative.
I've created a 3/8" dia circle with 3/16" text and the text is NOT annotative. The bottom of the circle is at 0,0 with the text justification at MC
I create the block of the circle and text and make it annotative and save
When I insert it into another drawing, the block inserts properly and scales as desired. The issue is when inserted, I'm NOT given the option to fill in the column # attribute. I can double click and enter text, but this should happen during insertion.
When I create the block, if I do NOT select the attribute as part of the block, I am given the option for the attribute during insertion but it does not scale automatically.
What am I doing wrong? I'm attaching my block as an example.
I have only one user with this problem. He tries to edit an attribute block and when he selects one of the values and erases it the default value doesn't erase. He then has to enter some text and erase that and it works.
View 3 Replies View Related