AutoCAD .NET :: Changing Distance Parameter In Dynamic Block Doesn't Move Attached Attributes

Aug 28, 2011

 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

View 7 Replies


ADVERTISEMENT

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.

View 2 Replies View Related

AutoCAD Dynamic Blocks :: Move Attributes In Constraint Parameter Environment

Mar 12, 2012

I have a dynamic block that I am trying to add some pretty basic functionality to (at least it seems like it should be simple!). Since I’m still relatively new to DB’s, I figured I’d give some background on what I’m trying to do, cause maybe it could be done with a much easier approach than I have come up with. So if you don’t feel like reading the details, see the fourth paragraph for my actual question.

The block is a sheet reference annotation (that shows:  SheetNum/TotalNumOfSheets)  that we typical put in the notes section of our construction drawings.  It looks nice when the text (which are attributes), lines up with the text in the note (usually Mtext, but sometimes a Mleader). So I constantly find myself completing the tedious task of placing the block at the insert point of the Mtext (which is always justified LEFT TOP), and then calculating the distance down to line that I want the block to line up with.

So what I want the block to be able to do is to be able to have the user grab the block by its basepoint, place it at the insert point of the Mtext object, and just enter the text height of the Mtext note, the line space factor, and the target line of the note that the sheet reference block should line up (the input would all be done via custom block properties in the Properties Palette).  And since we almost always use a text height of 0.125 and Line Space factor of 1, those will be the defaults, and really the only thing that would need to be entered would be the line number of the Mtext that the annontation should line up with.

I already figured out most of the constraint parameters necessary and calculated the offset equation using custom parameters. I have all the linework moving correctly using the vertical constraint parameters, however, I cannot figure out how to get the Attributes to move along with the linework. I know how to move text and attributes using Action Parameters, but I can’t do it with Constraint Parameters. So I figured that maybe I could chain an Action Parameter to the Constraint Parameter, but I couldn’t figure out how to do this either. Also, I am using visibity states and would like the visibility grip to move along with everything else as well.

My block is attached. I used some lines for the Constraint Parameters to be associated with, but they are only there for the block to operate correctly, therefore they are invisible in both of the visiblity states. Probably not the best way, but it works.

View 5 Replies View Related

AutoCad :: Dynamic Block With Rotation Parameter Not Working With Attributes?

Mar 6, 2013

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.

View 3 Replies View Related

AutoCAD 2010 :: Associate New Attributes With Move Parameter In Existing Block

Apr 11, 2013

I have a block that has been already established. i added another line of attribute. how do i make the new attribute associate with the 'move' parameter that has been set with the old attributes?

All this is created in block editor.

View 2 Replies View Related

AutoCAD Dynamic Blocks :: Doesn't Move Attributes

Dec 17, 2013

I'm working on a dynamic door block, which allows me to add some height and width values to the door. everything works fine when I put in the attributes right away when I insert the block. Only if I want to mirror and stretch the block before I enter the values they want move to the correct position. After I run "attsync" it moves to it's correct place.

View 3 Replies View Related

AutoCAD Dynamic Blocks :: Moving Dynamic Block With Attributes

Dec 19, 2011

I made a dynamic block with attributes. The block was to be moved using Linear parameter + move action, and then a lookup parameter and action.

The block moves as it is suppose to but the attributes are left behind. How can I get the attributes to move with the dynamic block?

The attribute properties are:

Verify = Yes.

Lock position: Yes or No don't seem to make a difference.

Is this a bug in AutoCAD or is there a solution to this?

View 3 Replies View Related

AutoCAD Dynamic Blocks :: Actions And Parameter Grips Obscure Drawing-block In Block Editor

Mar 28, 2011

My drawing- block is a little bit complicated, it contains few actions and parameters and everytime i open block editor to add, or to modify some action I can't see my drawing because actions grips and parameters grips obscure my drawing. I tried to refresh layout but it doesn't work.

please take a look on attached jpg.

View 1 Replies View Related

AutoCad :: Update Sub Block Entities / Attributes With Dynamic Block

Oct 31, 2013

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

View 9 Replies View Related

AutoCad :: Dynamic Block With Dynamic Attributes

Apr 26, 2007

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?

View 9 Replies View Related

AutoCad 2D :: Control Distance Of Array In Dynamic Block?

Oct 16, 2011

Am I missing something or is there no way to control array action spacing with formulas or user parameters?

View 3 Replies View Related

AutoCAD Dynamic Blocks :: Insertion Point Of Attribute Changing Within Dynamic Block

Nov 21, 2011

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

View 2 Replies View Related

AutoCAD Dynamic Blocks :: Link Move Action To Visibility Parameter

Sep 12, 2012

I've got a block with 2 lines of text, the second line being optional.  If the second line is omitted, the first line should be moved down, so it's centered.

I can handle the second line being omitted with a visibility parameter.  And I can handle the first line being moved down with a move parameter.  But how can I link the two?

Ideally, I'd be able to re-use the line 1 attribute and display it in whichever place was correct, but that doesn't seem to be possible.  

View 9 Replies View Related

AutoCAD .NET :: Dynamic Block Parameter Visibility?

Jul 2, 2013

I need to know where to look to find if a point parameter is visible the the current visibility state of the dynamic block reference.

View 2 Replies View Related

AutoCad :: Dynamic Block Rotation Parameter

Sep 30, 2013

I am making a simple continuation block (attached) and I am trying to get it to have a rotation parameter along the polyline. I am able to do that, but the only issue is the flip parameter goes all weird when I do so (the text starts distancing itself from the polyline when stretched, rotated and flipped).

View 4 Replies View Related

AutoCad :: Dynamic Block Parameter Copying

Oct 8, 2013

Getting into Dynamic Blocks in a big way. As the blocks we use are variants of each other, if the parameters that are created in one block can be copied into another block to save having to re-do the entire parameter sets again.

View 1 Replies View Related

AutoCAD VB :: 3 Attributes With Same Dynamic Block

May 10, 2011

I have 3 attribute in one block , i made 3 options for visibilty1

so i need in visibilty (1) i can show only the text 11

and i need in visibilty (2) i can show only the text 22

and i need in visibilty (3) i can show only the text 33

View 8 Replies View Related

AutoCad :: Can Move Either Side Of Block But Basepoint Doesn't Move

Mar 24, 2011

If I have a dynamic block of a window. I can move either side of the block but the basepoint doesn't move. Is there a way to move the basepoint as well so its not off in space? or just delete it and have it now shown?

View 1 Replies View Related

AutoCAD 2010 :: Dynamic Block Rotation Parameter

Jan 7, 2013

I have a block that I'm trying to convert for dynamic use.

In the first image, you'll see the items that I want to have rotatable in blue.  The items in red should NOT rotate.  That part seems to work fine.  But the items that do rotate don't behave as expected.

I created the rotate parameter selecting the center of the red circle as the base point.  Shouldn't that cause ALL the items to rotate about that center point?

As you'll see from the second image, the blue line rotates about some other point.

EDIT:  Well I guess it only does it if I have the blue horizontal line defined with a length constraint.  I also need to have that line dynamic--I need to make it longer/shorter.

I've attached a dwg file with the block in it--it's at the top of the block list (___SectMark2).

View 9 Replies View Related

AutoCAD 2013 :: Use More Than One Visibility Parameter In Dynamic Block?

Mar 2, 2013

Is there a way to use more then one visibility parameter in a dynamic block in autocad 2013

View 1 Replies View Related

AutoCAD .NET :: Create A User Parameter For A Dynamic Block

Feb 13, 2012

We have some dnyamic block share set of parameters, if we change a parameter's value, all block that reference this parameter should be change.we can do it by program.

but create user parameters for a dynamic block must be by hand, can we create a user parameter by code? another way is user global parameter. does AutoCAD Parametric function's user value can be share with dynamic block?

View 8 Replies View Related

AutoCad 2D :: Rotate Parameter And Action To A Dynamic Block

Sep 17, 2013

I am attaching a rotate parameter and action to a dynamic block.

I get the "Specify base point" bit okay but I can't figure out what "Specify radius of parameter" does.

Do I have to include or exclude other parameters like Flip or Stretch? I get some weird results when I rotate an object with other parameters.

Is it possible to place the Grip in a specific place? It always seems to like to sit on top of another parameter name.

View 9 Replies View Related

AutoCAD .NET :: Create New (user) Parameter For Dynamic Block?

Sep 25, 2012

I would like to add a new (user) parameter to a dynamic block within my code. I have noticed that this is possible manually. But couldn't find how to do this in .Net. When this parameter has been created it would be necessary to fill in a value. So the parameter can either be a general parameter, that can be adjusted later or a (user/dynamic) parameter specific for the block.

View 1 Replies View Related

AutoCad :: Dynamic Block - Rotation Parameter And Text

May 25, 2010

Wondering if there was a way to have text maintain a rotation angle of 0 while being included in a rotation parameter. I am wanting the "N" for my North Arrow to follow the direction of the symbol of my viewport tag without the "N" character rotation angle changing with it.

View 9 Replies View Related

AutoCAD 2010 :: Dynamic Block Parameter Linking?

Dec 6, 2012

I was wondering if there is a way to link one parameter to another.  What i'm doing is creating a theater flat block that has adjustable length and width.  There are support members that are needed when it gets big enough.  Right now i have them set to a Visability parameter and have to select to turn them on and off in model space.  Is there a way to link the Visability so that it changes based on the Linear Distance parameter's lenth?

View 1 Replies View Related

AutoCAD Civil 3D :: Dynamic Block With Attributes

Jul 14, 2013

I am trying to make a dynamic block with the rotate function and I am having no luck. I have the attributes locked.

When moving the rotate grip the angle changes but the text does not rotate.

View 2 Replies View Related

AutoCad :: Dynamic Block - Rotating Attributes

Oct 17, 2012

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.

Is there a step I have missed out?

View 2 Replies View Related

AutoCad :: Making Dynamic Block With Attributes?

Jan 13, 2014

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.

View 2 Replies View Related

AutoCad :: Attributes Visibility With Dynamic Block

Sep 10, 2012

Dynamic block. The visibility states are not working properly and always show the attributes.

View 1 Replies View Related

AutoCAD 2013 :: Dynamic Block In Action Doesn't Reflect Test Block

Jan 24, 2013

I am in the process of fixing one of our dynamic blocks. It's a fairly simple fix where there was a typo in one of the names of our items in the lookup that needed to be fixed.

I changed the name of the item in the lookup table. I went and did the test block and it seemed to work fine, but when I bring the block into a drawing, it reverts back to the old lookup as if I did nothing at all.

I made sure that the path was correct and I even just dragged and dropped straight from Windows Explorer to no avail.Does AutoCAD keep referring to the old block? Did I forget to change something else?

View 3 Replies View Related

AutoCAD Dynamic Blocks :: Block Properties Table Not Corresponding With Parameter?

Nov 8, 2013

The "Main Stretch" parameter does not correspond with the Block Properties Table. What does this parameter need to be attached to?The paramter will adjust with the pull down options of the Block Properties Table. 

View 5 Replies View Related







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