IsHosted Property


Indicates if the Load is hosted or non-hosted.

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 23.0.0.0 (23.1.0.0)
Since: 2016

Syntax

C#
public bool IsHosted { get; }
Visual Basic
Public ReadOnly Property IsHosted As Boolean
	Get
Visual C++
public:
property bool IsHosted {
	bool get ();
}

Remarks

True is returned when load is hosted. False is returned load is non-hosted. To determine if load is hosted HostElementId property or [!:Autodesk::Revit::DB::Structure::LoadBase::HostElement] property may also be used.

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →