In my SSC_ArxApp class, during the On_kSaveMsg message handler, is there a way to tell if a template is being saved instead of a drawing? We have data that we save into the drawing, but do not want to save it in a template.
In my SSC_ArxApp class, during the On_kSaveMsg message handler, is there a way to tell if a template is being saved instead of a drawing? We have data that we save into the drawing, but do not want to save it in a template.
I would recommend to handle drawing save events with a class derived from AcRxEventReactor:
class YourEventReactor: public AcRxEventReactor
{
public:
void beginSave (AcDbDatabase*, const ACHAR *pIntendedName) override {
// your code
}
void saveComplete (AcDbDatabase*, const ACHAR *pActualName) override {
// your code
}
void abortSave (AcDbDatabase*) override {
// your code
}
};
For a sample see <ARX>\samples\database\ARXDBG\
Inc\ArxDbgEventReactor.h
Reactors\ArxDbgEventReactor.cpp
I would recommend to handle drawing save events with a class derived from AcRxEventReactor:
class YourEventReactor: public AcRxEventReactor
{
public:
void beginSave (AcDbDatabase*, const ACHAR *pIntendedName) override {
// your code
}
void saveComplete (AcDbDatabase*, const ACHAR *pActualName) override {
// your code
}
void abortSave (AcDbDatabase*) override {
// your code
}
};
For a sample see <ARX>\samples\database\ARXDBG\
Inc\ArxDbgEventReactor.h
Reactors\ArxDbgEventReactor.cpp
Can't find what you're looking for? Ask the community or share your knowledge.