Dynamic Block Text Base Point

Dynamic Block Text Base Point

ME7CADGuy
Contributor Contributor
896 Views
6 Replies
Message 1 of 7

Dynamic Block Text Base Point

ME7CADGuy
Contributor
Contributor

Hi CAD Forum,

 
I'm currently updating my companies block library into dynamic blocks and I need some help with the following.
 
Is there a way for the base point of Mtext/attributed text to automatically adjust when an object is rotated? 
 
I want the text to stay 1mm away from the block at all times, I'm currently working on a luminaire block and its default position is horizontal and the text has a base point of top center. When I rotate the block to vertical I want the base point of the text to change to middle right or middle left for example so its still 1mm away from the block. I have sorted the chain actions part so the text still follows the block at the correct orientation, but I cant find a way for the text to auto adjust its base point as the blocks rotates. Is this even possible?
 
Any help or advice will be greatly appreciated.
 
Cheers   
0 Likes
Accepted solutions (1)
897 Views
6 Replies
Replies (6)
Message 2 of 7

h_s_walker
Mentor
Mentor
Accepted solution

No a text item cannot have it's basepoint change.

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud

Message 3 of 7

j.palmeL29YX
Mentor
Mentor

- has the text a constant length or is it variable (attribute)? 

- do you want to rotate the block in 90° steps or in any angle?

- Would you please post an example file and let us see what you want to get  

 

Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 4 of 7

ME7CADGuy
Contributor
Contributor

The text is a constant length, just 1 letter used as a reference.

 

I want to be able to rotate it at any angle and the text base point needs to adjust as it hits a specific angle for example...

 

Rotate the block from its default position to 45 degrees, the text base point changes automatically from bottom center to bottom right so it stays 1mm away from the block. 

 

Thanks for your help. 

0 Likes
Message 5 of 7

h_s_walker
Mentor
Mentor

The way you've done it is the best possible, otherwise you would have to start fiddling with double lookups and fields referencing attributes. Trust me it's not worth the hassle.

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud

Message 6 of 7

j.palmeL29YX
Mentor
Mentor

@ME7CADGuy wrote:

The text is a constant length,  


 

Obviously not (may be a misunderstanding) - an "I" has another (a smaller) length than a "W". And if the Attribute values is more than one letter ...  😞

 

So my first rough idea, to add an additional movement and let the object depending on the angle jump to another position as in this example 

 

 

 

will not work because we don't know the needed jump distances (which depends on the current text length). 

I'm sorry

Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

Message 7 of 7

ME7CADGuy
Contributor
Contributor

Thank you both for your help, maybe it will be added as a new feature in newer CAD versions...

0 Likes