0 Replies Latest reply on Jan 13, 2015 3:28 AM by Tore Magne Bjornodegard

    Macro to align views horizontal or vertical

    Tore Magne Bjornodegard

      Hi!

      This will probably be the last macro for a good while, as i'm quitting my job and will not be using solidworks no moe.

      Please enjoy!

       

      Ever tried the align edge vertical or horizontal function that works perfectly 50%(or less) of the time?(at least not in SW2014)

      Heres a macro that does the same thing, except for the 50% part.

       

      1.Select a line in a view and run macro(line must be straight and able to be convert to entity)

      2.press buttons to align selected line horizontal or vertical, if you press same button twice it will rotate view another 180º

      3.select new line to align or exit form

       

      NB! this macro does not have an error handler so if You pick a face, a arc or no line at all it will fail.

       

      Do the changes You like, no copyrights apply!!