Not signed in (Sign In)

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorwgdevanna
    • CommentTimeOct 24th 2019
     
    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
    •  
      CommentAuthorQuenten
    • CommentTimeOct 24th 2019
     
    Would absolutely love to see the answer to this - i would use it often
    •  
      CommentAuthorMonsen
    • CommentTimeOct 25th 2019
     
    A macro cannot set the settings used by Esc directly, but it can load existing saved settings by using the ESCLOAD command.

    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.
    •  
      CommentAuthorQuenten
    • CommentTimeOct 25th 2019
     
    Can you give a clearer explanation to a slow learner like me (and an example of what the output is) Pretty please
    • CommentAuthorwgdevanna
    • CommentTimeOct 25th 2019
     
    Thanks Monsen!
    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.
      Portcullis Custom DT.jpg