Class HoleMachineOperations
'Machine/Tool operations' as seen in the hole edit screen
Inherited Members
Namespace: DesignData.SDS2.Model
Assembly: DesignData.SDS2.Model.dll
Syntax
public sealed class HoleMachineOperations
Constructors
HoleMachineOperations()
'Machine/Tool operations' as seen in the hole edit screen
Declaration
public HoleMachineOperations()
Properties
BlindHoleDepth
The depth of the blind hole
Declaration
public double BlindHoleDepth { get; set; }
Property Value
Type | Description |
---|---|
double |
HasAnyOperations
Returns true iff the object has a blind hole, or has threads, or is not straight shaped.
Declaration
public bool HasAnyOperations { get; }
Property Value
Type | Description |
---|---|
bool |
IsBlind
Specifies if the hole is a blind hole
Declaration
public bool IsBlind { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsMetric
The units of operations are always stored in inches, but this flag indicates what units are displayed to the user in the hole edit screen and client code should ensure the actual distances stored are consistent with this flag, e.g. storing 6mm should be saved as .24 when IsMetric is true. When IsMetric is false the correct distance saved should probably be 1/4in or .25
Declaration
public bool IsMetric { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsStraightShape
Indicates if the shape of the hole is straight. The shape will be one of straight, countersink, or counterbore
Declaration
public bool IsStraightShape { get; }
Property Value
Type | Description |
---|---|
bool |
Notes
The notes for the operations
Declaration
public string Notes { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
ClearAllOperations()
Clear all operations
Declaration
public void ClearAllOperations()
~HoleMachineOperations()
'Machine/Tool operations' as seen in the hole edit screen
Declaration
protected ~HoleMachineOperations()
GetCounterboreShape()
A deep copy of the Counterbore shape of the hole or null if the shape is not counterbore. The shape will be one of straight, countersink, or counterbore
Declaration
public HoleMachineCounterboreShape GetCounterboreShape()
Returns
Type | Description |
---|---|
HoleMachineCounterboreShape |
GetCountersinkShape()
A deep copy of the Countersink shape of the hole or null if the shape is not countersink. The shape will be one of straight, countersink, or counterbore
Declaration
public HoleMachineCountersinkShape GetCountersinkShape()
Returns
Type | Description |
---|---|
HoleMachineCountersinkShape |
GetHashCode()
'Machine/Tool operations' as seen in the hole edit screen
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int |
Overrides
GetThreads()
A deep copy of the threads of the hole. Null indicates no threads
Declaration
public HoleMachineOperationThreads GetThreads()
Returns
Type | Description |
---|---|
HoleMachineOperationThreads |
SetCounterboreShape(HoleMachineCounterboreShape)
A deep copy of the Counterbore shape of the hole or null if the shape is not counterbore. The shape will be one of straight, countersink, or counterbore
Declaration
public void SetCounterboreShape(HoleMachineCounterboreShape bore)
Parameters
Type | Name | Description |
---|---|---|
HoleMachineCounterboreShape | bore |
SetCountersinkShape(HoleMachineCountersinkShape)
A deep copy of the Countersink shape of the hole or null if the shape is not countersink. The shape will be one of straight, countersink, or counterbore
Declaration
public void SetCountersinkShape(HoleMachineCountersinkShape sink)
Parameters
Type | Name | Description |
---|---|---|
HoleMachineCountersinkShape | sink |
SetThreads(HoleMachineOperationThreads)
A deep copy of the threads of the hole. Null indicates no threads
Declaration
public void SetThreads(HoleMachineOperationThreads threads)
Parameters
Type | Name | Description |
---|---|---|
HoleMachineOperationThreads | threads |