Hi all
I don't know if this is the right place to ask this question but I know that there are some who touch the Vba SW well. This would be to have some explanations because every time I record a macro I ask myself these questions: Here is a saved macro used to reconstruct a file:
Dim swApp As Object
Dim Part As Object
Dim boolstatus As Boolean
Dim longstatus As Long, longwarnings As Long
Sub main()
Set swApp = _
Application.SldWorks
Set Part = swApp.ActiveDoc
boolstatus = Part.EditRebuild3()
End Sub
I would like to know why SW always creates the "longstatus" and "longwarning" variables when it almost never uses them? Just in case? What could they be used for please?
In addition there is this variable of the type Boolean, why is it created please? And why is this type of varaible used to carry out this reconstruction action?
Thank you for your answers which will enlighten me for the coding of my macro:)
Have a nice day