It looks like you're new here. If you want to get involved, click one of these buttons!
Hi sir ,
I want to call a file explorer in Klayout Ruby , But I don't know how to do that...
here is what the part of my code.
As you can see , that is not a good way , that make me have to save all gds file in the fix path ...
so I want to ask for that if any good way or idea to call file explorer in Klayout like picture below....
Please help it....
file_list =Array.new()
dir=Dir.open("D:\\")
while name=dir.read
if name.match(".gds") || name.match(".gds2") || name.match(".GDS") then
####in this programming , it can process text file and inf file .
file_list << name
end
end
dir.close
........
file_name_list =Array.new()
gds_file_name.selectedItems.each do |gds_file|
file_name_list << "D:\\#{gds_file.text}"
end
Comments
Hello,
file = FileDialog.get_open_file_name("Open GDS File", ".", "GDS files (.gds, *.GDS);;All files ()")
puts file.value
Cheers,
Tomas
@tomas2004
Thanks , it is workable.