The method I use is to collect all the PMI and then check the array length to determine if there is any PMI in the part.
You may also want to check PmiManager.PmiRegions - these need to go into a PmiRegionCollection. Dim allpmi As PmiCollection = workpart.PmiManager.Pmis
If allpmi.ToArray.Length >0 Then ...
PMI Check
The method I use is to collect all the PMI and then check the array length to determine if there is any PMI in the part.
You may also want to check PmiManager.PmiRegions - these need to go into a PmiRegionCollection.
Dim allpmi As PmiCollection = workpart.PmiManager.Pmis
If allpmi.ToArray.Length >0 Then ...
Mike
Thank You
Thank you MikeHyde that is exactly how I am doing it.
Thomas