BOOL CTest::CallWriteDocument(const CRhinoFileWriteOptions& options)
{
// A template file is being saved
bool bTemplate = options.TemplateFileIsDestination();
// The selected object filter will be applied
bool bSelected = options.SelectedObjectFilter();
// The geometry only filter will be applied
bool bGeometry = options.GeometryObjectFilter();
// Plug-in information will be saved in the file
bool bPlugIn = options.IncludePlugInInformation();
return FALSE;
}
Note, if some of these options are set (by the user), your plug-in’s CRhinoPlugIn::CallWriteDocument may not be called.