Setting sheet and layer in macro-based text drawtools
Hey all, so I have these drawtools which are used to create text with specific formatting, size, etc. There's a different tool for each kind of text depending on if it's for a small town or a large city or a river or lake, etc. The tools work by activating a macro which sets the text size, the font, and etc.
When I activate one of these drawtools, the layer changes to the correct layer that I want for that specific drawtool - so if I activate "Text Lakes", the "Text Lakes" layer is selected as the text entry window appears. But the sheet doesn't change. Whatever sheet was active before I activated the drawtool, remains active. So in most cases, if I activate one of these text tools without remembering to manually change the active sheet, the text will end up on the wrong sheet.
For all of these text tools, the drawtool itself has the appropriate layer selected, and the sheet "TEXT" selected. The macros that are used by the tools don't have anything about a sheet or layer at all.
Is there a way - by either changing a setting in the drawtool, or adding commands to the macro itself - to make it so that both the current layer AND current sheet can be dictated by these macros/tools, so that both sheet and layer will be correct when I use one without having to manually change them on each use? Thanks!
When I activate one of these drawtools, the layer changes to the correct layer that I want for that specific drawtool - so if I activate "Text Lakes", the "Text Lakes" layer is selected as the text entry window appears. But the sheet doesn't change. Whatever sheet was active before I activated the drawtool, remains active. So in most cases, if I activate one of these text tools without remembering to manually change the active sheet, the text will end up on the wrong sheet.
For all of these text tools, the drawtool itself has the appropriate layer selected, and the sheet "TEXT" selected. The macros that are used by the tools don't have anything about a sheet or layer at all.
Is there a way - by either changing a setting in the drawtool, or adding commands to the macro itself - to make it so that both the current layer AND current sheet can be dictated by these macros/tools, so that both sheet and layer will be correct when I use one without having to manually change them on each use? Thanks!
Comments
The only disadvantage by doing this is that you cannot return to the active sheet before using the tool automatically.