6 Replies Latest reply on Apr 20, 2015 4:09 PM by Checkcheck Master

    swModelDocExt.SelectAll in SW2015 with Userform opened

    Checkcheck Master

      Hi there,


      In a macro to change the scale on a drawing I'm using 'swModelDocExt.SelectAll' to select all dimension followed by 'boolstatus = Part.Extension.AlignDimensions(0, 1)' to align them according the new scale.

      Everything worked perfect in 2013 and 2014 but now in 2015 the SelectAll command seems to fail. It looks like the focus is on the userform instead of the open drawing. Showing the userform 'modal' or 'vbmodeless' the userform disappear.


      Anybody ?

      How can I keep the focus on the drawing when firing 'SelectAll' ?


      Greetings !