ObjectDCL Banner

BlockName Property

Description

The BlockView control will automatically try to load the block specified, when running inside AutoCAD.

Type

This property is a string.

Applies For

BlockView.

Invoking From Old API

Can be passed as "BlockName" to Control_SetProperty and Control_GetProperty's string property name where applicable.

Getter Example

CopyCode imageCopy Code
; Get the property from the control
(setq Value (Odcl_Control_GetBlockName MyProject_MyForm_MyControl))

(setq Value (Odcl_Control_GetBlockName "MyProject" "MyForm" "MyControl"))

Setter Example

CopyCode imageCopy Code
; Set the property to the control
(Odcl_Control_SetBlockName MyProject_MyForm_MyControl "Block2B")

(Odcl_Control_SetBlockName "MyProject" "MyForm" "MyControl" "Block2B")