Get Surface Area for Painting

修改於: 十一月 03,2020  
評價
下載: 1708  
評論

規格

下載:1708
描述:Updated 2020-11-03... When originally written (with SW2008) this macro saved a part file copy of your original file, using the defeature tool to strip out all internal volumes. It then got the surface area of that defeatured part, inserted the surface area into the custom properties of the original file and then deleted the defeatured copy. Unfortunately the defeature tool no longer works that way and the API's are still not accessible (at least in all versions of SW up to and including 2018; the year I'm using). In order for the macro to function correctly you need to run the defeature tool at least once and save the settings... menu -> tools -> defeature... A side bar will open for the tool and you need to uncheck everything and make all the selection boxes blank (except for the store settings option on the last page). left side bar -> next -> next -> next -> wait -> next -> Check “Just store my settings for future use” -> OK (Tick) If they ever unlock the API's then I will most likely update the macro but until then there is no point. The temp file was originally being saved to and then deleted from the desktop but this has proven to be a bit sketchy in regards to user privileges... not it will save to and delte from the location of the open file. So as long as you have automated write ability to that folder then you are good to go. This macro will not work with surface models. If you have never run the defeature tool before the macro will flatten the file and most likely spit out the entire surface area including internals.
    前置條件: An open solidworks assembly file with part files and assembly files inside.
  後置條件: The original open assembly will now contain the surface area in the custom properties.
SOLIDWORKS 版本: Unknown
程式設計語言: SW_VBA

 


巨集可能包含病毒或其他安全性的威脅。SOLIDWORKS Corporation 尚未確認張貼在此網站上的巨集是安全的,或巨集是來自於可信任的來源。

下載 SOLIDWORKS 巨集。

 

(需要登入)  

提供者
來自此使用者所提供的其他項目

 

 

 

巨集
Stuart Coutts

成為使用者的時間: 2009/5/30
標題: Engineer
 
技能:
Solidworks Expert - First Hons Degree in CAD
興趣:
Motor Racing - Hill Climb & MotorcrossSki Racing - All Dis except aerial (cos thats just insane lol)Weight Lifting
 
  報告不適當的使用者
報告不適當的評論