几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   How to adjust unit of SW? (http://www.dimcax.com/hust/showthread.php?t=323)

directdwg 2006-12-19 12:53 PM

How to adjust unit of SW?
 
Dear Robin,

How to adjust unit of 3D model in SW?

Need I call ModelDoc.Rebuild if I change unit of 3D model?
Hello ,



Have a look at ModelDoc2.Get/SetUserPreferenceIntegerValue for the unit values you can provide. Because the values are cosmetic, you do not need to rebuild afterwards.





Regards,

-Earl


directdwg 2006-12-19 12:55 PM

回复: How to adjust unit of SW?
 
Q:
Can tolerances be adjusted via Call ModelDoc.SetTessationQuality?

Need I call ModelDoc.Rebuild after call SetTessationQuality?
Code as follows:
swModelDoc.SetTessellationQuality (tessellationQualityNum); swModelDoc.Rebuild (rebuildOptions);

R:
You should be able to get finer tessellation using SetTessellationQuality. Use ModelDoc2::GraphicsRedraw2 after using this method to update part.
Regards,
Robin Richter


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