Automatic Sketch Horizontal/Vertical Relations (Line Entities)

수정된 날짜:: 11월 10,2025  
등급
다운로드: 0  
코멘트

스팩

다운로드:0
설명:This macro analyzes the angle of each selected sketch line in a SolidWorks part document and automatically applies either a horizontal or vertical sketch relation. If a line's angle is close to 0 or π radians, a horizontal relation is added. If the angle is close to π/2 or 3π/2 radians, a vertical relation is added. Non-linear sketch entities are ignored. This helps enforce orthogonality in sketches for cleaner geometry and easier downstream modeling.
    전제 조건: Select sketch entities
  사후 조건: All lines will be horizontal/vertical based on how close they already are to that. Rounds roughly by 45° (similar to bold relations)
SOLIDWORKS 버전: Any
프로그래밍 언어: SW_VBA

 


매크로에는 바이러스나 기타 보안 위험이 있을 수 있습니다. SOLIDWORKS Corporation에서는 이 사이트에 게시된 매크로가 안전한지 그리고 신뢰할 수 있는 소스에서 왔는지 확인하지 않습니다.

SOLIDWORKS 매크로를 다운로드하십시오.

 

(로그인 필수)  

제공자
이 사용자의 다른 제공 항목

파트 및 어셈블리

 

 

 

매크로
Abraham Azar III

가입 날짜: 2009-05-29
제목: Engineer
 
기술:
Design, Modeling, Illustration, Analysis
관심:
Manufacturing, Research & Development, Experiments
 
  부적절한 사용자 보고
부적절한 코멘트 보고