STK Vector Geometry ToolSend comments on this topic.
Create Method (IAgCrdnConditionFactory)
See Also
Name
Description
Type
Windows





Windows & Linux

Description

Creates and registers a condition using specified name, description and type.

Syntax

[Visual Basic .NET]
Public Function Create( _
    ByVal Name As String, _
    ByVal Description As String, _
    ByVal Type As AgECrdnConditionType _
) As IAgCrdnCondition
[C#]
public IAgCrdnCondition Create(
    string Name,
    string Description,
    AgECrdnConditionType Type
);
[Managed C++]
public: IAgCrdnCondition^ Create(
    String __gc ^ Name,
    String __gc ^ Description,
    AgECrdnConditionType Type
);
[Unmanaged C++]
public: HRESULT Create(
    BSTR Name,
    BSTR Description,
    AgECrdnConditionType Type,
    IAgCrdnCondition ** ppRetVal
);
[Java]
public IAgCrdnCondition create(
    String Name,
    String Description,
    AgECrdnConditionType Type
);
[Python - STK API ]
def Create(self, Name:str, Description:str, Type:"AgECrdnConditionType") -> "IAgCrdnCondition":

Parameters

Name
Description
Type

See Also

Example

Create a condition defined by determining if input scalar is within specified bounds.
[C#]
//Create a condition from a scalar.
IAgCrdnConditionScalarBounds condition = (IAgCrdnConditionScalarBounds)provider.Conditions.Factory.Create(
    "ConditionName", "Condition from a scalar.", AgECrdnConditionType.eCrdnConditionTypeScalarBounds);
Create a condition defined by determining if input scalar is within specified bounds.
[Visual Basic .NET]
'Create a condition from a scalar.
Dim condition As IAgCrdnConditionScalarBounds = DirectCast(provider.Conditions.Factory.Create("ConditionName", "Condition from a scalar.", AgECrdnConditionType.eCrdnConditionTypeScalarBounds), IAgCrdnConditionScalarBounds)
© 2024 Analytical Graphics, Inc. All Rights Reserved.