AutoCad :: Dynamic Block To Rotate Attached Attributes
Nov 18, 2013
I'm trying to get a dynamic block to rotate the attached attributes from a left justification in the vertical position to a center justification in the horizontal position. I managed to do this with 2 Visibility States, but anyway to do this with only the one set of attributes. I'm using AutoCAD 2012.
I have this Dynamic Block which has a few distance parameters on it and an attribute at beginning of each parameter which are attached to a stretch action. If manually bring the block in. And set a value to attribute and then stretch the it , attribute move along with action. But when I do it pragmatically it doesn't . Basically attribute stays at original location of original block before stretch. What is wrong with my code. Or Shall I do something to Attributes when I change the distance parameters in Program? I don't know .
I have a function which bring the block in and set attribute first and then another call which change the distance . So I don't show the first function which to me works fine . The problem is this part.
For Each myBRP As DynamicBlockReferenceProperty In myBRC For I = 1 To NumbderOfDistanceParamsinDynBlk If myBRP.PropertyName = "Distance" & Trim(i.ToString) Then myBRP.Value = DynDistancevalue(i) End If Next Next
I would like to change sub block from a visibility after setting it. Here an example of code to get the right visibility, I don't really know how to update a sub block by name or by handle(seems to change inside dynamic block).
Dim Block As AcadBlock Dim BlockRef As AcadBlockReference Dim DynEntBlock As AcadEntity Dim DynObjRefH As IAcadBlockReference [Code]........
I have dynamic block with visibility states and Lookups. I tried to add attribute (field with block reference property) which suppose to be updated according to Lookup. But it didn't happen Attribute still the same as first lookup props, but if I insert the block(pic1) and select another properties from the list (pic2-3), when open and close the block editor(4) - everything is ok. Is it possible to solve this problem?
How I rotate a block but set the text to stay readable.
At the moment I have a 600x600 light fitting with a Tag inside for typing the letter of the fitting. E.G. Type A, B, C
I have a rotate function also so I can rotate the fitting to the orientation of the room.
But when I rotate the fitting the text rotates also, therefore if I turn the fitting round 90 degrees the text is on its side. How do I rotate the block but leave the text orientation the correct way?
I want to rotate my block so that the attribute rotates with it but stays the correct way around so it is still readable and no upside down text. So far I can only rotate the block but the attribute won't rotate with it at all.
I am trying to make a block with text inside in it. I need the text to rotate at 0 no matter what degree I insert the block into my drawing. For example the type of blocks I use are for fire alarm in which need to go onto different sides of the walls so I need a base point in which I can insert the block at but the text to always rotate back at 0.
I have a Block (elevation of a typ. door) that has attributes on it, Door Number and Room Name. The door needs to be hatched so I put an associative hatch in, which works fine in block editor. When I type different names and numbers the hatch boundaries resize accordingly.
My problem is when I close block editor and reinsert the block (or ATTSYNC) and edit the names and numbers, the hatch does not resize the boundaries of the new text.
Having issues with multi line attributes in dynamic blocks. On the odd occasion I get the attribute moved for example i use multi line attribute for title block information and sometimes it moves where i don't want it .
I am trying to create a dynamic block that represents a cable with an attribute attached. The block is essentially a line that runs along the Y axis. I have created a distance parameter with a stretch action attached. The line is to remain anchored at the top and the bottom end is permitted to stretch.
Problem: I have an attribute inserted to the left side of the line (offset at -2mm TC insertion) at a rotation angle of 270. When I select the stretch grip (in the drawing environment) I would like the attribute to remain centered with the line maintain the offset and maintaining the rotation angle. I have exhausted all of my options (limited experience).
In the past I have not managed to get attributes to constantly behave themselves if I applied a visibility state to them. Following posts by steven-g where he has a method to get them working together I thought I would give it another try. His method was used to link the attributes to a further reference attribute to reveal a field but mine is far simpler, just requiring one of two numbers to appear depending on the project state.
I had two attributes which toggled their visibility but only the primary attribute would display UNTIL AFTER I locked and prest the attributes, wherein it all looks to be working as wanted.
So my question is, why does it now work (and will it continue to do so)?
I don't know if I could get away with only one of those actions but since I had something working I didn't want to break it. I will test it once these drawings have cleared my desk.
I have a simple block, I would like to do the following:
Type: Insert
Specify: Block Name
Click spot with cursor to have the block placed
Rotate the block for orientation
I know that if I use the Tool Pallets I can specify rotate on insert, but do not always want to use the Pallete. I also know I can assign a rotation parameter to the block so I can grip and rotate after insertion. Is there an easier way?
I have a couple of attributes suing fields within a block. But they don't update on opening. I need to do a manual field update to get them updated to the latest values.Tried various combinations of "fieldeval", but this was no good.
I "work in both worlds" It's somewhat important. (Windows at my "day job", Mac Student Ed for my University teaching.
I have an Annotative Associative block with attributes (TTFs). The Title attribute is multi-line. When the block used in a file that is opened in Windows, obvkously everything is fine. If that same drawing is opened in ACAD Mac, the position of the top attribute shifts and can't be corrected until the block is edited in Windows. (It has to be Windows because ACADmac can't edit associative blocks in this release.)
Process I used (MacBookPro 7,1): Start ACAD12win (Parallels 7 w/WinXP), used default ACAD.DWT.inserted block "Tag Drawing Title", accepted all attribute value defaults, accepted default annotation scale of 1:1save fileopened file in ACAD12mac (multi-line attribute in wrong position)save fileOpened again in ACAD12win, and multi-line attribute is still in wrong position. Save fileOpened again in ACAD12mac, and multi-line attribute is in a greater incorrect position.
I have an interior elevation callout block with four arrows, noting the N, S, E, W interior wall elevations. I trick I use to rotate Text while keeping the Text oriented in the upright position is to place a Point Parameter at the center of the text then set the "Chain Actions" to Yes. Then I use the Move Action to tie the text to the Point Parameter. Next step is to use a Rotation Action to select only the Point Parameter, which rotates the Point Parameter and brings the text along with it, keeping the text oriented in the upright reading position always. As an example, think about a viewport tag with a North arrow, and the letter "N" at the arrow tip. When you rotate the arrow, the "N" position rotates with the arrow's point but always is oriented upright.
I have a group of blocks, when I click the blocks I get the editable attribute pop-up box. I can now enter a text of my liking.
I have now made a dynamic block of these blocks, with a visibility states dropdown. So that only one block is shown at a time and when I need to change it I copy the block and use the dropdown button to select the one I need.
The problem I have is that the when I click the blocks from the dropdown only one of them allows me to use the editable attribute pop up window. The others say 'The selected block has no editable attributes'.
If I can't have multiple blocks with editable attributes in one dynamic block or if I can and have done something wrong.
I've attached the block so you can see what I mean. Single Socket allows editable attributes others wont.
I suppose it's a bug, and I wonder how can it be fixed:
If you edit attribute settings in a dynamic block, and put:
Constant: yes
Lock position: no
You can't neither change the position in the Model, nor edit text. I suppose that with this two settings selected the way showed above, one should be able to move the attribute in Model space.
Is it possible to make a dynamical block where the attribute is horizontal in combination of the alignment parameter (not rotate)? If I align to an arc the attribute need to stay at an horizontal position.
I am trying to have a dynamic block that will show the profile of a steel plate, detailing the angle of a bevel. Including the plate thickness, the land, gap and the actual angle of the bevel. I've gotten most of it figured out, but having a grip to SET the angle at a specific number, while maintaining the drawing's integrity is proving difficult. I have attached the block I have created so far (minus the previous attempts to rotate the beveled angle).
BVL_detail.dwg
The base point of the rotate parameter should be at the junction of the bevel & land. I need it to stay connected to the end point of the top-most flat line as it rotates, which means the lines need to stretch to match the changing angle. It will either rotate that line along with it, or if I apply a stretch tool, it gets all disconnected and just plain wrong.
One of the things I am liking about my current set up is I can grab a grip, and then type the number I need and it will pop on into place. Was hoping for the same effect if I typed in the angle, it would be exactly that, while also adjusting the drawing.
I have a block of a circle and a line coming from the left and right side quadrant of the circle to a common point (see pic). I want to create a dynamic block using a Stretch and Rotate parameter. You select the block, the Rotate point (grip) shows at the end of the two lines. I can grab that grip and rotate both lines and circle by moving this point around the screen, but cannot Stretch this point to a new location at the same time. How can I have the Rotation end point follow the Stretch parameter?
Preface: A dynamic block c/w a "flip" parameter and a multiline attribute will crash when the block and attribute is flipped, and the attribute justificatiob modified.
Explanation: When the dynamic block is flipped, the multiline attribute is also flipped causing its justification to switch from "top left" to "top right". When the attribute is edited in the in-place attribute editor to switch the justification back to "top left", it causes AutoCAD to crash.
Workaround: Instead of using the in-place attribute editor (i.e. same as MText editor), the attribute justification is changed by modifying the attribute properties in the "Enhanced Attribute Editor" dialog box - on the "Text Options" tab
I want to convert existing lighting blocks with attributes to a new dynamic block. I created a few visibility states but when i insert the block I can't move the attribute text around. I don't have to redefine the attributes within the block editor to make this work. What is the best way to deal with existing blocks with attributes?
I have searched high and low and still could not find a tutorial to really explain how to create a drawing title with attributes (Detail Number, Sheet Number, Detail Title, Detail Scale). All I find are on creating dynamic block, which I could achieve, but I need one for a block that has (or will have) attributes.
I was able to find a tutorial on attributed door numbers, but it does not work for drawing titles that has attributes. GOAL: I would like to have all my seven drawing titles in one file and to be able to stretch the leg of any selected title to a desired length.