Occurrence.getPhysicalProperties Method
Parent Object:
OccurrenceDefined in namespace "adsk::fusion" and the header file is <Fusion/Components/Occurrence.h>
Description
Returns the PhysicalProperties object that has properties for getting the area, density, mass, volume, moments, etc of this occurrence.
Syntax
"occurrence_var" is a variable referencing an Occurrence object.# Uses no optional arguments. returnValue = occurrence_var.getPhysicalProperties()
# Uses optional arguments. returnValue = occurrence_var.getPhysicalProperties(accuracy)
|
"occurrence_var" is a variable referencing an Occurrence object.
#include <Fusion/Components/Occurrence.h>
// Uses no optional arguments. returnValue = occurrence_var->getPhysicalProperties();
// Uses optional arguments. returnValue = occurrence_var->getPhysicalProperties(accuracy);
|
Return Value
PhysicalProperties |
Returns a PhysicalProperties object that can be used to get the various physical property related values. |
Parameters
accuracy |
CalculationAccuracy |
Specifies the desired level of computational accuracy of the property calculations. The default value of 'LowCalculationAccuracy' returns results within a +/- 1% error margin.
This is an optional argument whose default value is CalculationAccuracy.LowCalculationAccuracy. |
Samples
Get Physical Properties API Sample |
Script that demonstrates getting physical properties using the API. When this script is run it will create a new document, build a simple model, and get the various physical properties from the model. |
Version
Introduced in version May 2016