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