Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a class that I am writing that will change the ToolPalettePath. I am using the SendStringToExecute and am finding it difficult to send an <ENTER> at the end of the command.
<Autodesk.AutoCAD.Runtime.CommandMethodAttribute("rcus")>
Public Sub rcus()
Dim acDoc As Document = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument
acDoc.SendStringToExecute("._*_ToolPalettePath S:\Autodesk\Support\Palettes\NMDOTcustomSubs", True, False, True)
End SubI have tried the \n at the end of the line, and also tried a blank space, and even TWO blank spaces, but none of those worked. I believe it is b/c it is a path that has quotes.
Right now, the command is invoked, and the path is entered and AutoCAD waits. I have to hit <ENTER> or <SPACEBAR> manually to execute it. I need another method to send the final <ENTER>.
TIA,
Mike
Mike Madrid
Owner, MJM Consulting
Owner, MJM Consulting
Solved! Go to Solution.

