No, still don't work as expected. Probaly some win7 issue. But whats tripping me up is that it is happening all of a sudden.
Now the skp files look OK in the browser. Same rights and fileattributes etc. But the new files don't show up when I create a list of names for a webdialog. Rebooting doesent help.
To explain further I have a folder (something like: Plugins\JOLtest\Std_comps) where there are specific Hatch components.
Last month or so I put some components there for testing, and their name show up in the dialog just fine. Yesterday I tried to add a few more and this happend(read topic).
I'm using this simple Ruby code to get the components name to string array. For using it in Dialog. It works ok, since this folder will only contain specific Hatchcomps.
def getComps(folder)#sorts .skp files to strings to array
comps=[]
path = File.expand_path( File.dirname(__FILE__) )
path = File.join( path, folder ) #gets foldername from methodcall.
std_list=Dir.entries(path)
std_list.to_a.each{|fil| #return list as string if str. has ".skp" in it.
if fil.include? ".skp"
comps << fil.chomp(".skp") #remove ".skp" extension name
end
}
compList=comps.sort.join('|') #join each listitem with "|".
return compList
end
And then in a callback do an execute script like:
@my_dialog.execute_script(%(document.getElementById("std_list").value="#{getComps('JOLtest\Std_comps')}";))
Although I don't think the code is relevant to this problem, I'm just showing it so it's clear whats going on.
Edited: BTW I can drag the "Nonworking" components into Sketchup(from folder), so they are not corrupted in that kind of way.