Question

if (ElementId.op_Inequality(primaryViewId, ElementId.InvalidElementId))

Error: 'Autodesk.Revit.DB.ElementId.operator !=(Autodesk.Revit.DB.ElementId, Autodesk.Revit.DB.ElementId)': cannot explicitly call operator or accessor

Was it helpful?

Solution

Have you tried this:

if (primaryViewId != ElementId.InvalidElementId)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top