AssemblyComponentGeometry.setGeometry Method

Parent Object: AssemblyComponentGeometry

PreviewThis functionality is provided as a preview of intended future API capabilities. You are encouraged to use it and report any problems or suggestions using the Fusion API and Scripts forum.

Because this is a preview of future functionality, there is the possibility that it will change, which will possibly break any existing programs that use this functionality. Because of that, you should never deliver any programs that use any preview capabilities. For a distributed program, you should wait until it has moved from preview to released state.


Defined in namespace "adsk::cam" and the header file is <Cam/Tools/AssemblyComponentGeometry.h>

Description

Sets the solid geometry and both joint origins of this tool component. The bodies define the shape of the component and the joint origins define how it attaches to the rest of the tool assembly. They are supplied together because they share one context: the joint origins are interpreted in the same coordinate space as the bodies. Call updateTool on the library to persist the change to the tool.

Syntax

"assemblyComponentGeometry_var" is a variable referencing an AssemblyComponentGeometry object.

returnValue = assemblyComponentGeometry_var.setGeometry(input)
"assemblyComponentGeometry_var" is a variable referencing an AssemblyComponentGeometry object.

#include <Cam/Tools/AssemblyComponentGeometry.h>

returnValue = assemblyComponentGeometry_var->setGeometry(input);
"assemblyComponentGeometry_var" is a variable referencing an AssemblyComponentGeometry object.

returnValue = assemblyComponentGeometry_var.setGeometry(input);

Return Value

Type Description
boolean Returns true if the geometry was set successfully, false otherwise.

Parameters

Name Type Description
input AssemblyComponentGeometryInput An AssemblyComponentGeometryInput object that describes the bodies and the joint origins to use.

Version

Introduced in version November 2026