IFCAnyHandle Class

A handle representing an item in an IFC file.
Inheritance Hierarchy
SystemObject
  Autodesk.Revit.DB.IFCIFCAnyHandle

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
 NameDescription
Public propertyHasValue Identifies if the handle is empty or contains a value.
Public propertyId The integer identifier for the handle.
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
Public propertyStepId The step id of the handle. Valid only for import.
Public propertyTypeName The name of the type of the handle.
Top
Methods
 NameDescription
Public methodCreateAggregateAttribute Creates an attribute that is an aggregate. TODO: Rename to createAggregateByRef
Public methodDelete Deletes the handle.
Public methodDisposeReleases all resources used by the IFCAnyHandle
Public methodEquals Determines whether the specified Object is equal to the current Object.
(Overrides ObjectEquals(Object))
Public methodGetAttribute Gets the attribute by name.
Public methodGetHashCode Gets the integer value of the id as hash code
(Overrides ObjectGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIsSubTypeOf Determines whether the instance is an instance of the specified instance type or a subtype of this instance type.
Public methodIsTypeOf Determines whether the instance is an instance of exactly the specified instance type.
Public methodSetAttribute(String, IFCAnyHandle) Sets the attribute value.
Public methodSetAttribute(String, IFCData) Sets the attribute value.
Public methodSetAttribute(String, Boolean) Sets the attribute value.
Public methodSetAttribute(String, IListIFCAnyHandle) 
Public methodSetAttribute(String, IListBoolean) 
Public methodSetAttribute(String, IListDouble) 
Public methodSetAttribute(String, IListInt32) 
Public methodSetAttribute(String, IListString) 
Public methodSetAttribute(String, ISetIFCAnyHandle) 
Public methodSetAttribute(String, ISetBoolean) 
Public methodSetAttribute(String, ISetDouble) 
Public methodSetAttribute(String, ISetInt32) 
Public methodSetAttribute(String, ISetString) 
Public methodSetAttribute(String, Double) Sets the attribute value.
Public methodSetAttribute(String, Int32) Sets the attribute value.
Public methodSetAttribute(String, String) Sets the attribute value.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodUnsetAttribute Unsets the attribute value.
Top
Operators
 NameDescription
Public operatorStatic memberEquality(IFCAnyHandle, IFCAnyHandle)Determines whether two IFCAnyHandles are the same.
Public operatorStatic memberInequality(IFCAnyHandle, IFCAnyHandle)Determines whether two IFCAnyHandles are different.
Top
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.
See Also