Automatic Sketch Horizontal/Vertical Relations (Line Entities)

Modifié le: novembre 10,2025  
Notes
Téléchargements: 1  
Commentaires

Spécifications

Téléchargements:1
Description: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.
    Condition préalable: Select sketch entities
  Post-condition: All lines will be horizontal/vertical based on how close they already are to that. Rounds roughly by 45° (similar to bold relations)
Version de SOLIDWORKS: {0} Any
Langage de programmation: SW_VBA

 


Les macros peuvent contenir des virus ou autres dangers. SOLIDWORKS Corporation ne vérifie pas la sécurité des macros postées sur ce site ni la fiabilité de leur provenance.

Télécharger la macro SOLIDWORKS.

 

(Connexion requise)  

Contributeur
Autres contributions de cet utilisateur

Pièces et assemblages

 

 

 

Macros
Abraham Azar III

Utilisateur depuis: 29/05/2009
Titre: Engineer
 
Compétences:
Design, Modeling, Illustration, Analysis
Centres d'intérêts:
Manufacturing, Research & Development, Experiments
 
  Signaler un utilisateur inapproprié
Signaler un commentaire inapproprié