ISTKObject#

class ansys.stk.core.stkobjects.ISTKObject#

Represents the instance of STK object.

Overview#

copy_object

Copy and paste the current instance of STK Object. The copied object will be pasted as the sibling of the instance being copied.

create_one_point_access

Create one point access to the supplied object name. The Remove method in OnePointAccess should be called when you are done with the data.

export

Export the object to a file.

get_access

Return an Access object associated with this STK object and another STK object specified using its path. The path can be fully-qualified or truncated.

get_access_to_object

Return an Access object associated with this STK object and another STK object.

is_access_supported

Determine whether or not the object supports Access.

is_object_coverage_supported

Determine whether or not the object supports ObjectCoverage.

supports_analysis_workbench

Return whether the object supports Vector Geometry.

unload

Remove the object from the scenario.

access_constraints

Get the constraints imposed on the object.

analysis_workbench_components

Return an instance of Vector Geometry Tool provider.

central_body_name

The object’s central body.

children

Return a collection of direct descendants of the current object.

class_name

Return a class name of the object (i.e. Aircraft, Facility.).

class_type

Return a class type of the object (i.e. eAircraft, eFacility etc.).

data_providers

Return the object representing a list of available data providers for the object.

has_children

Return true if the object has direct descendants.

instance_name

A name of the object.

long_description

A long description of the object.

metadata

Get the object’s metadata. Metadata is a collection of keys and their associated values.

object_coverage

Return an ObjectCoverage object.

object_files

Return the list of files that constitute an object.

parent

Return the parent object or null if the object has become orphaned. The exception is STKObjectRoot object which is a topmost element and does not have a parent.

path

Return the object path.

root

Return the Root object or null.

short_description

The short description of the object.

Examples#

Create a New AdvCAT Object

# Scenario scenario: Scenario object
advCAT = scenario.children.new(STKObjectType.ADVCAT, "MyAdvCAT")

Import detail#

from ansys.stk.core.stkobjects import ISTKObject

Property detail#

property ISTKObject.access_constraints: AccessConstraintCollection#

Get the constraints imposed on the object.

property ISTKObject.analysis_workbench_components: IAnalysisWorkbenchComponentProvider#

Return an instance of Vector Geometry Tool provider.

property ISTKObject.central_body_name: str#

The object’s central body.

property ISTKObject.children: ISTKObjectCollection#

Return a collection of direct descendants of the current object.

property ISTKObject.class_name: str#

Return a class name of the object (i.e. Aircraft, Facility.).

property ISTKObject.class_type: STKObjectType#

Return a class type of the object (i.e. eAircraft, eFacility etc.).

property ISTKObject.data_providers: DataProviderCollection#

Return the object representing a list of available data providers for the object.

property ISTKObject.has_children: bool#

Return true if the object has direct descendants.

property ISTKObject.instance_name: str#

A name of the object.

property ISTKObject.long_description: str#

A long description of the object.

property ISTKObject.metadata: KeyValueCollection#

Get the object’s metadata. Metadata is a collection of keys and their associated values.

property ISTKObject.object_coverage: ObjectCoverage#

Return an ObjectCoverage object.

property ISTKObject.object_files: list#

Return the list of files that constitute an object.

property ISTKObject.parent: ISTKObject#

Return the parent object or null if the object has become orphaned. The exception is STKObjectRoot object which is a topmost element and does not have a parent.

property ISTKObject.path: str#

Return the object path.

property ISTKObject.root: STKObjectRoot#

Return the Root object or null.

property ISTKObject.short_description: str#

The short description of the object.

Method detail#

ISTKObject.copy_object(self, new_object_name: str) ISTKObject#

Copy and paste the current instance of STK Object. The copied object will be pasted as the sibling of the instance being copied.

Parameters:

new_object_name : str

Returns:

ISTKObject

ISTKObject.create_one_point_access(self, path_to_object: str) OnePointAccess#

Create one point access to the supplied object name. The Remove method in OnePointAccess should be called when you are done with the data.

Parameters:

path_to_object : str

Returns:

OnePointAccess

ISTKObject.export(self, filename: str) None#

Export the object to a file.

Parameters:

filename : str

Returns:

None

ISTKObject.get_access(self, object_path: str) Access#

Return an Access object associated with this STK object and another STK object specified using its path. The path can be fully-qualified or truncated.

Parameters:

object_path : str

Returns:

Access

ISTKObject.get_access_to_object(self, object: ISTKObject) Access#

Return an Access object associated with this STK object and another STK object.

Parameters:

object : ISTKObject

Returns:

Access

ISTKObject.is_access_supported(self) bool#

Determine whether or not the object supports Access.

Returns:

bool

ISTKObject.is_object_coverage_supported(self) bool#

Determine whether or not the object supports ObjectCoverage.

Returns:

bool

ISTKObject.supports_analysis_workbench(self) bool#

Return whether the object supports Vector Geometry.

Returns:

bool

ISTKObject.unload(self) None#

Remove the object from the scenario.

Returns:

None