#include <ostream>
#endif
-
#include <Config_Common.h>
#include <Config_PropManager.h>
string(ExchangePlugin_ExportFeature::FILE_PATH_ID())->setValue(
string(ExchangePlugin_ExportFeature::STL_FILE_PATH_ID())->value());
}
-
}
/*
AttributeSelectionListPtr aSelectionListAttr =
this->selectionList(ExchangePlugin_ExportFeature::SELECTION_LIST_ID());
std::list<GeomShapePtr> aShapes;
+ std::list<ResultPtr> aContexts;
for (int i = 0, aSize = aSelectionListAttr->size(); i < aSize; ++i) {
AttributeSelectionPtr anAttrSelection = aSelectionListAttr->value(i);
if (aCurShape.get() == NULL)
aCurShape = anAttrSelection->context()->shape();
if (aCurShape.get() != NULL)
+ {
aShapes.push_back(aCurShape);
+ aContexts.push_back(anAttrSelection->context());
+ }
}
// Store compound if we have more than one shape.
if (aFormatName == "BREP") {
aResult = BREPExport(theFileName, aFormatName, aShape, anError);
} else if (aFormatName == "STEP") {
- aResult = STEPExport(theFileName, aFormatName, aShape, anError);
+ aResult = STEPExport(theFileName, aShapes, aContexts, anError);
} else if (aFormatName.substr(0, 4) == "IGES") {
aResult = IGESExport(theFileName, aFormatName, aShape, anError);
} else {