]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ExchangePlugin/plugin-Exchange.xml
Salome HOME
Task 5.1.7: To be able to export a part to a file and import it into an existing...
[modules/shaper.git] / src / ExchangePlugin / plugin-Exchange.xml
index 59a246ecdcbe081fbe1eaa540f736ffad1039893..8b8cd1a1d3bf3cea928b583a5fd025b706901a73 100644 (file)
              tooltip="To use geometrical order for identification of selected shapes"
              default="false"/> -->
       </feature>
+
+      <feature id="ImportPart" title="Import part" tooltip="Import features from file" icon="icons/Exchange/import_part.png"
+               helpfile="importPart.html"
+               internal="1">
+        <file_selector id="file_path" title="Import file" path="">
+          <validator id="ExchangePlugin_ImportFormat" parameters="shaperpart:Part" />
+        </file_selector>
+      </feature>
+      <feature id="ExportPart" title="Export part" tooltip="Export structure of the Part to file" icon="icons/Exchange/export_part.png"
+               helpfile="exportPart.html"
+               internal="1">
+        <export_file_selector id="file_path"
+                              type="save"
+                              title="Export file"
+                              path="">
+          <validator id="ExchangePlugin_ExportFormat"
+                     parameters="shaperpart:Part" />
+        </export_file_selector>
+        <multi_selector id="selection_list"
+                        tooltip="Select features or results"
+                        shape_types="Vertices Edges Faces Solids Compsolids Objects">
+        </multi_selector>
+      </feature>
     </group>
   </workbench>
 </plugin>
\ No newline at end of file