- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
Hi folks,
I am looking for a method to inherit attributes from one block to another, perhaps using fields, and using plain vanilla AutoCAD 2016.
One block is the "Device" block and carries a "device name" attribute
A second block is placed inside this block (not nested) and also has an attribute named "Device Name". It needs to match the name of the Device Block that it is located within.
Multiple of the second blocks are placed inside the Device block.
We would like to automate the "Device name" attribute of the second block so that it inherits the name of the Device block.
Can anyone think of a way to do this? Would this require lisp or C progrmming, or could it be done within the application?
Thanks in advance for your thoughts.
¡Resuelto! Ir a solución.
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
Hi,
>> A second block is placed inside this block (not nested)
As I don't understand this - on one side one block "inside the other", but not nested (?) - can you upload a drawing with 2 or three samples with attributes filled manually like you want to have?
- alfred -
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2025
------------------------------------------------------------------------------------
(not an Autodesk consultant)
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
Hi dc,
Welcome to Autodesk Community.
By using fields you can achieve this.
While inserting/After inserting the second block right click inside the Value box of attribute value to select 'Insert filed'
- Select Object from Filed category
- Select Object from Field names
- Click the Block reference button from Object type and select the First block.
- Then select the attribute tag from Property filed
- Click ok to inherit the first block attribute value to second block.
- Multiple instance of second block can be made by simply making copies.
Click the +sign to see the image and please find the attached drawing also.
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
Thank you Vijayan!
I tried your solution and it works well. I am now learning much more about fields and of course want to push the automation as far as I can.
Now within your example, is it possible to make a field that acquires a value from another block attribute, based on the location of the blocks insertion point relative to a boundary of the "host" block? Please see attached dwg file illustrating this.
These drawings will all be 2d. There will never be an overlap between one "host" and another.
Wondering if this could be accomplished with a Diesel expression inside the field?
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
Did anything come of this query? I would love to be able to do this.
I.e. move a block from one position to another (from within the boundary of one 'host' block into another 'host'), and its atributes automatically take on the values of the new host. E.G Move a table from the kitchen to the lounge and the table blocks attribute <host room> changes from kitchen to lounge.
Anyone?....
TIA
|