LineWidthSettings.lineWidthGroup Property

Parent Object: LineWidthSettings

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::drawing" and the header file is <Drawing/Drawing/LineWidthSettings.h>

Description

Gets and sets the active line width group using a value from LineWidthGroupTypes (VeryThinLineWidthGroupType, ThinLineWidthGroupType, MediumLineWidthGroupType, ThickLineWidthGroupType, or VeryThickLineWidthGroupType). Custom line widths cannot be set through this property; use instead. Changing this value updates the thin, medium, and thick line width values for the entire document, affecting all views and other document-level settings that use line widths.

Syntax

"lineWidthSettings_var" is a variable referencing a LineWidthSettings object.
# Get the value of the property.
propertyValue = lineWidthSettings_var.lineWidthGroup

# Set the value of the property.
lineWidthSettings_var.lineWidthGroup = propertyValue
"lineWidthSettings_var" Is a variable referencing a LineWidthSettings Object.
#include <Drawing/Drawing/LineWidthSettings.h>

// Get the value of the property.
LineWidthGroupTypes propertyValue = lineWidthSettings_var->lineWidthGroup();

// Set the value of the property, where value_var is a LineWidthGroupTypes.
bool returnValue = lineWidthSettings_var->lineWidthGroup(value_var);
"lineWidthSettings_var" Is a variable referencing a LineWidthSettings Object.
// Get the value of the property.
propertyValue = lineWidthSettings_var.lineWidthGroup;

// Set the value of the property.
lineWidthSettings_var.lineWidthGroup = propertyValue;

Property Value

This is a read/write property whose value is a LineWidthGroupTypes.

Version

Introduced in version September 2026