Automatic Leader

I was wondering if there is a command or a plug-in that allows us to automatically identify an object in a layout.

For example, if I have several closed polysurfaces, each one with different names, is it possible to have a leader without needing to see the name of the object and then type it when making a leader?

Hello- here is a very quick and dirty py for that-
NameLeader.py (698 Bytes)

To use the Python script use RunPythonScript, or a macro:

_-RunPythonScript "Full path to py file inside double-quotes"

-Pascal

1 Like

Hi -

Pascal’s script is possibly faster, but you could use the ObjectName text field for that.
-wim

That would be the smart way… but, yeah, slow for a lot of objects - still, the text field can probably be in the script version as well so it will track changes. I’ll take a look.
Updated above to use text fields…

-Pascal

Thank you Pascal!

Almost perfect. I am working on a layout, with several viewports. The objects are on the model space and the leaders are on the layout. Is it possible to change the script to do it?