November 11, 2022, 8:54pm
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?
November 11, 2022, 9:16pm
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"
November 11, 2022, 10:02pm
Pascal’s script is possibly faster, but you could use the
ObjectName text field for that.
November 11, 2022, 11:24pm
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…
November 14, 2022, 11:09am
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?