IFCAnyHandle
A handle representing an item in an IFC file.
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.IFC.IFCAnyHandle
Namespace: Autodesk.Revit.DB.IFC
Assembly: RevitAPIIFC (in RevitAPIIFC.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class IFCAnyHandle : IDisposable
The IFCAnyHandle type exposes the following members.
Properties
Name
Description
Public Property
HasValue
Identifies if the handle is empty or contains a value.
Public Property
Id
The integer identifier for the handle.
Public Property
IsValidObject
Specifies whether the .NET object represents a valid Revit entity.
Public Property
StepId
The step id of the handle. Valid only for import.
Public Property
TypeName
The name of the type of the handle.
Methods
Name
Description
Public Method
CreateAggregateAttribute
Creates an attribute that is an aggregate. TODO: Rename to createAggregateByRef
Public Method
Delete
Deletes the handle.
Public Method
Dispose
Releases all resources used by the IFCAnyHandle
Public Method
Equals
Determines whether the specified Object is equal to the current Object.
(Overrides Object.Equals(Object))
Public Method
GetAttribute
Gets the attribute by name.
Public Method
GetHashCode
Gets the integer value of the id as hash code
(Overrides Object.GetHashCode.)
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object)
Public Method
IsSubTypeOf
Determines whether the instance is an instance of the specified instance type or a subtype of this instance type.
Public Method
IsTypeOf
Determines whether the instance is an instance of exactly the specified instance type.
Public Method
SetAttribute(String, IFCAnyHandle)
Sets the attribute value.
Public Method
SetAttribute(String, IFCData)
Sets the attribute value.
Public Method
SetAttribute(String, Boolean)
Sets the attribute value.
Public Method
SetAttribute(String, IList.IFCAnyHandle.)
Public Method
SetAttribute(String, IList.Boolean.)
Public Method
SetAttribute(String, IList.Double.)
Public Method
SetAttribute(String, IList.Int32.)
Public Method
SetAttribute(String, IList.String.)
Public Method
SetAttribute(String, ISet.IFCAnyHandle.)
Public Method
SetAttribute(String, ISet.Boolean.)
Public Method
SetAttribute(String, ISet.Double.)
Public Method
SetAttribute(String, ISet.Int32.)
Public Method
SetAttribute(String, ISet.String.)
Public Method
SetAttribute(String, Double)
Sets the attribute value.
Public Method
SetAttribute(String, Int32)
Sets the attribute value.
Public Method
SetAttribute(String, String)
Sets the attribute value.
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)
Public Method
UnsetAttribute
Unsets the attribute value.
Operators
Name
Description
Public Operator
Static Member
Equality(IFCAnyHandle, IFCAnyHandle)
Determines whether two IFCAnyHandles are the same.
Public Operator
Static Member
Inequality(IFCAnyHandle, IFCAnyHandle)
Determines whether two IFCAnyHandles are different.
Remarks
Handles are used to populate each line item in an IFC file. Each handle is assigned a unique identifier (an integer) which can be seen in the file contents at the start of the line.