<< Click to Display Table of Contents > 

Client Control Interface Manual > Other > Toolbar 

Toolbar 
Previous pageReturn to chapter overviewNext page

The following commands can be used to address any toolbar button.

•Toolbar Icons

•Toolbar Icons Check

Toolbar Icons

☒ Set

☐  Get

DLL Function

int CCI_Return = ScExecToolBarCommand(int Value_Type, int Placeholder)

ASCII Function

int CCI_Return = ScCciExecToolBarCommand(int Value_Type, int Placeholder)

Description

Toggles respective toolbar button if conditions are met to toggle.

Value_Type

Toolbar Name

Type: int

ID:

Location: ScComSAMLightClientCtrlToolbarConstants

File

scComSAMLightClientCtrlToolbarLoad

57601

 

File_Open_32

scComSAMLightClientCtrlToolbarSave

57603

 

File_Save_32

scComSAMLightClientCtrlToolbarUndo

33536

Requires previous operation.

Undo_32

scComSAMLightClientCtrlToolbarRedo

33537

Requires previous Undo operation.

Redo_32

scComSAMLightClientCtrlToolbarCut

57635

Items need to be selected.

Cut_32

scComSAMLightClientCtrlToolbarCopy

57634

Items need to be selected.

Copy_32

scComSAMLightClientCtrlToolbarPaste

57637

Items need to be selected.

Paste_32

scComSAMLightClientCtrlToolbarDelete

32771

Items need to be selected.

Delete_32

3D Surfaces

scComSAMLightClientCtrlToolbar3DSurfaceSettings

33535

 

3D_Surface_32

Align and Spacing

 

 

scComSAMLightClientCtrlToolbarCenterBoth

32838

Items need to be selected.

Center_Selection_32

scComSAMLightClientCtrlToolbarCenterHorizontally

32923

Items need to be selected.

Center_Vertical_Selection_32

scComSAMLightClientCtrlToolbarCenterVertically

32924

Items need to be selected.

Center_Horizontal_Selection_32

scComSAMLightClientCtrlToolbarAlignLeft

32897

Items need to be selected.

Align_Left_32

scComSAMLightClientCtrlToolbarAlignCenter

32898

Items need to be selected.

Align_Center_Horizontal_32

scComSAMLightClientCtrlToolbarAlignRight

32899

Items need to be selected.

Align_Right_32

scComSAMLightClientCtrlToolbarAlignTop

32900

Items need to be selected.

Align_Top_32

scComSAMLightClientCtrlToolbarAlignMiddle

32901

Items need to be selected.

Align_Center_Vertical_32

scComSAMLightClientCtrlToolbarAlignBottom

32902

Items need to be selected.

Align_Bottom_32

scComSAMLightClientCtrlToolbarSpaceHorizontal

32905

Items need to be selected.

Space_Horizontal_32

scComSAMLightClientCtrlToolbarSpaceVertical

32907

Items need to be selected.

Space_Vertical_32

scComSAMLightClientCtrlToolbarSpaceAdvanced

32908

Items need to be selected.

Space_Advanced_32

Camera

scComSAMLightClientCtrlToolbarPrint

57607

 

Print_32

scComSAMLightClientCtrlToolbarPrintPreview

57609

 

Print_Preview_32

scComSAMLightClientCtrlToolbarMark

32937

Valid job required.

Mark_32

scComSAMLightClientCtrlToolbarObjectList

32835

 

Object_List_32

scComSAMLightClientCtrlToolbarPropertySheet

32836

 

Property_Pages_32

scComSAMLightClientCtrlToolbar3DView

32852

Items should be selected.

Job_In_3D_View_32

scComSAMLightClientCtrlToolbarXYPlaneView

32851

 

View_XY_32

scComSAMLightClientCtrlToolbarXZSideView

32850

 

View_XZ_32

scComSAMLightClientCtrlToolbarYZSideView

32849

 

View_YZ_32

scComSAMLightClientCtrlToolbarFitWorkingArea

53254

 

Fit_All_32

scComSAMLightClientCtrlToolbarFitAllEntities

32825

 

Fit_All_Entities_32

scComSAMLightClientCtrlToolbarFitSelected

10186

Item needs to be selected.

Fit_Object_32

scComSAMLightClientCtrlToolbarZoomIn

53258

 

Zoom_Plus_32

scComSAMLightClientCtrlToolbarZoomOut

53259

 

Zoom_Minus_32

scComSAMLightClientCtrlToolbarZoom

10187

Hold left mouse button and select area for zoom.

Zoom_Manual_32

scComSAMLightClientCtrlToolbarMoveCamera

1522

 

Drag_32

 

ID_DSD_INIT

34075

 

 

ID_DSD_STATUS_DIALOG

34076

 

 

ID_DSD_STATUS_DIALOG_SCAPS

34080

 

 

ID_DSD_RECORD_DIALOG

34077

 

 

Extras

scComSAMLightClientCtrlToolbarSettingsCurrentSplitMode

1516

 

Splitting_Settings_32

scComSAMLightClientCtrlToolbarResplitCurrentEntities

1519

Needs splitting to be active.

Splitting_Resplit_32

scComSAMLightClientCtrlToolbarStepRepeatSettings

1517

 

Step_Settings_32

scComSAMLightClientCtrlToolbarBitmapRotarySettings

1518

Bitmap in job required.

Bmp_Splitting_Settings_32

Flash Compatible Mode

scComSAMLightClientCtrlToolbarCheckFlashCompatibleMode

168

Opens the FCM Errors window.

FCM_Not_Checked_Yet_32

Functionality Object

 

 

 

 

 

 

 

 

 

 

scComSAMLightClientCtrlToolbarTimer

32845

 

Timer_32

scComSAMLightClientCtrlToolbarWaitForInput

32846

 

wait_for_input_32

scComSAMLightClientCtrlToolbarSetOutput

32847

 

set_output_32

scComSAMLightClientCtrlToolbarSetOverride

59411

 

set_override_32

scComSAMLightClientCtrlToolbarSetExecutable

59413

 

set_executable_32

scComSAMLightClientCtrlToolbarSetAnalogOutput

33015

 

analog_output_32

scComSAMLightClientCtrlToolbarRS232

34057

 

rs232_32

scComSAMLightClientCtrlToolbarSetSecondaryHeadOffset

59403

 

secondary_head_offset_32

scComSAMLightClientCtrlToolbarDateTime2D

40004

Place in View2D by clicking with the mouse.

SCAPS.ScDateTimePropertyCtrl_32

scComSAMLightClientCtrlToolbarSerialnumber2D

40002

Place in View2D by clicking with the mouse.

SCAPS.ScVarEntityPropertyCtrl_32

scComSAMLightClientCtrlToolbarBarcode2D

40001

Place in View2D by clicking with the mouse.

SCAPS.ScBarCodePropertyCtrlEx_32

scComSAMLightClientCtrlToolbarText2D

40000

Place in View2D by clicking with the mouse.

SCAPS.ScText2DPropertyCtrl_32

scComSAMLightClientCtrlToolbarAutoCalib

59406

RTC only.

auto_calib_32

scComSAMLightClientCtrlToolbarJump

34056

 

jump_32

scComSAMLightClientCtrlToolbarMotionControl

32870

 

motion_32

scComSAMLightClientCtrlToolbarMotionControlGo

32991

 

motion_async_32

scComSAMLightClientCtrlToolbarMarkingOnTheFlyOffset

32959

 

mof_offset_32

scComSAMLightClientCtrlToolbarExtendedTrigger

32960

 

wait_for_trigger_32

scComSAMLightClientCtrlToolbarDataWizard

32928

Needs Geometry objects in job.

wizard_32

scComSAMLightClientCtrlToolbarParameterFinder

34061

 

param_finder_32

scComSAMLightClientCtrlToolbarTextEntityList

34062

 

text_entity_list_32

Geometry Object

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

scComSAMLightClientCtrlToolbarPoint

32799

Place in View2D by clicking with the mouse.

Point_32

scComSAMLightClientCtrlToolbarLine

32782

Place in View2D by clicking with the mouse.

Line_32

scComSAMLightClientCtrlToolbarRectangle

32783

Place in View2D by clicking with the mouse.

Rectangle_32

scComSAMLightClientCtrlToolbarTriangle

32808

Place in View2D by clicking with the mouse.

Triangle_32

scComSAMLightClientCtrlToolbarEllipse

32784

Place in View2D by clicking with the mouse.

Circle_32

scComSAMLightClientCtrlToolbarCircle3Points

33003

Place in View2D by clicking with the mouse.

Circle_three_points_32

scComSAMLightClientCtrlToolbarCircleCenterRadius

33008

Place in View2D by clicking with the mouse.

circle_center_radius_32

scComSAMLightClientCtrlToolbarArc3Points

33006

Place in View2D by clicking with the mouse.

Arc_three_points_32

scComSAMLightClientCtrlToolbarArcCenterAngle

33009

Place in View2D by clicking with the mouse.

Arc_center_begin_end_32

scComSAMLightClientCtrlToolbarSpiral2D

40003

Place in View2D by clicking with the mouse.

Spiral_32

scComSAMLightClientCtrlToolbarPolyline

32809

Place in View2D by clicking with the mouse.

Polyline_32

scComSAMLightClientCtrlToolbarSelect

32790

Top level entity. Have item selected.

Select_32

scComSAMLightClientCtrlToolbarPointEditMode

32810

Have item selected.

Select_item_32

Background Camera

 

 

scComSAMLightClientCtrlToolbarBackgroudCameraSettings

34072

 

Webcam_32

 

IDC_BTN_MESSAGE_DLG

222

 

 

IDC_BTN_MESSAGE_RESET

226

 

 

Special Menu

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

scComSAMLightClientCtrlToolbarSpecialMenu1

280

Needs to be defined first.

special_menu_1_32

scComSAMLightClientCtrlToolbarSpecialMenu2

281

Needs to be defined first.

special_menu_2_32

scComSAMLightClientCtrlToolbarSpecialMenu3

282

Needs to be defined first.

special_menu_3_32

scComSAMLightClientCtrlToolbarSpecialMenu4

283

Needs to be defined first.

special_menu_4_32

scComSAMLightClientCtrlToolbarSpecialMenu5

284

Needs to be defined first.

special_menu_5_32

scComSAMLightClientCtrlToolbarSpecialMenu6

285

Needs to be defined first.

special_menu_6_32

scComSAMLightClientCtrlToolbarSpecialMenu7

286

Needs to be defined first.

special_menu_7_32

scComSAMLightClientCtrlToolbarSpecialMenu8

287

Needs to be defined first.

special_menu_8_32

scComSAMLightClientCtrlToolbarSpecialMenu9

288

Needs to be defined first.

special_menu_9_32

scComSAMLightClientCtrlToolbarSpecialMenu10

289

Needs to be defined first.

special_menu_10_32

View Level

scComSAMLightClientCtrlToolbarUpperLevel

32801

Requires min. one item in Entity List

Up_32

scComSAMLightClientCtrlToolbarLowerLevel

32802

Requires min. one item in Entity List

Down_32

Parameter

Type: int

Unit: none

Placeholder, default 0.

CCI_Return

Type: int

CCI return number, see error list.

Notes

•Value type sorted by toolbar location, ID is not sequential.

•This command is implemented with PostMessage, therefore you need to perform a Wait after sending this command.

•Therefore, if applicable, use other commands to open settings, create objects etc.

•Only for Toolbar buttons, not checkboxes and drop down menus.

C# Example: Open Parameter Finder:

 

int CCI_Return = cci.ScExecToolBarCommand((int)SAMLIGHT_CLIENT_CTRL_OCXLib.ScComSAMLightClientCtrlToolbarConstants.scComSAMLightClientCtrlToolbarParameterFinder, 0);

Table 413: Toolbar Icons

 

Toolbar Icons Check

☐ Set

☒ Get

DLL Function

int CCI_Return = ScCheckToolBarCommand(int Value_Type, ref int Status)

ASCII Function

int CCI_Return = ScCciCheckToolBarCommand(int Value_Type, ref int Status)

Description

Checks status of respective toolbar button.

Value_Type

Toolbar

Type: int

ID:

Location: ScComSAMLightClientCtrlToolbarConstants

See table Toolbar Icons.

Status

Type: int

Unit: none

•0: Not available, conditions not met

•1: Available

CCI_Return

Type: int

CCI return number, see error list.

Notes

 

C# Example: Get the status of the toolbar icon:

 

int enabled = -1;

cci.ScCheckToolBarCommand((int)SAMLIGHT_CLIENT_CTRL_OCXLib.ScComSAMLightClientCtrlToolbarConstants.scComSAMLightClientCtrlToolbarParameterFinder, ref enabled);

Table 414: Toolbar Icons Check