Automatic Sketch Horizontal/Vertical Relations (Line Entities)

Modificato il: novembre 10,2025  
Votazione
Download: 1  
Commenti

Specifiche

Download:1
Descrizione: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.
    Pre-condizione: Select sketch entities
  Post-condizione: All lines will be horizontal/vertical based on how close they already are to that. Rounds roughly by 45° (similar to bold relations)
Versione SOLIDWORKS: Any
Lingua di programmazione: SW_VBA

 


Le macro possono contenere virus o altre minacce per la sicurezza. SOLIDWORKS Corporation non ha verificato che le macro pubblicate su questo sito siano sicure e che provengano da una fonte sicura.

Fare il download della macro SOLIDWORKS.

 

(Login richiesto)  

Contribuente
Altri contributi da questo utente

Parti & Assiemi

 

 

 

Macro
Abraham Azar III

Utente dal: 29/05/2009
Titolo: Engineer
 
Caratteristiche:
Design, Modeling, Illustration, Analysis
Interessi:
Manufacturing, Research & Development, Experiments
 
  Rapporto utente inappropriato
Rapporto commento non appropriato