Automatic Sketch Horizontal/Vertical Relations (Line Entities)

変更日時: 11月 10,2025  
評価
ダウンロード: 1  
コメント

仕様

ダウンロード:1
説明: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
 
  不適切なユーザーをレポート
不適切なコメントを報告