update d1 parameter, and as a result of that the length of the block is also updated. To fix this problem we are going to use SETNESTEDOBJECTSBYBLOCK. SetNestedObjectsByBlock is a great command that automatically changes the layers of all the objects inside a block to Layer 0. select the block to set that value to the QUANTITY attribute value. Otherwize it works the same as the rotate command. To do this, you must first select the attribute of the progressive block, this is an invisible attribute, but the list just before the selection shows it and then hide it again, this is done with the command «Attdisp«, Then the attributes of the cut and fill areas will be selected and these will be updated according to the values of the areas found. Check each attribute for match on first element in list below. (defun c:attrrenamelist ( / xen enn edd ss slen ix atnam namelist hit blkent matchname newed x) Process all block instances on active drawing. If you start it then select a single object it should work like you asked. If you ever want to change the tag names for attributed blocks use the following, creating a list of old & new tag names.
AUTOCAD LISP CHANGE ATTRIBUTE BLOCK WITH COMMAND SOFTWARE
Usually in that situation, if we had only one or two blocks we can manually go to the Block Editor and change the layer of all the objects in the block to Layer 0.īut in our case, we have tenths of different blocks that are most likely automatically created by Architectural software and the task will take ages. I replaced rotate on my menu with this one. Attributor supports insert and edit functions on standard (not dynamic) blocks with attributes through the 2 commands provided OSBLOCKINSERT and OSATTEDIT. That is why it is best to create blocks in layer 0. That way block will take the settings of the block itself – Color, linetype, etc. They are all set in different layers so they care about their own layer color not the one that the block carries. The problem is not in the layer of the block itself, it is rather in the objects inside the block. But when I change the color of the layer the block does not change! So what exactly is the problem? Well, I used the Command SetByLayer to move all the properties of the Architectural drawing to ByLayer state in order to operate with them easier when I X-ref the file into mine. All the objects were blocks and all the objects in the blocks had different layers assigned to them. I assume that the Architect had used Revit or other similar software and then exported his drawing to AutoCAD. Select the block containing the attributes. Select Block Editor from the Ribbon Insert tab Block Definition panel. The BATTORDER command is only available in the Block Editor which is opened using the BEDIT (Command). Today I received one architectural site plan with really poor linework. Use the BATTORDER (Command) which specifies the order of attributes for a block.