VolumetricModel.getGraph Method

Parent Object: VolumetricModel
Defined in namespace "adsk::volume" and the header file is <Volume/Volumetric/VolumetricModel.h>

Description

Returns a graph from the volumetric model.

Syntax

"volumetricModel_var" is a variable referencing a VolumetricModel object.

returnValue = volumetricModel_var.getGraph(graphType)
"volumetricModel_var" is a variable referencing a VolumetricModel object.

#include <Volume/Volumetric/VolumetricModel.h>

returnValue = volumetricModel_var->getGraph(graphType);
"volumetricModel_var" is a variable referencing a VolumetricModel object.

returnValue = volumetricModel_var.getGraph(graphType);

Return Value

Type Description
Graph The graph of the specified type.

Parameters

Name Type Description
graphType GraphTypes Which kind of graph to return.

Samples

Name Description
Volumetric Custom Feature API Sample

Demonstrates how to create a Volumetric Custom Feature using the API for graph creation.

To run the sample script, have a document open in Fusion’s DESIGN workspace. This script will create a component with a box by sketching then extruding that sketch. It will then use that box as a boundary body and create a Volumetric Custom Feature.

The script will then create a gyroid lattice using the Volumetric Model API with the appropriate graphs, nodes, and pin connections for a minimal example. Finally, the script will convert that Volumetric Model to Mesh using the API and the VolumetricModelToMeshFeature.

Version

Introduced in version May 2025