Interface IRectangleProfile
Defines a rectangular section profile.
Inherited Members
Namespace: Oasys.Profiles
Assembly: cs.temp.dll.dll
Syntax
public interface IRectangleProfile : ITrapezoidProfileAbstractInterface, IProfile
Remarks
IRectangleProfile inherits ITrapezoidProfileAbstractInterface and IProfile.
The rectangle is centered at the origin of its local coordinate system.
Examples
Properties
Width
Width of the rectangle, in y-axis direction.
Declaration
OasysUnits.Length Width { get; set; }
Property Value
| Type | Description |
|---|---|
| OasysUnits.Length |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException | When the width is not a positive and finite value. |
Methods
Create(OasysUnits.Length, OasysUnits.Length)
Creates a new IRectangleProfile profile from its Depth and Width
Declaration
static IRectangleProfile Create(OasysUnits.Length depth, OasysUnits.Length width)
Parameters
| Type | Name | Description |
|---|---|---|
| OasysUnits.Length | depth | Defines the profile's depth |
| OasysUnits.Length | width | Defines the profile's width |
Returns
| Type | Description |
|---|---|
| IRectangleProfile | Rectangular profile with the specified width. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException | When any of its dimensions is not a positive and finite value. |