Class MaterialFile
A collection of material shape definitions
Inherited Members
Namespace: DesignData.SDS2.Setup
Assembly: DesignData.SDS2.Setup.dll
Syntax
public class MaterialFile
Properties
Handle
A database handle for this material file
Declaration
public MaterialFileHandle Handle { get; }
Property Value
Type | Description |
---|---|
MaterialFileHandle |
Remarks
This is internal only, because of dependency requirements between Setup and Database (Database depends on Setup, it can't be the other way around right now)
Methods
Add(Shape)
Add a new shape to this material file.
Declaration
public void Add(Shape shape)
Parameters
Type | Name | Description |
---|---|---|
Shape | shape |
Remarks
You must add this material file to the transaction before doing this.
AllRoundBars()
All the RoundBarShapes in the material file
Declaration
public RoundBarShapeList AllRoundBars()
Returns
Type | Description |
---|---|
RoundBarShapeList |
AllShapes()
All the shapes in the material file
Declaration
public ShapeList AllShapes()
Returns
Type | Description |
---|---|
ShapeList |
Dispose(bool)
A collection of material shape definitions
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing |
~MaterialFile()
A collection of material shape definitions
Declaration
protected ~MaterialFile()
Find(int)
The shape in the material file at the specified index (1-based)
Declaration
public Shape Find(int material_index)
Parameters
Type | Name | Description |
---|---|---|
int | material_index |
Returns
Type | Description |
---|---|
Shape |
Exceptions
Type | Condition |
---|---|
InvalidValueException | InvalidValueException will be thrown if the material file does not contain a shape with the specified index. |
Find(string)
The shape in the material file with the specified section size.
Declaration
public Shape Find(string section_size)
Parameters
Type | Name | Description |
---|---|---|
string | section_size |
Returns
Type | Description |
---|---|
Shape |
Exceptions
Type | Condition |
---|---|
InvalidValueException | InvalidValueException will be thrown if the material file does not contain a shape with the specified section size. |
Get()
Get the material file for the currently open/active job
Declaration
public static MaterialFile Get()
Returns
Type | Description |
---|---|
MaterialFile |