ISTKObject#
- class ansys.stk.core.stkobjects.ISTKObject#
Represents the instance of STK object.
Overview#
Export the object to a file. |
|
Determine whether or not the object supports ObjectCoverage. |
|
Determine whether or not the object supports 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. |
|
Return an Access object associated with this STK object and another STK object. |
|
Create one point access to the supplied object name. The Remove method in OnePointAccess should be called when you are done with the data. |
|
Remove the object from the scenario. |
|
Return whether the object supports Vector Geometry. |
|
Copy and paste the current instance of STK Object. The copied object will be pasted as the sibling of the instance being copied. |
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. |
|
Return the object path. |
|
A name of the object. |
|
Return a class type of the object (i.e. eAircraft, eFacility etc.). |
|
Return a class name of the object (i.e. Aircraft, Facility.). |
|
Return a collection of direct descendants of the current object. |
|
Return the Root object or null. |
|
Return the object representing a list of available data providers for the object. |
|
The short description of the object. |
|
A long description of the object. |
|
Return true if the object has direct descendants. |
|
Return an ObjectCoverage object. |
|
Get the constraints imposed on the object. |
|
Return the list of files that constitute an object. |
|
Return an instance of Vector Geometry Tool provider. |
|
The object’s central body. |
|
Get the object’s metadata. Metadata is a collection of keys and their associated values. |
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.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.class_type: STKObjectType#
Return a class type of the object (i.e. eAircraft, eFacility etc.).
- property ISTKObject.children: ISTKObjectCollection#
Return a collection of direct descendants of the current object.
- property ISTKObject.root: STKObjectRoot#
Return the Root object or null.
- property ISTKObject.data_providers: DataProviderCollection#
Return the object representing a list of available data providers for the object.
- property ISTKObject.object_coverage: ObjectCoverage#
Return an ObjectCoverage object.
- 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.metadata: KeyValueCollection#
Get the object’s metadata. Metadata is a collection of keys and their associated values.
Method detail#
- ISTKObject.is_object_coverage_supported(self) bool #
Determine whether or not the object supports ObjectCoverage.
- Returns:
- ISTKObject.is_access_supported(self) bool #
Determine whether or not the object supports Access.
- Returns:
- 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.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.supports_analysis_workbench(self) bool #
Return whether the object supports Vector Geometry.
- Returns:
- 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