Quantcast
Channel: RevitNetAddinWizard & NavisworksNetAddinWizard
Viewing all articles
Browse latest Browse all 872

Revit .NET API: DatumPlane.HideBubbleInView

$
0
0

 

As people noticed, Revit .NET API has inconsistencies here and there. The DatumPlane.HideBubbleInView() has one.

When it's called, without good reasons, the following confusing exception could be thrown out:

"Autodesk.Revit.Exceptions.ArgumentException: The datum plane cannot be visible in the view.
Parameter name: view
at Autodesk.Revit.DB.DatumPlane.HideBubbleInView(DatumEnds datumEnd, View view)"

Tried to figure what could exactly cause it to appear but failed. As understood, the DatumPlane.HideBubbleInView() was supposed to hide a grid bubble in a view, but the exception seemed to indicate something totally different, the method trying to make the bubble visible in the view.

As always, we had to wrap the call into a try/catch block to avoid the whole process being interrupted. So, as many experienced, Revit .NET API programming is nothing more than try/catch!

Revit .NET Addin Wizard 2015

Revit Shared Parameter File Organizer (Editor and Viewer)

Revit Parameter Organizer

Revit Family Organizer

More


Viewing all articles
Browse latest Browse all 872

Trending Articles