Salome HOME
[bos #40620] [CEA] XAO export for SHAPER: Allow export of brep in a separate file
[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, STL">
9             <file_selector id="file_path" title="Import file" path="">
10               <validator id="ExchangePlugin_ImportFormat" parameters="BREP|BRP:BREP,IGES|IGS:IGES,XAO:XAO,STL:STL" />
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           <case id="XAOMem" title="XAOMem" internal="1">
40           </case>
41         </switch>
42       </feature>
43
44       <feature id="ImportImageMacro" title="Import" tooltip="Import a file" icon="icons/Exchange/import.png"
45                helpfile="importFeature.html"
46                internal="1">
47         <file_selector id="file_path" title="Import image file" path="">
48           <validator id="ExchangePlugin_ImportFormat" parameters="GIF|TIFF|PNG|JPG|JPEG|BMP|PPM|JPE:Image" />
49         </file_selector>
50         <choice id="target_part"
51                 string_list_attribute="target_parts_list"
52                 label="Import to"
53                 tooltip="Select the image to import the document" />
54       </feature>
55
56       <feature id="Import" title="Import" tooltip="Import a file" icon="icons/Exchange/import.png"
57                helpfile="importFeature.html" internal="1">
58         <switch id="ImportType">
59           <case id="Regular" title="BREP, XAO, IGES, STL">
60             <file_selector id="file_path" title="Import file" path="">
61                 <validator id="ExchangePlugin_ImportFormat" parameters="BREP|BRP:BREP,IGES|IGS:IGES,XAO:XAO,STL:STL" />
62             </file_selector>
63           </case>
64           <case id="STEP" title="STEP">
65             <file_selector id="step_file_path" title="Import file" path="">
66               <validator id="ExchangePlugin_ImportFormat" parameters="STEP|STP:STEP" />
67             </file_selector>
68             <groupbox title="STEP options">
69               <boolvalue id="step_scale_inter_units"
70                          label="Scale to International System of Units"
71                          default="true"/>
72               <groupbox title="Create groups from">
73                 <boolvalue id="step_materials"
74                            label="Materials"
75                            default="false"/>
76                 <boolvalue id="step_colors"
77                            label="Colors"
78                            default="false"/>
79               </groupbox>
80             </groupbox>
81           </case>
82           <case id="XAOMem" title="XAOMem" internal="1">
83           </case>
84         </switch>
85       </feature>
86       <feature id="ImportImage" title="Import" tooltip="Import a file" icon="icons/Exchange/import.png"
87                helpfile="importFeature.html"
88                internal="1">
89         <file_selector id="file_path" title="Import image file" path="">
90           <validator id="ExchangePlugin_ImportFormat" parameters="GIF|TIFF|PNG|JPG|JPEG|BMP|PPM|JPE:Image" />
91         </file_selector>
92       </feature>
93       <feature id="Export" title="Export" tooltip="Export to file" icon="icons/Exchange/export.png"
94                helpfile="exportFeature.html" internal="1">
95         <source path="export_widget.xml" />
96       </feature>
97
98       <feature id="Dump" title="Dump" tooltip="Dump Python script" icon="icons/Exchange/dump.png"
99                helpfile="dumpFeature.html" abort_confirmation="false">
100         <export_file_selector id="file_path"
101                               type="save"
102                               title="Dump to file"
103                               path="">
104           <validator id="ExchangePlugin_ExportFormat"
105                      parameters="py:Python" />
106         </export_file_selector>
107         <!--<boolvalue id="topological_naming"
108              label="Topological naming selection"
109              tooltip="To use standard topological naming selection identifier, used for parametric model"
110              default="true"/>-->
111         <boolvalue id="geometric_selection"
112              label="Dump by coordinates"
113              tooltip="To use geometrical point coordinates to identify selected shapes"
114              default="false"/>
115         <!--<boolvalue id="weak_naming"
116              label="Weak naming selection"
117              tooltip="To use geometrical order for identification of selected shapes"
118              default="false"/> -->
119       </feature>
120
121       <feature id="ImportPart" title="Import part" tooltip="Import features from file" icon="icons/Exchange/import_part.png"
122                helpfile="importFeature.html"
123                internal="1">
124         <file_selector id="file_path" title="Import file" path="">
125           <validator id="ExchangePlugin_ImportFormat" parameters="shaperpart:Part" />
126         </file_selector>
127         <choice id="target_part"
128                 string_list_attribute="target_parts_list"
129                 label="Import to"
130                 tooltip="Select the part to import the document" />
131       </feature>
132
133       <feature id="ExportPart" title="Export part" tooltip="Export structure of the Part to file" icon="icons/Exchange/export_part.png"
134                helpfile="exportFeature.html"
135                internal="1">
136         <export_file_selector id="file_path"
137                               type="save"
138                               title="Export file"
139                               path="">
140           <validator id="ExchangePlugin_ExportFormat"
141                      parameters="shaperpart:Part" />
142         </export_file_selector>
143         <multi_selector id="selection_list"
144                         tooltip="Select features or results"
145                         shape_types="Vertices Edges Faces Solids Compsolids Objects">
146           <validator id="GeomValidators_GlobalSelection" />
147           <validator id="ExchangePlugin_InHistory" />
148         </multi_selector>
149       </feature>
150     </group>
151   </workbench>
152 </plugin>