I posted this GIF of a dynamic block I created and someone asked how I did it, so I thought I would explain.
Other than block basics this will cover using block property tables, chain linking, and distance multipliers.
- Setup Objects
- Add Primary Rotation and Stretching
- Set Text Point Move and Distance Multiplier / Chain Linking
- Create Text Rotation and Block Table
- Add a point at 0,0
- Add a line
- Add a multiline attribute with bottom center justification
Add Primary Rotation and Stretching
- Add rotation set while naming them appropriately
- Add all objects to rotation set
- Add linear stretch set while naming them appropriately
- Add end of line to LENGTH set
- Add linear move set while naming appropriately
- Add the whole line, attribute, and LENGTH parameter set to the GAP set
Test your block.
Set Text Point Move and Distance Multiplier / Chain Linking
In order to make sure that the text stays in the middle of the we add a Point Move Set and link it to the LENGTH parameter (chained) with a distance multiplier of 0.5, so it stays in the middle.
- Add Point Move Set to the midpoint of the line
- Add attribute to the POSTION1 set. Set show properties to NO, chain actions to YES, and # of grips to ZERO.
- Add the POSITION1 parameter to the LENGTH set. Do NOT add the attribute to this set.
- Set the POSITION1 action distance multiplier to 0.5.
Create Text Rotation and Block Table
Ok now for the fun part. You should have a functioning block except for having the text appear correctly orientating itself for easy reading.
- Add Rotation Set at mid-point of line
- Add attribute to action
- Add Rotation New Set to both the Primary Rotation Set and the GAP set actions.
- Add Block Table with no grips. Add ROTATION variable. Add ANGLE1 variable.
- Select ‘Block properties must match a row in the table’ option.
- Populate table (I copied and pasted from excel). This will rotate the attribute in relation to the line using the input value from the primary ROTATION value and applying it to the local ANGLE1 value.
- Rotation from 0-90 should be 90
- Rotation from 91-269 should be 270
- Rotation from 270-359 should be 90
That’s it. Test the block and enjoy!