I hae the following code for a macro
Sub main()
Set swApp = Application.SldWorks
Set Part = swApp.ActiveDoc boolstatus = Part.Extension.SelectByID("", "FACE", -22.25058668939,
5.223159153259, 2.532190636408, False, 0, Nothing) Part.ShowNamedView2 "*Normal To", 0 Part.NameView "X", -1 boolstatus = Part.Extension.SelectByID("Default@PANEL 5.SLDPRT", "CONFIGURATIONS", 0, 0, 0, False, 0, Nothing) Part.ClearSelection Part.ShowConfiguration "Default" Part.ShowNamedView2 "*Dimetric", 9 End SubBut I get an error for this line "Part.NameView "X", -1" the error is runtime error450 wrong number of arguments or invalid assignment.
HELP???????
While I am at it, how do I get a macro to pause and ask me to choose a face and then continue on? you can see this macro starts with a face selcected, I have another macro to run before it and would like the two macros to be joined but what is stopping me is the selection of the face in the middle of the potentially combined macro.
TIA Ben