26 Replies Latest reply on May 19, 2015 3:40 PM by David Dewey

    Changing a macro prompt from a message box to a userform

    David Dewey

      I'm trying to change the following from message box input, 3 sequential boxes pop up with whatever the existing solidworks custom property as default text, to a form.

       

      swCustPropMgr.Set "DESCRIPTION", InputBox("ENTER PRINT DESCRIPTION : ", "IMI CUSTOM PROPERTIES WRITER", BoxDescription)

      swCustPropMgr.Set "SCALE", InputBox("ENTER SCALE : ", "IMI CUSTOM PROPERTIES WRITER", SWScale)

      swCustPropMgr.Set "GRADE", InputBox("DESIGNATE GRADE : ", "IMI CUSTOM PROPERTIES WRITER", SWGrade)

       

      I'm having trouble finding anything on how to jump out to this form, populate the three fields with the existing info, get the option buttons to push in anything new to the SWX Classification textbox, then take that and jump back into my macro. If anyone could give any guidance, general or specific it would be greatly appreciated.