I am trying to insert a text field into a block attribute and setting that field to display the information of an attribute in another block. What happens is that when I close the file and re-open it the text field loses its connection to the attribute that it is referencing.
Now, I have been able to make this work in the passed, however the difference now is that I am asking the text field to reference an attribute of an annotative block. That appears to be the reason it does not work.
How to make this work with annotative blocks? Is it a system variable I can change?
I created an attribute called ScaleA1, which I want to double click on this block and enter that number.
Then I created a text object with 2 fields in it. The first field is set to read the Value of that Attribute. The second field is a formula (2*Value of Attribute).
However, instead of the field displaying the Value of the Attribute, it displays the Default of the Attribute.
I hope to fix this bug so that it will update when I change the attribute from paper space.
Currently it will only update if I go into the block editor and change the default of this attribute.
It has length and width stretch actions activated by grips. (Works fine).
It has an attribute for the user to type in a height value. (attribute insert box appears on block insert and when double clicking block).
It has Mtext "worktop [field] High" the [field] is looking at the attribute value so in theory should return the value the user types. But no only ---- shows. regen/regenall/battman fieldeval 31
Am I missing something i have pointed the field to tag/prompt as test and they show up in the mtext.
I have a dynamic flat screen tv block. Its length flexes to match the lookup table chosen size...32" 42" (the length parameter being a defined mm length) etc i want to display the 32" 42" etc items from the lookup properties table, but i'm at a loss as to how to go about it. currently i am using an attribute with a field pointing to lookup parameter/object/lookup description string but it's returning hashes.
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.
Is that possible to have a lisp to extract the Field Expression of a attribute in a block?Specifically, to extract the property VALUE (TextString) of this attribute.After to extract, I would like to put this text extracted in a different layout tab, in the same drawing. In this way, I will have a text linked to the attribute value between two layout tabs. So, when I have to change the attribute value, the text will be updated automatically.
I know that if I use the FIELD command to manually copy and paste this value it will work, but when I have a lot of attributes it becomes very laborious.
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.
select 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")
Any way of creating a block attribute that will reference the z value of a separate 3d model (topographical survey) at a given point?
I know the z value of the block itself can be listed as a simple block attribute but I need the reference to check for the z value of an unlinked model which will be inserted/ x-reffed beneath the block.
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 created a rectangle whose length changes.The value of the paameter "Dist1" is this length field that I associate to the attribute value. Basically, echo length from Dist1 into the attrib value.
The problem is when I insert the block into the drawing the value is shown as "DIST1", even after regen.
Once I pull the grip point to a new length and regen it still shows "DIST1".
If I go into the ddedit and select the edit box (for multiline data field) the shown value will correct itself, but only one time.
If I change the length again, the dimension does not update.
It worked fine when I tested the block but is having issues days later.
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?
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 trying to put a field formula in an attribute value. Basically I have a block that has a attribute called QTY and it is equal to 1. I can get the object property to equal 1 with this expression:
In the attribute dialog box it will show 1+1 instead of 2. My question is how do I get it to show 2 with out opening the formula box and evaluating it?
Is it possible to make an attribute or a field in a template with page numbering for layouts? Is it possible to make an attribute or a field in a template with the name of the layout?
I am using the Sheet Set manager to just publish my drawings to the named plotter (Adobe PDF). I an NOT using any fields. I do not have any sheet numbers assigned in the sheet set. Each drawing is a separate file with only one layout tab in each file. On each drawing, the sheet title and drawing number are within an attributed block, with the drawing number in an attribute with a tag of SHEETNO. Everything is in RomanS. Single sheets plot fine. This is the only sheet set.
The problem is that the sheet number are altered when I use Sheet Set Publish to make a multi-sheet PDF. The manually inserted plain-text sheet numbers are all in the format X#.# (A1.1, A2.3, etc.). Two things happen:
1. The number after the period is printed in a different font on all sheets (NOT RomanS - the ends of the stroke are square) .
2. Over half the numbers are changed (the first sheet, the cover, is blank and not changed):
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 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.
I need to match few attribute values from one block to different block. I download a lisp file called; ca.lsp which can match the single attribute value. I modified it for more than one attribute value matching. It is ok but still wish to overcome two issues for batch prcess
1. picking up the blocks by selection
2. click the alternative block numbers of times to match the numbers of attribute values I needed.
How to modify this lisp I can run it by block name selections instead of picking selection which enable me to run batch process for numbers of drawing? That will be good...
Lisp & Demo file attached (Match attribute value, A, B & C to Attribute 1, 2 & 3).
Is there a way that I can create a block with text ('A') and when I insert the block and populate the block another block block will update also? I am wanting to create a block for x-sec flags, and detail callouts that update their detail titles.
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.
I just started a new job and am struggling to set everything up the way my old company had AutoCad configured. My old company actually had people that were involved in writing the code for AutoCad on the payroll, so hopefully what I'm looking for isn't some intense computer programming issue.
In short, I am trying to be able to create a generic title block in model space, and reference that title block into paper space of a new drawing without having to create a new tab or anything first. A new paper space tab is automatically created upon attaching the new title block. My old company had its own custom menu bar with lots of custom commands, so the work flow would go something like this: "Old company name" in menu bar -> "Insert" -> "Title Blocks" -> "24x36 title block" (or whatever size we wanted to use obv). Once the desired title block size was selected, a new tab would be created in paper space with the title block as an xref, and a copy of the generic title block was saved to the main folder containing drawings of the project, and could be edited with the specific project info from there.
Is there a semi-easy way to do this, or is this a coding issue that a non-programmer such as myself might have some difficulty doing?
In the blockeditor I can change the draworder so the attribute is partly under some lines. But the draworder in the blockeditor of the attribute doesn't work in the normal modelspace; the blockattribute is allways on top.
We are using both AutoCAD 2013 and AutoCAD LT 2013, and are having some difficulties doing something that seems reasonable...
Basically, we made a block that has the following attributes:
LENGTH ORDER CUT-OFF MATERIAL CUT-LENGTH CUT-WEIGHT CUT-PER-FOOT
When we define this block, we set the value for "CUT-WEIGHT' as (CUT-LENGTH - WEIGHT-PER-FOOT) and "CUT-LENGTH" as (LENGTH - CUT-OFF)
Those formulas work when we initially create the block. The goal is to be able to change the "LENGTH" and "CUT-OFF" attributes, and have the block automatically calculate the CUT-WEIGHT and CUT-LENGTH based on those values.
The issue is that once the block is created, the formulas no longer work. We have tried Update Fields, we have tried REGEN, REGENALL and more, but nothing seems to work. The only thing we have been able to do is define the block, then basically create the block a second time, with those respective attributes being linked to the initial block, which is both not ideal, and created other problems.
I am attaching a copy of one such block, how to make this block work properly.
The final use of this block is to insert it into Shop Drawings for our Companies Products and then link the block to a table that shows the values of the blocks as a Bill of Materials.
I am unable to currently upload a copy of any Shop Drawings, but if need be, I could ask for a "Dummy" Shop Drawing that I could upload.