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
1 <plugin>
2   <workbench id="Part">
3     <group id="Exchange">
4       <feature id="Import" title="Import" tooltip="Import a file" icon="icons/Exchange/import.png" document="Part"
5                helpfile="importFeature.html">
6         <file_selector id="file_path" title="Import file" path="">
7           <validator id="ExchangePlugin_ImportFormat" parameters="BREP|BRP:BREP,STEP|STP:STEP,IGES|IGS:IGES,XAO:XAO" />
8         </file_selector>
9       </feature>
10       <feature id="Export" title="Export" tooltip="Export to file" icon="icons/Exchange/export.png"
11                helpfile="exportFeature.html">
12         <source path="export_widget.xml" />
13       </feature>
14       <feature id="Dump" title="Dump" tooltip="Dump Python script" icon="icons/Exchange/dump.png"
15                helpfile="dumpFeature.html">
16         <export_file_selector id="file_path"
17                               type="save"
18                               title="Dump to file"
19                               path="">
20           <validator id="ExchangePlugin_ExportFormat"
21                      parameters="py:Python" />
22         </export_file_selector>
23         <!--<boolvalue id="topological_naming"
24              label="Topological naming selection"
25              tooltip="To use standard topological naming selection identifier, used for parametric model"
26              default="true"/>
27         <boolvalue id="geometric_selection"
28              label="Geometric selection"
29              tooltip="To use geometrical point coordinates to identify selected shapes"
30              default="true"/>
31         <boolvalue id="weak_naming"
32              label="Weak naming selection"
33              tooltip="To use geometrical order for identification of selected shapes"
34              default="false"/> -->
35       </feature>
36
37       <feature id="ImportPart" title="Import part" tooltip="Import features from file" icon="icons/Exchange/import_part.png"
38                helpfile="importPart.html"
39                internal="1">
40         <file_selector id="file_path" title="Import file" path="">
41           <validator id="ExchangePlugin_ImportFormat" parameters="shaperpart:Part" />
42         </file_selector>
43       </feature>
44       <feature id="ExportPart" title="Export part" tooltip="Export structure of the Part to file" icon="icons/Exchange/export_part.png"
45                helpfile="exportPart.html"
46                internal="1">
47         <export_file_selector id="file_path"
48                               type="save"
49                               title="Export file"
50                               path="">
51           <validator id="ExchangePlugin_ExportFormat"
52                      parameters="shaperpart:Part" />
53         </export_file_selector>
54         <multi_selector id="selection_list"
55                         tooltip="Select features or results"
56                         shape_types="Vertices Edges Faces Solids Compsolids Objects">
57         </multi_selector>
58       </feature>
59     </group>
60   </workbench>
61 </plugin>