View Full Version : Changing text based on a parameter
voineavlad
2006-09-06, 01:05 PM
Hello all!
I'm trying to turn a specific shape into a dynamic block that uses a lookup parameter. Can I change a piece of text to display the lenght of the shape (if a side of it is 800mm long, I want the text to read "600x800", and if it is 1400 "600x1400")?
Many thanks
Chris.N
2006-09-06, 01:34 PM
Hello all!
I'm trying to turn a specific shape into a dynamic block that uses a lookup parameter. Can I change a piece of text to display the lenght of the shape (if a side of it is 800mm long, I want the text to read "600x800", and if it is 1400 "600x1400")?
Many thankswhat you are asking about is also (IMHO) one of the finickiest things to do. you need to create an attribute with a field under the category of 'Object', and then use the 'BlockPlaceholder' sub-option, then select the parameter property you want it to follow. the preview will be confusing, so testing till it's right is key. you still want the attribute locked, but you don't want it to be constant. I place the string' DO NOT EDIT THIS LINE' in the prompt line for the attribute creation.
what you are asking about is also (IMHO) one of the finickiest things to do. you need to create an attribute with a field under the category of 'Object', and then use the 'BlockPlaceholder' sub-option, then select the parameter property you want it to follow. the preview will be confusing, so testing till it's right is key. you still want the attribute locked, but you don't want it to be constant. I place the string' DO NOT EDIT THIS LINE' in the prompt line for the attribute creation.
yeah, finicky. and it may not work the first few times you try it. And remember to always "sync" the block using BATTMAN when going back to modelspace, if not re-inserting the block.
I've made it work, though. So it can't be THAT hard .....
voineavlad
2006-09-07, 03:14 PM
what you are asking about is also (IMHO) one of the finickiest things to do. you need to create an attribute with a field under the category of 'Object', and then use the 'BlockPlaceholder' sub-option, then select the parameter property you want it to follow. the preview will be confusing, so testing till it's right is key. you still want the attribute locked, but you don't want it to be constant. I place the string' DO NOT EDIT THIS LINE' in the prompt line for the attribute creation.Sorry, I'm not following. What does "attribute with a field under the category of 'Object'" mean?. Could you please elaborate the commands to be used? I also want to add that I'm using LT 2007.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.