Message 1 of 10
Changing system variables
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want a few sendcommands executed when AutoCAD starts up.
Dim doc As Document = Application.DocumentManager.MdiActiveDocument doc.SendStringToExecute("ANNOAUTOSCALE 4" & vbCr, False, False, True)
The DocumentCreated or DocumentActivated events doen't seem to trigger on start up so i've added them to the initialize sub. (Maybe the dll isn't loaded at this point)
And in the initialize sub then they are ignored.Commandline looks like this:
Command:
AutoCAD menu utilities loaded.ANNOAUTOSCALE 4
CANNOSCALE 1:100
Command: _RIBBON
If I put them in a routine they are slow and get minced in with other commands. Can anyone suggest a good place. Ir is SendStringToExecute not the right method?