This version allows you to manage inertia data, clashes, distances and sections. WARNING: this method will be DEPRECATED in the next release. It is recommended to use the method
GetTechnologicalObject("Clashes") on the root product, to retrieve the Clashes collection.
WARNING: this method will be DEPRECATED in the next release. It is recommended to use the method
GetTechnologicalObject("Distances") on the root product, to retrieve the Distances collection.
WARNING: this method will be DEPRECATED in the next release. It is recommended to use the method
GetTechnologicalObject("Inertia") on the product to analyze, to retrieve an Inertia object.
WARNING: this method will be DEPRECATED in the next release. It is recommended to use the method
GetTechnologicalObject("Sections") on the root product, to retrieve the Sections collection.
WARNING: this method will only work for Mono-Instantiated parts, It is recommended to use the method
GetMeasurableInContext for measuring Multi-Instantiated parts.
Properties
This example retrieves the Clashes collection of the active document.
Dim TheSPAWorkbench As Workbench
Set TheSPAWorkbench = CATIA.ActiveDocument.GetWorkbench ( "SPAWorkbench" )
Dim TheClashesList As Clashes
Set TheClashesList = TheSPAWorkbench.Clashes
This example retrieves the Distances collection of the active document.
Dim TheSPAWorkbench As Workbench
Set TheSPAWorkbench = CATIA.ActiveDocument.GetWorkbench ( "SPAWorkbench" )
Dim TheDistancesList As Distances
Set TheDistancesList = TheSPAWorkbench.Distances
This example retrieves the Inertias collection of the active document.
Dim TheSPAWorkbench As Workbench
Set TheSPAWorkbench = CATIA.ActiveDocument.GetWorkbench ( "SPAWorkbench" )
Dim TheInertiasList As Inertias
Set TheInertiasList = TheSPAWorkbench.Inertias
This example retrieves the Sections collection of the active document.
Dim TheSPAWorkbench As Workbench
Set TheSPAWorkbench = CATIA.ActiveDocument.GetWorkbench ( "SPAWorkbench" )
Dim TheSectionsList As Sections
Set TheSectionsList = TheSPAWorkbench.Sections
Methods
This example get the Measurable from the SPAWorkBench.
Dim referenceObject As referenceObject
Set referenceObject = "GetReference"
Dim TheSPAWorkbench As Workbench
Set TheSPAWorkbench = CATIA.ActiveDocument.GetWorkbench ( "SPAWorkbench" )
Dim TheMeasurable As Measurable
Set TheMeasurable = TheSPAWorkbench.GetMeasurable(referenceObject)
This example get the Measurable from the SPAWorkBench.
Dim referenceObject As referenceObject
Set referenceObject = "GetReference"
Dim ProductInstances As VPMInstance
Set ProductInstances = "GetProductInstance"
Dim TheSPAWorkbench As Workbench
Set TheSPAWorkbench = CATIA.ActiveDocument.GetWorkbench ( "SPAWorkbench" )
Dim TheMeasurable As Measurable
Set TheMeasurable = TheSPAWorkbench.GetMeasurableInContext(referenceObject,ProductInstances)