几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   SolidWorks二次开发 (http://www.dimcax.com/hust/forumdisplay.php?f=111)
-   -   【转帖】file open dialog bo (http://www.dimcax.com/hust/showthread.php?t=4724)

yang686526 2009-04-12 08:55 PM

【转帖】file open dialog bo
 
file open dialog box
i have been trying to programmatically populate the file/open dialog box using swapp::getopenfilename; for example:
fname = swapp.getopenfilename ("open file", "123456", "*.sldasm|*.sldasm", 0, options, cname, dname)
this populates the file type dropdown listbox with *.sldasm, but doesn't populate the file name dropdown listbox. does anyone know how to populate the file name box, or am i going about this completely the wrong way? should i call swapp.setcurrentworkingdirectory, or setpromptfilename? please advise!
thanks!!
to defeat the wheat, go against the grain.
the file has to exist and be in the folder that opens intially in order for it to populate the filename box
good to know. thanks, luke.
to defeat the wheat, go against the grain.
quick


所有的时间均为北京时间。 现在的时间是 02:55 AM.