How to add currentAOLayer on the AX EditorScripts class

AOT\EditorScripts

comments_insertHeader
// VAR Changed on 19 Sep 2007 at 23:47:49 by 3880 Misc
public void comments_insertHeader(Editor e)
{
    e.unmark();
    e.gotoLine(1);
    e.gotoCol(1);

    // VAR Changed on 19 Sep 2007 at 23:47:49 by 3880 Misc - Begin
    /* Original
    e.insertLines('// Changed on ' + date2str(today(),123,2,1,3,1,4, DateFlags::FormatAll ) + ' at ' + time2str(timenow(), 1, 1) + ' by ' + curuserid() + '\n'); 
*/
    e.insertLines("// " + strUpr(enum2str(currentAOLayer())) + " Changed on " + date2str(today(),123,2,1,3,1,4, DateFlags::FormatAll ) + " at " + time2str(timenow(), 11) + " by " + curuserid() + '\n');
    // VAR Changed on 19 Sep 2007 at 23:47:49 by 3880 Misc - End
}
原文地址:https://www.cnblogs.com/Fandyx/p/2429929.html