Description
Returns a full path of the object.
Property type
Read-only property
Syntax
[Visual Basic .NET] |
Public Property Path() As String
|
[C#] |
public string Path {get;}
|
[Managed C++] |
public: __property String __gc ^ get_Path();
|
[Unmanaged C++] |
public: HRESULT get_Path(
BSTR * pRetVal
);
|
[Java] |
public String getPath();
|
Remarks
Example
The example
demonstrates how to get an instance of an STK object using the STK
Object Model.
Get an STK object using the STK Object Model |
Copy Code
|
void IAgUiPluginCommandTarget.Exec(string CommandName, IAgProgressTrackCancel TrackCancel, IAgUiPluginCommandParameters Parameters)
{
if (string.Compare(CommandName, "MyFirstCommand", true) == 0)
{
AGI.Ui.Application.IAgUiApplication AgUiApp = _site.Application;
AGI.STKObjects.IAgStkObjectRoot root = (AGI.STKObjects.IAgStkObjectRoot)AgUiApp.Personality2;
if (_site.Selection.Count != 0)
{
AGI.STKObjects.IAgStkObject o = root.GetObjectFromPath(_site.Selection[0].Path);
}
}
}
|
|
See Also