Attribute using Field of another Attribute / Strethching an Ellipse

Attribute using Field of another Attribute / Strethching an Ellipse

DM2-fire
Enthusiast Enthusiast
515 Views
6 Replies
Message 1 of 7

Attribute using Field of another Attribute / Strethching an Ellipse

DM2-fire
Enthusiast
Enthusiast

I'm trying to create a Dynamic Block with Attributes in AutoCAD 10.  I've attached the file for info purposes.

I have two (2) Problems:

1.   Attribute using the VALUE Field of another Attribute.  The block has three (3) Attributes

  1. LEFT (Left-Center Justified)
  2. RIGHT (Right-Center Justified)
  3. WIRE_TAG

     The block also has two (2) VISIBILITY states

  1. LEFT (only the LEFT Attribute is Visible)
  2. RIGHT (only the RIGHT Attribute is Visible).

When the user double clicks on the block, all I want them to see is the WIRE_TAG attribute. I thought I needed to use a the FIELD OBJECT VALUE of the WIRE_TAG attribute in both the RIGHT and LEFT attributes, but I'm not able to get this to work and I'm having difficulty with hiding the LEFT and RIGHT attributes in a visibility state.

 

2.  Stretching the Ellipse.

The block also has two (2) arc's.  I wanted to use an Ellipse but wasn't sure I could stretch it based on what i've read.  The idea is that when the user stretches the end of the leader, the ellipse shouldn't change and it should be in line with the line attaching it to the rest of the block.  If the user wanted to stretch the ellipse, they would use a different grip to stretch it lengthwise.  The width of the ellipse should always be 1/3 the length of the ellipse.

 

I've looked at the below posts, but am having difficulty with selecting the right Geometric Constraints for an ellipse:

Need to Scale Ellipse in x direction Only , solved by Jurgen Palme 

Parametric Constraints in AutoCAD 2010 and Beyond the Basics: Working with Constraints in AutoCAD 2017 WEBINAR | AutoCAD 

After reading and watching the above to links, I'm still having issues with stretching the Ellipse

516 Views
6 Replies
Replies (6)
Message 2 of 7

Libbya
Mentor
Mentor

When the user opens the attribute editor by double-clicking on the block, the attributes that are visible in the current visibility state will be displayed.  I do not believe it is possible for you to prevent the user from seeing the attribute that contains the field.  That's just the way it is. 

 

You can place an object field as the default value in the left and right attributes.  See screencast. 

 

 

Message 3 of 7

Libbya
Mentor
Mentor

The following screencast pics up where the last one left off.  It allows the block to use only one set of linework and parameters and uses a flip instead of duplicating those items.  It uses a double lookup so that the flip changes the visibility state of the attributes.  It also adds the scaling to the bubble.  

 

See screencast:

 

Message 4 of 7

DM2-fire
Enthusiast
Enthusiast

Libbya,

Thanks for your input...your always a help.

 

I followed your recommendations on the Flip rather than the visibility state, but I'm having difficulty with the Object field for the LEFT and RIGHT attributes.  I tried your suggestion before posting the original post but couldn't get it to work.  I've updated the block using the Flip rather than the Visibility state but still can't get the LEFT and RIGHT attributes to use the OBJECT value of the WIRE_TAG value.

 

Could you have a look and tell me what I'm going wrong?

0 Likes
Message 5 of 7

Libbya
Mentor
Mentor

It looks like you did everything correctly, but you will need to insert a new insertion of the block into model space to show the new default value with the field.  Existing insertions of the block will keep their attribute values.

0 Likes
Message 6 of 7

DM2-fire
Enthusiast
Enthusiast

So reinserting the block seems to work, but while testing the block something broke when flipping the block to the Left.  I uploaded a screencast but it says "Pending" so (can't seem to make it Public) and I don't see where to change the visibility settings.  I've attached Rev C of the block, but nothing has changed.

 

Also, I thought there was someway to hide the WIRE_Tag visibility state??

Message 7 of 7

DM2-fire
Enthusiast
Enthusiast

Attached is the screencast.

0 Likes