Fixo, I just went through your code. It actually made sense! The only thing that looks a bit foreign is the bit bracketed: "
using (Transaction..."
Can I ask a few questions?...
1. Where does the object
Regex come from? As in the line:
newtext = Regex.Replace(dbt.TextString, sFind, sReplace);
2. Is the
catch (Autodesk.AutoCAD.Runtime.Exception ex)
the common error catcher? Ie, what if I use:
catch (...)
?
3. What does
[assembly: CommandClass(typeof(SelText.TextMod))]
at the top of the cs file do?
4. How does autoCAD know to run the
Initialize function in
InitCommand.cs? Don't we need to call it because it's in a function?
5. Out of interest, do we ever use classes apart from a single class to house our commands?
6. Lastly, I just want to make sure there's no
apropos button in SharpDevelop, like there is in the Visual Lisp Editor. And the best thing to use as a quick reference is
http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%20.NET%20Developer%27s%20Guide/index.html?
Thanks!!
steve