I'm not too thrilled by seeing that there are different actions out there that kill Pro/E when you have an action listener for OnBeforeModelSave. I was fine with my setup on my local machine while doing limited testing. Then when I rolled it out to my users, they've been getting strange behavior and random crashes.
Here is my action listener class:
public class SaveAL extends DefaultSessionActionListener { public void OnBeforeModelSave(DescriptorContainer cont) {
try{ Session curSession = pfcGlobal.GetProESession();
Model mdl = curSession.GetCurrentModel();
//String modelName = mdl.GetFileName();
String mdlTypes = fsgetModelType.fsgetModelType(mdl);
//Undesignate and redesignate parameters
ReDesParam rdp = new ReDesParam(); rdp.ReDesParam(curSession, mdl);
//Family table verification
new FamilyTableVerify(mdl, mdlTypes);
}//end of try
catch (jxthrowable err){}
}//end of method
}//end of class
Here is my listener call in my sync app that I am calling.
//---------Add Action Listener----------------------
Session proeSession = pfcGlobal.GetProESession();
proeSession.AddActionListener(new SaveAL());
Do others use and/or see this issue with OnBeforeModelSave? Any help/advice would be helpful.
A side question..... Should I just put all of my class files out on the network and point my users to the network, or should I copy them to the users machines in my startup?
Thank you,
Brian Toussaint
CAD Administrator
Hoshizaki America, Inc.