I am working on a custom design check that checks to make sure all components in an assembly are fully defined. I got the macro working however I want to make the failed items array a double array so that the items are highlighted when selected in the design checker as discussed in the remarks section of the page linked below:
2015 SOLIDWORKS API Help - SetCustomCheckResult Method (ISWDesignCheck)
Does anyone know what information to pass for a component to make this work correctly?
I have already tried Component.Name2 and Component.GetSekectByIDString
Thoughts?
All,
I have determined the solution to this issue. It is related to the array dimensions being flipped.
The note states that the entries should be formatted like this:
FailedItemsArr(0, 0) = "RD2@Drawing View2"
FailedItemsArr(0, 1) = "DIMENSION"
When really the should be like this:
FailedItemsArr(0, 0) = "RD2@Drawing View2"
FailedItemsArr(1, 0) = "DIMENSION"