Hide Table of Contents

Sketch Ink Toolbar

Visible only on Windows 10:

 

Setting

Get/Set Methods

Return Value or <Value> or <OnFlag>

 

Comments

Pen > Colors

ISldWorks::GetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swPenSketchStrokeColor)

ISldWorks::SetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swPenSketchStrokeColor, <Value>)

COLORREF value

 

COLORREF values in SOLIDWORKS IColorTable; use function RGB to convert R,G, and B values to COLORREF values; the following colors are displayed in the graphic from left to right and top to bottom:

RGB(0,0,0)

RGB(102,102,102)

RGB(153,153,153)

RGB(221,221,221)

RGB(255,255,255)

RGB(204,0,0)

RGB(255,153,0)

RGB(255,255,0)

RGB(0,158,15)

RGB(153,0,255)

RGB(255,0,255)

RGB(147,196,125)

RGB(255,217,102)

RGB(142,124,195)

RGB(194,123,160)

RGB(111,168,220)

RGB(56,118,29)

RGB(224,102,102)

RGB(97,61,48)

Pen > Size

ISldWorks::GetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swPenSketchStrokeThickness)

ISldWorks::SetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swPenSketchStrokeThickness, <Value>)

Valid options as defined in swLineWeights_e:

swLW_THIN

swLW_NORMAL

swLW_THICK

swLW_THICK2

swLW_THICK3

swLW_THICK4

swLW_THICK5

Thickness of pen stroke; if you set an invalid value (<0 or >6) then the pen size is automatically set to swLW_THIN = 0



Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   Sketch Ink Toolbar
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:



x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2018 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.