ObjectDCL Banner

GetLineWeight Method

Description

This method will display the AutoCAD line weight dialog box.

Parameters

nDefaultSelectedLineWeight
Integer specifying the default line weight to select.

Return Values

Returns the following according to the situation:

  • An integer indicating the selected line weight.
  • Nil if no ObjectDCL control or dialog have the focus.

AutoLISP Syntax

The method takes no parameter.

CopyCode imageCopy Code
(Odcl_GetLineWeight 
		nDefaultSelectedLineWeight [as Integer])

Example

CopyCode imageCopy Code
; Prompt for a line weight
(Setq rValue (Odcl_GetLineWeight 4))