Interface IRectangleProfile
Defines a rectangular section profile.
Inherited Members
Namespace: Oasys.Profiles
Assembly: AdSec_API_IDL.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
using Oasys.Profiles;
using OasysUnits;
Length depth = Length.FromMillimeters(800);
Length width = Length.FromMillimeters(500);
IRectangleProfile profile = IRectangleProfile.Create(depth, width);
Example creating a rectangular profile.
Properties
Width
Width of the rectangle, in y-axis direction.
Declaration
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(Length, Length)
Creates a new IRectangleProfile profile from its Depth and Width
Declaration
static IRectangleProfile Create(Length depth, 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. |