I am creating a wall mounted junction box dynamic block and I'm running into a problem. I'm using an alignment parameter to rotate the block based on the rotation of the wall it is being placed on. Unfortunately, the "J" in the center of the circle will not stay with zero degrees rotation like it would if you lock the attribute and rotate with a normal rotation command. It seems like the "lock attribute" option does not jive with the alignment parameter. Any ideas?
try taking the J out of the alignment action selection set
then create a point parameter to the center of the J and add a move action to it and select the J
then go into the properties of the point parameter and select yes to chain it
then include the point parameter in the alignment action
kinda weird but it works
post your block if you need help
Well I took a look at that idea but it seems like the alignment parameter doesn't have a selection set. It seemed to apply to all objects in the drawing. Maybe I'm wrong though as I don't know as much about dynamic blocks as I should. I will attach the block.
we like the conveniance of the alignment parameter because you don't have to know the angle of the wall to line up the j-box. We have a lisp to automatically rotate the attribute to zero so having a rotate parameter and action would actually be slower than using the lisp but I was hoping to avoid the lisp altogether by having it adjust itself.
Thanks for that. I think I'll use it as an option for people. Some people may like it depending on how they draw. Sucks that they didn't have the foresight to think that alignment would be used with blocks that have attributes though. Would have been a nice feature.