STK ObjectsSend comments on this topic.
RemoveConstraint Method (IAgAccessCnstrAWBCollection)
See Also
Type
Reference
Windows





Windows & Linux

Description

Removes a Analysis Workbench using Reference/Component.

Syntax

[Visual Basic .NET]
Public Sub RemoveConstraint( _
    ByVal Type As AgEAWBAccessConstraints, _
    ByVal Reference As String _
)
[C#]
public void RemoveConstraint(
    AgEAWBAccessConstraints Type,
    string Reference
);
[Managed C++]
public: void RemoveConstraint(
    AgEAWBAccessConstraints Type,
    String __gc ^ Reference
);
[Unmanaged C++]
public: HRESULT RemoveConstraint(
    AgEAWBAccessConstraints Type,
    BSTR Reference
);
[Java]
public void removeConstraint(
    AgEAWBAccessConstraints Type,
    String Reference
);
[Python - STK API ]
def RemoveConstraint(self, Type:"AgEAWBAccessConstraints", Reference:str) -> None:

Parameters

Type
Reference

See Also

Example

Remove analysis workbench access constraint
[C#]
IAgAccessConstraintCollection accessConstraints = stkobject.AccessConstraints;
IAgAccessCnstrAWBCollection awbAccessConstraints = accessConstraints.AWBConstraints;

string objectPath = stkobject.ClassName + "/" + stkobject.InstanceName;
awbAccessConstraints.RemoveConstraint(AgEAWBAccessConstraints.eCstrAWBVectorMag, objectPath + " East Vector");
Remove analysis workbench access constraint
[Visual Basic .NET]
Dim accessConstraints As IAgAccessConstraintCollection = stkobject.AccessConstraints
Dim awbAccessConstraints As IAgAccessCnstrAWBCollection = accessConstraints.AWBConstraints

Dim objectPath As String = stkobject.ClassName + "/" + stkobject.InstanceName
awbAccessConstraints.RemoveConstraint(AgEAWBAccessConstraints.eCstrAWBVectorMag, objectPath + " East Vector")
© 2024 Analytical Graphics, Inc. All Rights Reserved.