I have very little experience with scripting and I’m trying to save some time by exploding a leader, hatching it (fills the arrow head) then grouping the result. I created a button with the commands:
Unfortunate the command stops when the hatch window pops up and doesn’t select the new hatch before it groups the result.
I was hoping there may be a scripting solution that I can add to a button.
Thanks in advance for any help.
This is actually a bit complicated to macro - here is one way, but it’s rather kludgy…
_Explode _Pause _SelLast _Group _SelLast _SetGroupName "TempHatchGroup" _-Hatch _Pattern=Solid _Enter _Enter _SelLast _AddToGroup "TempHatchGroup" _-SelGroup "TempHatchGroup" _Ungroup _Group
Let me see if I can craft a simpler scripted solution…
Edit: OK, here is a slightly less hacky python scripted solution…
This at least allows you to explode/hatch multiple leaders at once. The leader text (if any) is preserved as text and grouped with the rest…
HatchLeaders.py (1.2 KB)
Wow, I’m going to take a look at the python script and see if I can understand (generally) what you did. The macro is helpful as well.
I hope you don’t mind if I ask you a few questions about how/why you did certain things.