Message 1 of 2
Revit Links Halftone, Underlay checking
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Is there any possible way to check whether the Revit link is half-tone or not in a view?
Cause I didn't find anything in Revit Lookup. I also used Override Graphic Settings, and it always gives halftone as false.
UIDocument uidoc = this.ActiveUIDocument;
Document doc = uidoc.Document;
Autodesk.Revit.DB.View view = doc.ActiveView;
Reference sel = uidoc.Selection.PickObject(ObjectType.Element,"select Revit Link") ;
Element e =doc.GetElement(sel.ElementId);
if (e != null)
{
bool isLinkHalftone = false;
OverrideGraphicSettings ogs = view.GetElementOverrides(e.Id);
if(ogs.Haltone == true)
{
isLinkHalftone = true;
}
}