Move text to the nearest point

Move text to the nearest point

tfitzhardinge
Enthusiast Enthusiast
4,145 Views
6 Replies
Message 1 of 7

Move text to the nearest point

tfitzhardinge
Enthusiast
Enthusiast

Hi All

 

Is there a way to move text multiple text to the nearest point automatically which have all varying translation distances.

 

Thanks

0 Likes
4,146 Views
6 Replies
Replies (6)
Message 2 of 7

ВeekeeCZ
Consultant
Consultant

I am using this routine of mine. It does not move all the texts automatically to a nearest point, but you need to show pattern first. Usually its not moved randomly, so this leaves you a control... 

 

See the SCREENCAST

 

(in video, don't be confused seeing pressing F5 and F6, it's just layer isolation and unisolation)

Message 3 of 7

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:

... 

Is there a way to move text multiple text to the nearest point automatically which have all varying translation distances.

...


Do you mean the nearest POINT entity, or the nearest location on any nearby object [Line/Polyline/Circle/Arc/etc.], or the nearest grid-Snap location, or something else?

 

If the last one, there are routines on these Forums to force everything to fall on the nearest Snap locations, which a Search should find for you.

Kent Cooper, AIA
0 Likes
Message 4 of 7

tfitzhardinge
Enthusiast
Enthusiast
Yes it is to the nearest point. Im talking more specifically when we receive survey drawings the text node or origin is displaced from the point. I need the text and point to line up. Reason so then in Civil 3D I can create my surface from text.
0 Likes
Message 5 of 7

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:
... the text node or origin is displaced from the point. I need the text and point to line up. ....

Are they all displaced by the same amount in the same direction?  If so, a collective Move using SelectSimilar to get the Text pieces could do what you want pretty quickly, without the need for any code.

 

If not, how far might they be displaced?  The finding-the-nearest-Point part is probably the trickiest element of a routine to do that, but would be made much easier if, for example, the Point will always be somewhere within the bounding box of the Text.

Kent Cooper, AIA
Message 6 of 7

ScottHodges
Advocate
Advocate
Usually there is a point object which the text is related to. Your moving to the nearest point takes accurate data from the survey and randomly scattering it by attaching it to a random point. Surely this is not what is required to use the points to create a 3D model from the data
Message 7 of 7

parkr4st
Advisor
Advisor

Please explain this statement:      Reason so then in Civil 3D I can create my surface from text. 

 

C3D creates surfaces from point data, not text AFAIK.

 

Dave