Struct ElementExId
Represents a Cam element identifier.
Implements
Inherited Members
Namespace: TopSolid.Cam.NC.Kernel.Automating
Assembly: TopSolid.Cam.NC.Kernel.Automating.dll
Syntax
public struct ElementExId : IEquatable<ElementExId>
Remarks
This class is similar of an ElementId, with additional Cam capabilities, like access to not yet created cam operations.
Constructors
ElementExId(Guid)
Initializes a new instance of the ParameterId structure.
Declaration
public ElementExId(Guid inId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inId | Id of preparation operation. |
ElementExId(ElementId)
Initializes a new instance of the ParameterId structure.
Declaration
public ElementExId(ElementId inElementId)
Parameters
Type | Name | Description |
---|---|---|
ElementId | inElementId | Element owner of the parameter. |
Fields
Empty
Empty identifier.
Declaration
public static readonly ElementExId Empty
Field Value
Type | Description |
---|---|
ElementExId |
Properties
ElementId
Gets the identifier of the owner element. Id is empty in this ElementId is not empty.
Declaration
public readonly ElementId ElementId { get; }
Property Value
Type | Description |
---|---|
ElementId |
Id
Gets the Id of a prepared operation. ElementId is empty in this Id is not empty.
Declaration
public readonly Guid Id { get; }
Property Value
Type | Description |
---|---|
System.Guid |
IsCreated
Checks if the operation is created, and defined by an ElementId.
Declaration
public readonly bool IsCreated { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsEmpty
Tells whether the parameter identifier is empty.
Declaration
public readonly bool IsEmpty { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsPreparation
Checks if the operation is in preparation, and defined by a Guid.
Declaration
public readonly bool IsPreparation { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
Equals(Object)
Declaration
public override bool Equals(object inObject)
Parameters
Type | Name | Description |
---|---|---|
System.Object | inObject |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Equals(ElementExId)
Implements System.Object.Equals(System.Object).
Declaration
public bool Equals(ElementExId other)
Parameters
Type | Name | Description |
---|---|---|
ElementExId | other |
Returns
Type | Description |
---|---|
System.Boolean |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
Operators
Equality(ElementExId, ElementExId)
Tells whether two parameter identifiers are equal.
Declaration
public static bool operator ==(ElementExId inParameterId1, ElementExId inParameterId2)
Parameters
Type | Name | Description |
---|---|---|
ElementExId | inParameterId1 | First parameter identifier. |
ElementExId | inParameterId2 | Second parameter identifier. |
Returns
Type | Description |
---|---|
System.Boolean | Parameter identifiers are equal. |
Inequality(ElementExId, ElementExId)
Tells whether two parameter identifiers are different.
Declaration
public static bool operator !=(ElementExId inParameterId1, ElementExId inParameterId2)
Parameters
Type | Name | Description |
---|---|---|
ElementExId | inParameterId1 | First parameter identifier. |
ElementExId | inParameterId2 | Second parameter identifier. |
Returns
Type | Description |
---|---|
System.Boolean | Parameter identifiers are different. |