Greetings!
Part is a Solidworks Assembly and Part.EditRebuild3() returns always true.
'-------------------------------
Sub main()
Dim swApp As Object
Dim Part As Object
Dim boolstatus As Boolean
Dim topOnly As Boolean
Set swApp = CreateObject("SldWorks.Application")
Set Part = swApp.ActiveDoc
If Part.EditRebuild3() Then 'This also also always returns true even there is rebuild errors.
MsgBox "Rebuild successful" 'So the result is always successful but it is not
Else
MsgBox "This model has rebuild errors"
End If
topOnly = True
If Part.ForceRebuild3(topOnly) Then 'This also always returns true even there is rebuild errors.
MsgBox "Forced rebuild successful" 'So the result is always successful but it is not
Else
MsgBox "This model has rebuild errors"
End If
End Sub
'---------------------------------
In API help it should return TRUE when there is no rebuild error. And it should return FALSE when there is rebuild errors. Where am I doing wrong?
Best regards