Sorry for the absence, heavy work load this week.
I had to reread your primers on how to
work the blasted IDE. (good stuff btw-thanks)
For some unknown reason, I crashed my 'pooters both here at home and at work. Don't know what it was, but "I'm feeling much better now."
Ok, here we go with the ketchup questions, or WILT:
Public Sub LLine()
the "LLine" could be anything I want? Kinda like defun ---?
ThisDrawing
Is this an example of the camel case you mentioned before? Not absolutely necessary from a syntax standpoint but just considered "good form"?
I tried using a "on error resume next", just like you said NOT to and it didn't seem to work. Kept getting an error message "duplicate record name". No code number. Shouldn't this work for such a simple macro?
Woops. Maybe cause i had this
Public Sub LLINE()
ThisDrawing.Linetypes.Load "HIDDEN", "ACAD.LIN"
ThisDrawing.Linetypes.Load "DASHED", "ACAD.LIN"
On Error Resume Next
End Sub
instead of this
Public Sub LLINE()
On Error Resume Next
ThisDrawing.Linetypes.Load "HIDDEN", "ACAD.LIN"
ThisDrawing.Linetypes.Load "DASHED", "ACAD.LIN"
End Sub
Tools->Options, General Tab, Error Trapping, Break on UnHandled Errors. <---Should this 'generally' be set as a default in the IDE? Or is that "a question that really doesn't need to be asked" at this point?
I was just saving the macro code in the drawing file itself, and then toggling to acad, & alt+F8, rather than saving the file out to a directory as <filename.dvb> and then appload-ing from acad. What is the difference between these two methods? As far as I can tell, they do the same thing.
Is the first method only available in that specific drawing, and I won't be able to use it from another drawing file? When is one preferred over the other?
Finally,
Case Else:
Err.Raise Err.Number, Err.Source, Err.Description, Err.HelpFile, Err.HelpContext
I don't understand what this does. I mean, if the macro tries... wait, is this just a "catch all" kinda thing to throw up an error message for any OTHER (ie not error code -2145386405) type of error that may be encountered?
Otherwsie, I seem to have it working. Not sure I really know much more than I did before, but it sure feels like it!
Oh, one other thing. That drop down thingy when you hit the 'dot' is pretty cool... or so it seems at this point.
Thanks for the patience. Moving on to step 2 now.