Class StandardPart
A standard part, in SDS2, is a piece of material that the system knows nothing about beyond a few basic attributes like material color and grade. It could come from a library of parts, or it could come from fusing together two pieces of material.
Inherited Members
Namespace: DesignData.SDS2.Model
Assembly: DesignData.SDS2.Model.dll
Syntax
public sealed class StandardPart : Material
Constructors
StandardPart()
Declaration
public StandardPart()
Properties
AvailableSteelGrades
A list of steel grades, valid for StandardParts, which can be assigned to the Grade property of a StandardPart
Declaration
public static SteelGradeList AvailableSteelGrades { get; }
Property Value
Type | Description |
---|---|
SteelGradeList |
Grade
Returns a steel grade, or null if not applicable
Declaration
public SteelGrade Grade { get; set; }
Property Value
Type | Description |
---|---|
SteelGrade |
Remarks
To set a grade look for the Grade property on the derived class. You'll need to choose a grade from an appropriate grade list for that material type. Which can be found in a static property, on that class, called AvailableSteelGrades.
Exceptions
Type | Condition |
---|---|
InvalidValueException | Attempting to set a grade not in this type of material's grade list will throw an InvalidValueException. This is determined by searching that grade list for a grade which is equal (operator ==). |
Methods
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |