AutoCAD Dynamic Blocks :: Delete Last Attribute In All Of Specific Blocks
Jan 24, 2012
I have the same block repeated multiple times in a drawing, and I want to delete the last attribute in all of the specific blocks. When I edit the block in block editor, the attributes do not show up. After I explode the block, there is no text. The attached image shows the properties of the block.
I wish to create a dynamic block containing some attributes. These attributes are inside rectangles that can't be modified in length using linear parameters ; but the attribute has to be always in the middle of the rectangle. So, I draw a line inside the rectangle (in a hidden layer) and insert the attribute with center justification (not sure for the translation) that I place in the middle of this line ; then I put a coincidence constraint (not sure for the translation, but it's the first one) linking the middle of the line with the middle of the attribute.
But here's the problem : when stretching my rectangle, the insertion point of the attribute suddenly changes from "center" to "bottom left".
I am looking for a way to use the ATTIN/ATTOUT workflow to bring in data from an excel spreadsheet to drive the size of each of my block's instances. The block will be simple, a rectangle, with width and length parameters. For each entity in my excel/csv file these parameter values are spelled out. I know how to display these parameters in my attributes, but I don't know how, if I were to feed in these values, to drive the geometry. If there's a better way to take a list of width and length values to generate a series of blocks each with a rectangle containing its respective size.
I need a rectangle block which on insertion prompts me for some data (name/tag/item number) and then displays it (this I can do). This is al pretty straightforward. But I also want to be able to fill in width and height and then have the block stretch to the correct size. So basically what I think I need is to have the value of a parameter refer to the value of an attribute. I've gotten it to work the other way around, where the attribute displays the size of one side of the rectangle (after stretching and regenerating), but I'd really like to have it working the other way.
making dynamics blocks and more over utilizing the attribute feature but I have discovered some chnages tat i need to make.
My question right now is, once an attribute is created and put into the block editor is that it? Ifi need to edit it can i edit it? I don't really see an option or command right off that would allow me to do this ?
I am trying to set constraints to this block and having some issues. I want to constrain the attribute text so when I stretch the block from the grips the text centers itself automatically within itself. The constraints will not let me pick the grip on the attribute text as a point.
I've built this nifty block for holdowns, but the attributes get all goofy on me when I use the flip command. The problem is that the justification of the attributes does not change when they are flipped - so if I modify the text in the attribute while the block is in the FLIPPED state, how to modify the justification?Check out the attached file to see what I'm talking about. The block instances are numbered so you can follow along:
1. block is inserted 2. attribute text is modified in NOT FLIPPED state - everything is dandy 3. block is flipped 4. attribute text is modified in FLIPPED state - text justification is jacked up 5. block is flipped again, in order to demonstrate the continued jacked-uppedness of the attribute
What I'm trying to do is have a graphic scale with a set list of scales the user can pick from. This was easy using the Visibility Parameter.
However, I want to add a "custom" vis state where, once they select this option, the attributed definition box will pop up and give them the option to input whatever scale they are using.Check out the attached .dwg to see what I've done so far (I just have the attributes on the "custom" vis state).
Fairly versed with Dynamic blocks here, so the first thing I checked was to make sure that my FIELDEVAL was set to 31 to ensure updates but this one isn't working for me and may be a limitation of the software?
I'm making a dynamic block for my users who aren't familiar with electrical wiring so I am developing a series of blocks for our typical wiring configurations. In this instance, I've setup a pair of attributes to allow the changing of wire color codes and I want to use that single attribute entry to used in multiple other locations that are also connected to that conductor in certain situations. I have setup a field within this block to be the "VALUE" of the object (the attribute) in order to accomplish this. Unfortunately it is only displaying the default value I have for the attribute and will not update either upon insertion of the block or after an edit. Is this beyond the capabilities of Dynamic blocks or do I need to take a different approach?
I need to create a small table to ID the User, Computer name, Door Key, etc for a floor plan drawing of our office. I'd like to get this done in Excel and link it all so the bldg manager can make changes to the drawing without me. I have created the excel file and created a "name set" in excel for each room. In Autocad 2013 I have inserted a table from a data link and pointed that link to the named range of the room (the named range in excel is an 8 cel block with al the info I need repeated and uniquely named for each room.
This works great...so my next step is to create a block out of the table and make the DATA LINK a variable attribute...that's where I'm stuck. i cannot figure out how to do this. I would love to be able to INSERT BLOCK and have one attribute question...ROOM NUMBER?. That should look to the excel NAMED SET the corresponds and populate the table.
In autocad 2011 ... I am looking for some sample code to delete all blocks with specific names in a multi layout drawing. There may be multiple blocks with the same name.
This is what I have so far ... this code collects the objects and loops through the layouts and the blocks ... if it finds the text "REVBLK" in the block name ... I want it to delete the block ... it does delete some of them but not all of the blocks ...
Dim E1 As Object Dim ATS As Variant Dim EA As AcadAttributeReference Dim objLayouts As AcadLayouts Dim LayerNextNo As Integer Set objLayouts = ThisDrawing.Layouts LayerNextNo = ThisDrawing.ActiveLayout.TabOrder
Attached is a block that I use a lot. Originally I had two separate single line text attributes for the "title". I modified it to have a single multiline text attribute instead. I want this attributes text box width to stretch along with the line below it, so that long text strings will automatically adjust to single or multiple lines as necessary and not run off the end of the line. As it stands now I have to stretch the line and then adjust the width of the text box to match.
Also it would be nice if the bulk of the text would stay on the bottom line and only the "overflow" would move up to the next line.
I've made annotative blocks and I've made dynamic blocks... My intent is to integrate both but I can't find a way to move dynamic block parameters separately at different annotative scales.
In other words, if I insert an annotative dimension and add multiple scales I can move the dimension grips independently at each scale. If I insert a dynamic block I want to be able to use the dynamic block's action "grips" to do the same. However, with a dynamic block, if I move a stretch action at one annotation scale it moves the action at all annotation scales.
is there an way to display attribute data using a multi-leader inside a single dynamic block.
To elaborate, I'm trying to create a borehole dynamic block that I can enter the ground level and end of borehole level as attributes, and have them show up in a multi-leader. The reason for the multi-leader is that I can add a background mask to it and it automatically adjusts the length of the outline obox around it.
I just want to insert the borehole block from a tool palette, enter a couple of attributes, stretch the bottom down to whatever level, and I'm done.
I've been playing with it all weekend trying to get fields to show the attributes and I can get it to work if I use another block for the levels (multi-leaders), but even then I have to into the fields an mess with them. It's go to be east so my CAD guys can do it without slowing down, otherwise they may as well carry writing everything out long-hand as they do now.
I have been trying to convert my offices blocks to dynamic blocks and this one is giving me a hassle.
Essentially we have a line with an arrow at the end of it to show drainage pathways. I added a multiline attribute so we can add the percentage along the line with a mask. The line, arrow and attribute all need to be able to be aligned perpendicular or tangent to a given line. Everything looks great until the arrow flips sides to work from the other direction and then the text is mirrored backwards.
Mirrtext is set to 0 and I even tried it while in the Beditor to see if there was independent. Multiline or Regular attribute have the same effect as well as if they are locked position or not.
I tried adding a flip, but then the mirrortext settings work just fine and the text won't flip back.
I have a block that I want to show on a vertical exaggeration of 10x. How do I make it so that a block has a Y scale of 10 without the attribute text inside the block being stretched in the Y direction 10x?
I would like to use a Y scale of 10 rather than a block with 10x the length because I have a field that returns a length parameter and I don't want that value to be 10x what it's supposed to be, and it would make things much easier to not have to multiply my values by 10x each time I use the block.
I have a block which is a simple rectangle with a height and width attributes that when I edit, change or update the height and width attributes I want the rectangles height and width to change as well.
I know I can go backwards using fields and the attributes would show the stretched length and width but is it possible to go the other way?
We have a title block wherein the Location attribute is normally a single line, but occasionally is two or more lines. Within the title block this attribute is surrounded by lines, left, right, top, bottom.
We would like the bottom line to move down when the user adds additional lines to the attribute.