STK Vector Geometry ToolSend comments on this topic.
CreateDisplacementVector Method (IAgCrdnVectorFactory)
See Also
VectorName
Specify a vector name.
OriginPoint
Specify a vector's origin point.
DestPoint
Specify a vector's destination point.
Windows





Windows & Linux

Description

Creates a displacement vector.

Syntax

[Visual Basic .NET]
Public Function CreateDisplacementVector( _
    ByVal VectorName As String, _
    ByVal OriginPoint As IAgCrdnPoint, _
    ByVal DestPoint As IAgCrdnPoint _
) As IAgCrdnVectorDisplacement
[C#]
public IAgCrdnVectorDisplacement CreateDisplacementVector(
    string VectorName,
    IAgCrdnPoint OriginPoint,
    IAgCrdnPoint DestPoint
);
[Managed C++]
public: IAgCrdnVectorDisplacement^ CreateDisplacementVector(
    String __gc ^ VectorName,
    IAgCrdnPoint ^ OriginPoint,
    IAgCrdnPoint ^ DestPoint
);
[Unmanaged C++]
public: HRESULT CreateDisplacementVector(
    BSTR VectorName,
    IAgCrdnPoint * OriginPoint,
    IAgCrdnPoint * DestPoint,
    IAgCrdnVectorDisplacement ** ppRetVal
);
[Java]
public IAgCrdnVectorDisplacement createDisplacementVector(
    String VectorName,
    IAgCrdnPoint OriginPoint,
    IAgCrdnPoint DestPoint
);
[Python - STK API ]
def CreateDisplacementVector(self, VectorName:str, OriginPoint:"IAgCrdnPoint", DestPoint:"IAgCrdnPoint") -> "IAgCrdnVectorDisplacement":

Parameters

VectorName
Specify a vector name.
OriginPoint
Specify a vector's origin point.
DestPoint
Specify a vector's destination point.

Remarks

Spaces and most punctuation ( except for "-_().") cannot be used as a part of a component name when creating new components via VGT API.

See Also

Example

Create a displacement vector defined by its origin and destination points.
[C#]
//Create a displacement vector with two specified points
IAgCrdnVectorDisplacement vector = provider.Vectors.Factory.CreateDisplacementVector(
    "VectorName", OriginPoint, DestinationPoint);
Create a displacement vector defined by its origin and destination points.
[Visual Basic .NET]
'Create a displacement vector with two specified points
Dim vector As IAgCrdnVectorDisplacement = provider.Vectors.Factory.CreateDisplacementVector("VectorName", OriginPoint, DestinationPoint)
© 2024 Analytical Graphics, Inc. All Rights Reserved.