ViewSettings Object Preview

Derived from: Base Object
Defined in namespace "adsk::drawing" and the header file is <Drawing/Drawing/ViewSettings.h>

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.

Description

Object that provides access to View section of document settings.

Methods

Name Description
classType

Static function that all classes support that returns the type of the class as a string. The returned string matches the string returned by the objectType property. For example if you have a reference to an object and you want to check if it's a SketchLine you can use myObject.objectType == fusion.SketchLine.classType().

Properties

Name Description
bendCenterColor Gets and sets the color for bend center.
bendCenterLineType Gets and sets line type for bend center. This defaults to ContinuousLineType.
bendCenterLineWidth Gets and sets line width for bend center. This defaults to ThinLineWidthType.
brokenViewBreakColor Gets and sets the color for broken view break.
brokenViewBreakLineWidth Gets and sets line width for broken view break. This defaults to ThinLineWidthType.
centerLineAndMarkColor Gets and sets the color for center lines and mark.
centerLineAndMarkLineType Gets and sets line type for center line and mark. This defaults to ContinuousLineType.
centerLineAndMarkLineWidth Gets and sets line width for center lines and mark. This defaults to ThinLineWidthType.
cropViewOutlineColor Gets and sets the color for crop view outline.
cropViewOutlineLineWidth Gets and sets line width for Crop View Outline. This defaults to ThinLineWidthType.
cropViewOutlineType Gets and sets type for Crop View Outline. This defaults to JaggedCropViewOutlineType.
detailBoundaryColor Gets and sets the color for detail boundary.
detailBoundaryLineType Gets and sets line type for detail boundary. This defaults to ContinuousLineType.
detailBoundaryLineWidth Gets and sets line width for detail boundary. This defaults to ThinLineWidthType.
displaySectionLine Gets and sets whether section lines are displayed. This setting applies only when the drawing uses ISO standard format.
hiddenLineColor Gets and sets the color for hidden line.
hiddenLineLineType Gets and sets line type for hidden line. This defaults to ContinuousLineType.
hiddenLineLineWidth Gets and sets line width for hidden line. This defaults to ThinLineWidthType.
hiddenLineNarrowColor Gets and sets the color for hidden line (narrow).
hiddenLineNarrowLineType Gets and sets line type for hidden line (narrow). This defaults to ContinuousLineType.
hiddenLineNarrowLineWidth Gets and sets line width for hidden line (narrow). This defaults to ThinLineWidthType.
isValid Indicates if this object is still valid, i.e. hasn't been deleted or some other action done to invalidate the reference.
objectType This property is supported by all objects in the API and returns a string that contains the full name (namespace::objecttype) describing the type of the object.

It's often useful to use this in combination with the classType method to see if an object is a certain type. For example: if obj.objectType == adsk.core.Point3D.classType():
sectionLineColor Gets and sets the color for section line.
sectionLineLineType Gets and sets line type for section line. This defaults to ContinuousLineType.
tangentEdgeColor Gets and sets the color for tangent edge.
tangentEdgeLineType Gets and sets line type for tangent edge. This defaults to ContinuousLineType.
tangentEdgeLineWidth Gets and sets line width for tangent edge. This defaults to ThinLineWidthType.
tweakTrailColor Gets and sets the color for tweak trail.
tweakTrailLineType Gets and sets line type for tweak trail. This defaults to ContinuousLineType.
tweakTrailLineWidth Gets and sets line width for tweak trail. This defaults to ThinLineWidthType.
visibleOuterLineColor Gets and sets the color for visible outer line.
visibleOuterLineLineType Gets and sets line type for Visible Outer Lines. This defaults to ContinuousLineType.
visibleOuterLineLineWidth Gets and sets line width for Visible Outer Line. This defaults to ThinLineWidthType.

Accessed From

DocumentSettings.viewSettings

Version

Introduced in version September 2026