Moving block attribute Definition

Moving block attribute Definition

nrussell4CW5T
Contributor Contributor
100 Views
3 Replies
Message 1 of 4

Moving block attribute Definition

nrussell4CW5T
Contributor
Contributor

Attached is a dynamic block that i made for a lighting fixture. When you insert the block, it inserts a 4' fixture, you can then stretch it to different lengths and turn on hatching if desired for emergency. What i want to do is add an attribute definition so when i insert the block, i can go to properties and change the fixture name of multiple fixtures all at the same time. What im having trouble with, 2 problems.
1) i want to have the attribute definition text to move horizontally with the different lengths, so it inserts the block that is 4' long and i want to stretch it to 8' and i want the text to move along with it. ive tried constraining it with a horizontal constraint to the right side corner and it moves the text with it, but the bottom line of the block gets all wonky.
2) i want to be able to scale the text size to the drawing. The scales we typically use are 48 and 96 (1/4" and 1/8") and when i insert the block i want the text to scale (3.25" and 7.5" respectively) but im not sure how to do that. i could do a visibility thing with a list and scale it in the block, so then in the drawing i can just select the "scale" in the attribute properties, but im having trouble with that as well. im open to other ways to get around this as well. 

 

For reference, this is my macro for my button that inserts the block:

nrussell4CW5T_0-1758738835582.png

 

0 Likes
Accepted solutions (1)
101 Views
3 Replies
Replies (3)
Message 2 of 4

MMcCall402
Mentor
Mentor

Add the attribute, lock the position, select annotative, and then place it where you want.  Select the attribute once its placed and add the 1/8  and 1/4 scales to its annotative scale list. Then add a Move action, select the right end of the linear parameter you already have (Fixture Length) and then the attribute as its selection set.  That should do it.

 

To edit the names you can select one, or multiples, and enter the name in properties palette. 

 

MMcCall402_1-1758741590415.png

 

 

MMcCall402_0-1758741495023.png

 

Mark Mccall 
CAD Mangler


EESignature


VHB - Vanasse Hangen Brustlin, Inc.


Linkedin

0 Likes
Message 3 of 4

nrussell4CW5T
Contributor
Contributor

This is almost exactly what i want. Is there a way to do this without selecting the "Lock position" for the attribute? the only reason, is after i put the block in a drawing, I sometimes want to manually move it to the other side, or out of the way etc. cus it might be in a wall. Im open to other options too like if mirroring it to the other side would be another possibility. 

0 Likes
Message 4 of 4

MMcCall402
Mentor
Mentor
Accepted solution

The attribute needs to be "locked" in order for the actions to work on it. (I know, its totally counterintuitive)  We can get around this my adding a Point Parameter with a Move action to basically make the attribute grip movable again.  After adding the point/move and selecting the attribute there are a couple was to go with this.  The simple way is to just add the Point parameter to the selection set for the Fixture Length Move action.   Another way, remove the Move action from the Fixture Length parameter, then include the Point parameter in its Stretch action and then set the Point Parameter's 'chain action' property to Yes.  Both accomplish the same thing.

 

 

 

MMcCall402_0-1758746466880.png

 

Mark Mccall 
CAD Mangler


EESignature


VHB - Vanasse Hangen Brustlin, Inc.


Linkedin