ESC macro to make portcullis or crenels of any length
wgdevanna
Newcomer
Hello
I am new to using/writing macros and was wondering if it’s possible to write a macro to run from a custom draw tool to place filled circles or circle symbols automatically along the path upon completing drawing the path. Similarly, if I have a symbol to represent a crenel, can I use a draw tool to stack the crenel symbols along the line via macro. How can I make the macro set the Symbols Along settings? Or load the saves ESC file?
Thanks
I am new to using/writing macros and was wondering if it’s possible to write a macro to run from a custom draw tool to place filled circles or circle symbols automatically along the path upon completing drawing the path. Similarly, if I have a symbol to represent a crenel, can I use a draw tool to stack the crenel symbols along the line via macro. How can I make the macro set the Symbols Along settings? Or load the saves ESC file?
Thanks
Comments
You can set up a drawing tool that draws a path, and add the following macro in the tool (Make sure to set it to run the macro after drawing)
ESCLOAD @escfile.esc
ESCM ^DPick Entity
Note that you will have to manually click on the line to pick it after drawing it, since ESCM uses a single entity selection, and therefore cannot use selection by prior to easily get the line you just drew using the tool.
I was able to get your method to work. For my own edification, I tried using SELBYP / SELREST, but it failed. It does save a few button clicks however, so I am happy.
Attached is a composite screen of my custom portcullis tool.