PMIInput.segments Property

Parent Object: PMIInput

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::fusion" and the header file is <Fusion/PMI/PMIInput.h>

Description

Gets and sets the list of PMISegments used to define the PMI text.

The segments can be any combination of PMITextSegment, PMISymbolSegment and PMILineBreakSegment objects.

Changing this property will result in changing the displayed text of the PMI.

Syntax

"pMIInput_var" is a variable referencing a PMIInput object.

# Get the value of the property.
propertyValue = pMIInput_var.segments

# Set the value of the property.
pMIInput_var.segments = propertyValue
"pMIInput_var" is a variable referencing a PMIInput object.
#include <Fusion/PMI/PMIInput.h>

// Get the value of the property.
std::vector<Ptr<PMISegment>> propertyValue = pMIInput_var->segments();

// Set the value of the property, where value_var is a PMISegment.
bool returnValue = pMIInput_var->segments(value_var);

Property Value

This is a read/write property whose value is an array of type PMISegment.

Version

Introduced in version April 2026