几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】save dialog window (http://www.dimcax.com/hust/showthread.php?t=5702)

yang686526 2009-04-13 02:05 PM

【转帖】save dialog window
 
save dialog window
i'm trying to generate the standard save as window you get when saving a newly created file. is there a way to get this? when i record a macro for saving a new file, it hard codes the file name and location in. i want to allow the user to browse to a location and enter the file name.
thanks
mechanical engineer
temptronic corp
.temptronic.com
you will need to add a use form o teh macro and then add a commondialog control to the form. as a default, this control is not available in solidworks vba so you will have to add it to your available controls. "tools->additional controls" and check "microsoft common dialog control".
wayne matus
texas engineering systems
thanks wayne, i'll check into that.
mechanical engineer
temptronic corp
.temptronic.com
wayne,
i get an error when i try to drop the control on my form. i get a pop-up with "the control could not be created because it is not properly licensed."
i don't understand what the error is here. do you have any idea of a fix?
mechanical engineer
temptronic corp
.temptronic.com
here is link where someone found answer to your problem.
wayne matus
texas engineering systems
quick


所有的时间均为北京时间。 现在的时间是 11:33 PM.