Hello Seth,
You are very good in programming VB-Script macro for PowerInspect!
Here is the list of properties you do need:
pwi_ent_Feat_ProbedCircle_ correspond to PropertyCircularity
pwi_ent_Feat_Sphere_ correspond to PropertySphericity
pwi_ent_Plane_Probed_ correspond to PropertyPlanarity
pwi_ent_Feat_Cylinder_ correspond to PropertyCylindricity
Also The FormatNumber function returns an _expression_ formatted as a number.
It is not a reason to use it in comparison to limit (0.01).
So your macro would be corrected as:
Dim dCheck
for each G in ad.SequenceItems
if G.itemtype = 36006 then ' Feature Group ItemType
for each i in G.SequenceItems
Select Case i.ItemType
Case PWI_EntityItemType.pwi_ent_Feat_ProbedCircle_
dCheck = i.PropertyCircularity.Measured(am)
if dCheck > 0.010 then
index = index + 1 : badItems.add index, i
list = list & vbLF & "Feature: " & i.Name & " " & vbTab & i.PropertyCircularity.Name & ": " & FormatNumber(dCheck, 4)
End if
Case PWI_EntityItemType.pwi_ent_Feat_Sphere_
dCheck = i.PropertySphericity.Measured(am)
if dCheck > 0.010 then
index = index + 1 : badItems.add index, i
list = list & vbLF & "Feature: " & i.Name & " " & vbTab & i.PropertySphericity.Name & ": " & FormatNumber(dCheck, 4)
end if
Case PWI_EntityItemType.pwi_ent_Plane_Probed_
dCheck = i.PropertyPlanarity.Measured(am)
if dCheck > 0.010 then
index = index + 1 : badItems.add index, i
list = list & vbLF & "Feature: " & i.Name & " " & vbTab & i.PropertyPlanarity.Name & ": " & FormatNumber(dCheck, 4)
end if
Case PWI_EntityItemType.pwi_ent_Feat_Cylinder_
dCheck = i.PropertyCylindricity.Measured(am)
if dCheck > 0.010 then
index = index + 1 : badItems.add index, i
list = list & vbLF & "Feature: " & i.Name & " " & vbTab & i.PropertyCylindricity.Name & ": " & FormatNumber(dCheck, 4)
end if
End Select
next
end if
next
Hope this modification would works for you.
However I'd suggest to you to use CustomStop item.
It would check any item in a group out of tolerance.
During Play All so PI will stops displaying a message pointing on an item that actually out of tolerance.
Benefit of this method allows you to take in account actual limit values defined for each individual item.
Sample picture attached:

Also it's possible to define each individual items to check.
Please click on the Accept as Solution button if my post solves your issue or answers your question.
Regards,
Alexey
Alexey.Zorin
Technical Support Specialist