Description
A Factory object to create angles.
Object Model
Public Methods
Create |
Creates a VGT angle using
specified name, description and type. |
IsTypeSupported |
Returns true if the type is
supported. |
Example
Create an angle
between two planes.
[C#] |
Copy Code
|
IAgCrdnAngleBetweenPlanes angle = (IAgCrdnAngleBetweenPlanes)provider.Angles.Factory.Create(
"AngleName", "Angle from one plane to another.", AgECrdnAngleType.eCrdnAngleTypeBetweenPlanes);
|
|
Determine if the
specified angle type is supported.
[C#] |
Copy Code
|
if (provider.Angles.Factory.IsTypeSupported(angleType))
{
IAgCrdnAngle angle = provider.Angles.Factory.Create(
"MyAngle", string.Empty,
angleType);
}
|
|
Create an angle
between two planes.
[Visual Basic .NET] |
Copy Code
|
Dim angle As IAgCrdnAngleBetweenPlanes =
DirectCast(provider.Angles.Factory.Create("AngleName", "Angle from one
plane to another.",
AgECrdnAngleType.eCrdnAngleTypeBetweenPlanes),
IAgCrdnAngleBetweenPlanes)
|
|
Determine if the
specified angle type is supported.
[Visual Basic .NET] |
Copy Code
|
If
provider.Angles.Factory.IsTypeSupported(angleType) Then
Dim angle
As IAgCrdnAngle =
provider.Angles.Factory.Create("MyAngle", String.Empty, angleType)
End If
|
|