You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an interesting issue. The problem is features in SOLIDWORKS expose 2 interfaces (IFeature) and a specific interface (e.g. IRefPlane). Depending on the way it is selected the actual selected object is either IFeature or IRefPlane and the dispatches are different so the comparison returns false. As xCAD IXFeature combines both of these in a single type (e.g. IXPlane), it makes sense to consider this case. Dev version has a fix for this and now handles both cases
Try this code on version = Xarial.XCad.0.8.0-beta.4687
//name = name of a plane
bool result = doc.Features.TryGet(name, out IXFeature feat);
feat.Select(false);
if (!feat.IsSelected)...
The text was updated successfully, but these errors were encountered: