Salome HOME
8f2445633b0dab154da16465c5bc8ad8023cefa5
[modules/shaper.git] / src / ExchangePlugin / plugin-Exchange.xml
1 <plugin>
2   <workbench id="Part">
3     <group id="Exchange">
4       <feature id="ImportMacro" title="Import" tooltip="Import a file" icon="icons/Exchange/import.png"
5                helpfile="importFeature.html"
6                internal="1">
7       <switch id="ImportType">
8         <case id="Regular" title="BREP, XAO, IGES">
9           <file_selector id="file_path" title="Import file" path="">
10               <validator id="ExchangePlugin_ImportFormat" parameters="BREP|BRP:BREP,IGES|IGS:IGES,XAO:XAO" />
11           </file_selector>
12         <choice id="target_part"
13                 string_list_attribute="target_parts_list"
14                 label="Import to"
15                 tooltip="Select the part to import the document" />
16         </case>
17         <case id="STEP" title="STEP">
18             <file_selector id="step_file_path" title="Import file" path="">
19               <validator id="ExchangePlugin_ImportFormat" parameters="STEP|STP:STEP" />
20             </file_selector>
21             <choice id="step_target_part"
22                 string_list_attribute="step_target_parts_list"
23                 label="Import to"
24                 tooltip="Select the part to import the document" />
25             <groupbox title="STEP options">
26               <boolvalue id="step_scale_inter_units"
27                         label="Scale to International System of Units"
28                         default="true"/>
29               <groupbox title="Create groups from">
30                 <boolvalue id="step_materials"
31                           label="Materials"
32                           default="false"/>
33                 <boolvalue id="step_colors"
34                           label="Colors"
35                           default="false"/>
36               </groupbox>
37             </groupbox>
38           </case>
39         </switch>
40       </feature>
41       <feature id="Import" title="Import" tooltip="Import a file" icon="icons/Exchange/import.png"
42                helpfile="importFeature.html" internal="1">
43         <switch id="ImportType">
44           <case id="Regular" title="BREP, XAO, IGES">
45             <file_selector id="file_path" title="Import file" path="">
46                 <validator id="ExchangePlugin_ImportFormat" parameters="BREP|BRP:BREP,IGES|IGS:IGES,XAO:XAO" />
47             </file_selector>
48           </case>
49           <case id="STEP" title="STEP">
50             <file_selector id="step_file_path" title="Import file" path="">
51               <validator id="ExchangePlugin_ImportFormat" parameters="STEP|STP:STEP" />
52             </file_selector>
53             <groupbox title="STEP options">
54               <boolvalue id="step_scale_inter_units"
55                         label="Scale to International System of Units"
56                         default="true"/>
57               <groupbox title="Create groups from">
58                 <boolvalue id="step_materials"
59                           label="Materials"
60                           default="false"/>
61                 <boolvalue id="step_colors"
62                           label="Colors"
63                           default="false"/>
64               </groupbox>
65             </groupbox>
66           </case>
67         </switch>
68       </feature>
69       <feature id="Export" title="Export" tooltip="Export to file" icon="icons/Exchange/export.png"
70                helpfile="exportFeature.html" internal="1">
71         <source path="export_widget.xml" />
72       </feature>
73       <feature id="Dump" title="Dump" tooltip="Dump Python script" icon="icons/Exchange/dump.png"
74                helpfile="dumpFeature.html" abort_confirmation="false">
75         <export_file_selector id="file_path"
76                               type="save"
77                               title="Dump to file"
78                               path="">
79           <validator id="ExchangePlugin_ExportFormat"
80                      parameters="py:Python" />
81         </export_file_selector>
82         <!--<boolvalue id="topological_naming"
83              label="Topological naming selection"
84              tooltip="To use standard topological naming selection identifier, used for parametric model"
85              default="true"/>
86         <boolvalue id="geometric_selection"
87              label="Geometric selection"
88              tooltip="To use geometrical point coordinates to identify selected shapes"
89              default="true"/>
90         <boolvalue id="weak_naming"
91              label="Weak naming selection"
92              tooltip="To use geometrical order for identification of selected shapes"
93              default="false"/> -->
94       </feature>
95
96       <feature id="ImportPart" title="Import part" tooltip="Import features from file" icon="icons/Exchange/import_part.png"
97                helpfile="importFeature.html"
98                internal="1">
99         <file_selector id="file_path" title="Import file" path="">
100           <validator id="ExchangePlugin_ImportFormat" parameters="shaperpart:Part" />
101         </file_selector>
102         <choice id="target_part"
103                 string_list_attribute="target_parts_list"
104                 label="Import to"
105                 tooltip="Select the part to import the document" />
106       </feature>
107       <feature id="ExportPart" title="Export part" tooltip="Export structure of the Part to file" icon="icons/Exchange/export_part.png"
108                helpfile="exportFeature.html"
109                internal="1">
110         <export_file_selector id="file_path"
111                               type="save"
112                               title="Export file"
113                               path="">
114           <validator id="ExchangePlugin_ExportFormat"
115                      parameters="shaperpart:Part" />
116         </export_file_selector>
117         <multi_selector id="selection_list"
118                         tooltip="Select features or results"
119                         shape_types="Vertices Edges Faces Solids Compsolids Objects">
120           <validator id="GeomValidators_GlobalSelection" />
121           <validator id="ExchangePlugin_InHistory" />
122         </multi_selector>
123       </feature>
124     </group>
125   </workbench>
126 </plugin>