Get Surface Area for Painting

수정된 날짜:: 11월 03,2020  
등급
다운로드: 1705  
코멘트

스팩

다운로드:1705
설명: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-05-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
 
  부적절한 사용자 보고
부적절한 코멘트 보고