AutoCAD LT :: Field Referencing Block Attribute

Apr 9, 2013

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?

View 5 Replies


ADVERTISEMENT

AutoCad :: Use A Field To Read Attribute Within Block

Jan 8, 2013

See block attached.

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.

View 5 Replies View Related

AutoCad :: Mtext Field Within Dynamic Block Won't Show Attribute Value?

Jul 16, 2013

I have a dynamic block.

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.

View 5 Replies View Related

AutoCad 2D :: Dynamic Block Field In Attribute To Return Look Up Description

Oct 3, 2013

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.

block.png

View 2 Replies View Related

AutoCAD LT :: Importing Drawing As Block With Field References To Attribute Values

Nov 25, 2013

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. 

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Extract Field Expression of Attribute In Block

Mar 8, 2012

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.

View 9 Replies View Related

AutoCAD VB :: 2011 Batch Convert Field Attribute To Text Attribute In Blocks Using VBA

Jun 3, 2011

I've got hundreds of files to convert. 

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.

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Check Block Attribute Then Change Different Attribute In Block

Aug 31, 2012

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")

[Code].....

View 1 Replies View Related

AutoCad 2D :: Z Value Referencing Block?

Dec 6, 2013

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.

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Transfer Attribute Block Values To Another Attribute Blocks

Jul 3, 2012

I wanna transfer my attribute block values to another attribute text blocks , is there any lisp for that?

Is there a possibility for sum tag values of choice attribute blocks to inside of another attribute text block ?

View 2 Replies View Related

AutoCAD 2010 :: Change An Attribute From A Value From Another Attribute In The Same Block

Oct 5, 2012

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 Related

AutoCad 2D :: Field Text Match Attribute Value

Jul 6, 2011

Any success in having a Field text match an Attribute value? I can't get it to work.

View 9 Replies View Related

AutoCAD Dynamic Blocks :: Field Value Not Updating Attribute Value

Jan 29, 2013

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.

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: How To Read Attribute Value Which Is A Field

Dec 15, 2011

(cdr (assoc 1 (entget (entnext (car (entsel))))) ...

gives the string value of the attribute, but i would like to retrieve the field value attached to that attribute.

View 3 Replies View Related

AutoCAD 2010 :: How To Choose Attribute / Field Data From A List

Mar 28, 2012

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?

View 4 Replies View Related

AutoCAD 2013 :: Unable To Re-edit A Field For Attribute Definition

Sep 3, 2013

I have created an attribute using a date field. Now I'm unable to edit it  and change or review it.

View 6 Replies View Related

AutoCad 2D :: Alter 2 Attributes / Show Properties Of Field For Attribute

Dec 11, 2013

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?

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Put Field Formula In Attribute Value?

Sep 7, 2011

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:

%<AcObjProp Object(%<\_ObjId #########>%).Textstring>%

The expression above will show a value equal to 1 (as I would expect)

Lets say I have two blocks now and I have the lisp routine combine the field values to get the expression below.

%<AcObjProp Object(%<\_ObjId #########>%).Textstring>%+%<AcObjProp Object(%<\_ObjId #########>%).Textstring>%

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?

I have also tried.

%<AcExpr(%<AcObjProp Object(%<\_ObjId  #########>%).Textstring>%)+(%<AcObjProp Object(%<\_ObjId  #########>%).Textstring>%)>%

and

%<AcExpr((%<AcObjProp Object(%<\_ObjId  #########>%).Textstring>%)+(%<AcObjProp Object(%<\_ObjId  #########>%).Textstring>%))>%

View 5 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Make Attribute / Field In Template

Jan 17, 2013

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?

View 7 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Field Object Attribute In Xref?

Oct 19, 2011

Is there way get field object att in xref ?

View 3 Replies View Related

AutoCad :: Sheet Set Publish Alters Attribute That Is NOT A Field (makes SSM Useless)

Aug 11, 2013

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):

T1.1 -> T1.- (the dash character)
A1.1 -> A1.1 (OK number)
A2.1 -> A2.1 (OK number)
A2.2 -> A2. 1 (note the extra space)
A2.3 -> A2.2
A3.1 -> A3.3
A4.1 -> A4.1 (OK number)
A4.3 -> A4. 2 (note the extra space)
A8.1 -> A8.3
A9.1 -> A9.1 (OK number)

AutoCAD 2009 on Window 7. No other similar problems.

As it is, Sheet Set Publish is useless. (I know, get an updated version of AutoCAD - it's in the works).

View 4 Replies View Related

AutoCAD 2010 :: Inserting New Block And Entering Attribute Data By Selecting Another Block?

Aug 13, 2012

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.

View 5 Replies View Related

AutoCad :: Attribute In Title Block Exists In Block Editor But Not In Project

Sep 6, 2012

Autocad 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.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Match Multiple Attribute Values From One Block To Another Block

Feb 12, 2012

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).

View 3 Replies View Related

AutoCAD Civil 3D :: Transferring One Block Text Attribute To Another Block?

Nov 8, 2013

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.

AutoCAD Civil 3D 2012 SP4
Windows 7 (64)

View 6 Replies View Related

AutoCAD 2013 :: Importing Attribute Data From A Block Into Another Block?

May 30, 2013

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.

View 2 Replies View Related

AutoCAD Inventor :: Block Attribute In Part Sketch Block

Feb 28, 2012

Is it possible to create a text block attribute in part sketch mode?

View 2 Replies View Related

AutoCad :: Referencing Title Block From Model Space Into New Tab Of Paper Space

Jul 11, 2011

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?

View 8 Replies View Related

Maya :: Cannot Write Expression In Attribute Field

Feb 15, 2012

I can't write an expression in an attribute field.

View 2 Replies View Related

AutoCad :: Creating A Block With Block Attribute?

Jun 10, 2013

I'm creating a block with a block attribute.

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.

View 9 Replies View Related

AutoCad :: Field Inside Block

Jan 23, 2013

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.

TAG - TUBE STEEL 4 x 2 x .25.dwg

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved