*/
void ExchangePlugin_ExportFeature::initAttributes()
{
- data()->addAttribute(ExchangePlugin_ExportFeature::FILE_FORMAT_ID(), ModelAPI_AttributeString::typeId());
data()->addAttribute(ExchangePlugin_ExportFeature::FILE_PATH_ID(), ModelAPI_AttributeString::typeId());
+ data()->addAttribute(ExchangePlugin_ExportFeature::FILE_FORMAT_ID(), ModelAPI_AttributeString::typeId());
data()->addAttribute(ExchangePlugin_ExportFeature::SELECTION_LIST_ID(), ModelAPI_AttributeSelectionList::typeId());
}
static const std::string MY_EXPORT_ID("Export");
return MY_EXPORT_ID;
}
- /// attribute name of file format
- inline static const std::string& FILE_FORMAT_ID()
- {
- static const std::string MY_FILE_FORMAT_ID("export_file_format");
- return MY_FILE_FORMAT_ID;
- }
/// attribute name of file path
inline static const std::string& FILE_PATH_ID()
{
- static const std::string MY_FILE_PATH_ID("export_file_selector");
+ static const std::string MY_FILE_PATH_ID("file_path");
return MY_FILE_PATH_ID;
}
+ /// attribute name of file format
+ inline static const std::string& FILE_FORMAT_ID()
+ {
+ static const std::string MY_FILE_FORMAT_ID("file_format");
+ return MY_FILE_FORMAT_ID;
+ }
/// attribute name of selection list
inline static const std::string& SELECTION_LIST_ID()
{
/// attribute name of referenced face
inline static const std::string& FILE_PATH_ID()
{
- static const std::string MY_FILE_PATH_ID("import_file_selector");
+ static const std::string MY_FILE_PATH_ID("file_path");
return MY_FILE_PATH_ID;
}
/// default constructor
<workbench id="Features" document="Part">
<group id="Exchange">
<feature id="Import" title="Import" tooltip="Import a file" icon=":icons/import.png">
- <file_selector id="import_file_selector" title="Import file" path="">
+ <file_selector id="file_path" title="Import file" path="">
<validator id="ExchangePlugin_ImportFormat" parameters="BREP|BRP:BREP,STEP|STP:STEP,IGES|IGS:IGES" />
</file_selector>
</feature>
<feature id="Export" title="Export" tooltip="Export to file" icon=":icons/export.png">
- <export_file_selector id="export_file_selector" type="save" title="Export file" path="">
+ <export_file_selector id="file_path" type="save" title="Export file" path="">
<validator id="ExchangePlugin_ExportFormat" parameters="BREP|BRP:BREP,STEP|STP:STEP,IGES|IGS:IGES-5.1,IGES|IGS:IGES-5.3" />
<attributes>
- <attribute id="export_file_format" role="format" />
+ <attribute id="file_format" role="format" />
</attributes>
</export_file_selector>
<multi_selector id="selection_list" tooltip="Select a set of objects" type_choice="Vertices Edges Faces Solids" />