@@ -181,6 +181,9 @@ proc Kratos::LoadCommonScripts { } {
181181 if { [lsearch -exact $::auto_path [file join $kratos_private(Path) scripts]] == -1 } {
182182 lappend ::auto_path [file join $kratos_private(Path) scripts]
183183 }
184+ if { [lsearch -exact $::auto_path [file join $kratos_private(Path) libs]] == -1 } {
185+ lappend ::auto_path [file join $kratos_private(Path) libs]
186+ }
184187
185188 # Writing common scripts
186189 foreach filename {Writing.tcl WriteHeadings.tcl WriteMaterials.tcl WriteNodes.tcl
@@ -193,15 +196,15 @@ proc Kratos::LoadCommonScripts { } {
193196 uplevel #0 [list source [file join $kratos_private(Path) scripts $filename ]]
194197 }
195198 # Common controllers
196- foreach filename {ApplicationMarketWindow.tcl ExamplesWindow.tcl CommonProcs.tcl PreferencesWindow.tcl TreeInjections.tcl MdpaImportMesh.tcl Drawer.tcl} {
199+ foreach filename {ApplicationMarketWindow.tcl ExamplesWindow.tcl CommonProcs.tcl PreferencesWindow.tcl TreeInjections.tcl MdpaImportMesh.tcl Drawer.tcl ImportFiles.tcl } {
197200 uplevel #0 [list source [file join $kratos_private(Path) scripts Controllers $filename ]]
198201 }
199202 # Model class
200203 foreach filename {Model.tcl Entity.tcl Parameter.tcl Topology.tcl Solver.tcl ConstitutiveLaw.tcl Condition.tcl Element.tcl Material.tcl SolutionStrategy.tcl Process.tcl} {
201204 uplevel #0 [list source [file join $kratos_private(Path) scripts Model $filename ]]
202205 }
203206 # Libs
204- foreach filename {SimpleXMLViewer.tcl FileManager.tcl } {
207+ foreach filename {SimpleXMLViewer.tcl} {
205208 uplevel #0 [list source [file join $kratos_private(Path) libs $filename ]]
206209 }
207210}
@@ -343,6 +346,13 @@ proc Kratos::LoadWizardFiles { } {
343346 package require gid_smart_wizard
344347 Kratos::UpdateMenus
345348}
349+ proc Kratos::LoadImportFiles { } {
350+ variable kratos_private
351+ # Load the wizard package
352+ set kratos_private(UseFiles) 1
353+ package require gid_pt_file_manager
354+ Kratos::UpdateMenus
355+ }
346356
347357proc Kratos::TransformProblemtype {old_dom old_filespd} {
348358 # Check if current problemtype allows transforms
0 commit comments