Revit Links Halftone, Underlay checking

Revit Links Halftone, Underlay checking

mohd_danishCX582
Observer Observer
206 Views
1 Reply
Message 1 of 2

Revit Links Halftone, Underlay checking

mohd_danishCX582
Observer
Observer

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.

 

 

Visibility_Graphics.png

 

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;
    }
}

 

207 Views
1 Reply
Reply (1)
Message 2 of 2

Mohamed_Arshad
Advisor
Advisor

Hi @mohd_danishCX582 

 

From Revit 2024 Autodesk added a GetLinkOverrides Method it returns RevitLinkGraphicsSettings Object but this class access for only for DisplaySetting, still Halftone and Underlay not yet added. Kindly check the below already discussed threat.

 

Revit links graphic overrides - Autodesk Community

 

If possible kindly add at Idea Station. @naveen.kumar.t  any insights on this.

 


Mohamed Arshad K
Software Developer (CAD & BIM)