Hi,
Take a look at the AcGiDrawableOverrule or AcDbVisibilityOverrule classes.
Cheers,
Thierry
thx, but still have not idea how to use this two class,
I have a entity class derive from AcDb3dSolid, should I override the subSetVisibility() method?
This is on top of my wishlist since years! I'm glad to see that I'm not the only one
The easiest way to hide an entity in a viewport is to put the entity on a layer that is invisible in this viewport. You can freeze layers in a viewport using
AcDbViewport::freezeLayersInViewport(const AcDbObjectIdArray &layerIDs);
But than you have an unwanted layer-dependency.
In fact the only alternative is to use custom viewportDraw()-approaches. This is possible but quite complicated, inefficient and tends to be unstable according to my experience. Since ARX supports overrules, you are no longer limited to custom objects.
See here for examples:
IMO it should be a simple task for Autodesk to implement visibility per viewport. It already works for the layer visibility.
hi, tbrammer
thanks for your reply, I will try to do this in C++ today, because I'm not familiar with C#, hope it will work.
thx,
nolan