STK Vector Geometry ToolSend comments on this topic.
Create Method (IAgCrdnCalcScalarFactory)
See Also
Name
Component's name. The name must not have spaces.
Description
Component's optional description.
Type
Windows





Windows & Linux

Description

Creates and registers a scalar calculation using specified name, description, and type.

Syntax

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

Parameters

Name
Component's name. The name must not have spaces.
Description
Component's optional description.
Type

See Also

Example

Create a calc scalar constant.
[C#]
//Create a calc scalar constant.
IAgCrdnCalcScalarConstant calcScalar = (IAgCrdnCalcScalarConstant)provider.CalcScalars.Factory.Create(
    "CalcScalarName", "Calc scalar constant.", AgECrdnCalcScalarType.eCrdnCalcScalarTypeConstant);
Create a calc scalar constant.
[Visual Basic .NET]
'Create a calc scalar constant.
Dim calcScalar As IAgCrdnCalcScalarConstant = DirectCast(provider.CalcScalars.Factory.Create("CalcScalarName", "Calc scalar constant.", AgECrdnCalcScalarType.eCrdnCalcScalarTypeConstant), IAgCrdnCalcScalarConstant)
© 2024 Analytical Graphics, Inc. All Rights Reserved.