|
<< Click to Display Table of Contents > Toolbar |
![]() ![]()
|
The following commands can be used to address any toolbar button.
☒ 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 |
|
|
|
||
scComSAMLightClientCtrlToolbarSave |
57603 |
||
|
|
||
scComSAMLightClientCtrlToolbarUndo |
33536 |
||
Requires previous operation. |
|
||
scComSAMLightClientCtrlToolbarRedo |
33537 |
||
Requires previous Undo operation. |
|
||
scComSAMLightClientCtrlToolbarCut |
57635 |
||
Items need to be selected. |
|
||
scComSAMLightClientCtrlToolbarCopy |
57634 |
||
Items need to be selected. |
|
||
scComSAMLightClientCtrlToolbarPaste |
57637 |
||
Items need to be selected. |
|
||
scComSAMLightClientCtrlToolbarDelete |
32771 |
||
Items need to be selected. |
|
||
3D Surfaces |
scComSAMLightClientCtrlToolbar3DSurfaceSettings |
33535 |
|
|
|
||
Align and Spacing
|
scComSAMLightClientCtrlToolbarCenterBoth |
32838 |
|
Items need to be selected. |
|
||
scComSAMLightClientCtrlToolbarCenterHorizontally |
32923 |
||
Items need to be selected. |
|
||
scComSAMLightClientCtrlToolbarCenterVertically |
32924 |
||
Items need to be selected. |
|
||
scComSAMLightClientCtrlToolbarAlignLeft |
32897 |
||
Items need to be selected. |
|
||
scComSAMLightClientCtrlToolbarAlignCenter |
32898 |
||
Items need to be selected. |
|
||
scComSAMLightClientCtrlToolbarAlignRight |
32899 |
||
Items need to be selected. |
|
||
scComSAMLightClientCtrlToolbarAlignTop |
32900 |
||
Items need to be selected. |
|
||
scComSAMLightClientCtrlToolbarAlignMiddle |
32901 |
||
Items need to be selected. |
|
||
scComSAMLightClientCtrlToolbarAlignBottom |
32902 |
||
Items need to be selected. |
|
||
scComSAMLightClientCtrlToolbarSpaceHorizontal |
32905 |
||
Items need to be selected. |
|
||
scComSAMLightClientCtrlToolbarSpaceVertical |
32907 |
||
Items need to be selected. |
|
||
scComSAMLightClientCtrlToolbarSpaceAdvanced |
32908 |
||
Items need to be selected. |
|
||
Camera |
scComSAMLightClientCtrlToolbarPrint |
57607 |
|
|
|
||
scComSAMLightClientCtrlToolbarPrintPreview |
57609 |
||
|
|
||
scComSAMLightClientCtrlToolbarMark |
32937 |
||
Valid job required. |
|
||
scComSAMLightClientCtrlToolbarObjectList |
32835 |
||
|
|
||
scComSAMLightClientCtrlToolbarPropertySheet |
32836 |
||
|
|
||
scComSAMLightClientCtrlToolbar3DView |
32852 |
||
Items should be selected. |
|
||
scComSAMLightClientCtrlToolbarXYPlaneView |
32851 |
||
|
|
||
scComSAMLightClientCtrlToolbarXZSideView |
32850 |
||
|
|
||
scComSAMLightClientCtrlToolbarYZSideView |
32849 |
||
|
|
||
scComSAMLightClientCtrlToolbarFitWorkingArea |
53254 |
||
|
|
||
scComSAMLightClientCtrlToolbarFitAllEntities |
32825 |
||
|
|
||
scComSAMLightClientCtrlToolbarFitSelected |
10186 |
||
Item needs to be selected. |
|
||
scComSAMLightClientCtrlToolbarZoomIn |
53258 |
||
|
|
||
scComSAMLightClientCtrlToolbarZoomOut |
53259 |
||
|
|
||
scComSAMLightClientCtrlToolbarZoom |
10187 |
||
Hold left mouse button and select area for zoom. |
|
||
scComSAMLightClientCtrlToolbarMoveCamera |
1522 |
||
|
|
||
|
ID_DSD_INIT |
34075 |
|
|
|
||
ID_DSD_STATUS_DIALOG |
34076 |
||
|
|
||
ID_DSD_STATUS_DIALOG_SCAPS |
34080 |
||
|
|
||
ID_DSD_RECORD_DIALOG |
34077 |
||
|
|
||
Extras |
scComSAMLightClientCtrlToolbarSettingsCurrentSplitMode |
1516 |
|
|
|
||
scComSAMLightClientCtrlToolbarResplitCurrentEntities |
1519 |
||
Needs splitting to be active. |
|
||
scComSAMLightClientCtrlToolbarStepRepeatSettings |
1517 |
||
|
|
||
scComSAMLightClientCtrlToolbarBitmapRotarySettings |
1518 |
||
Bitmap in job required. |
|
||
Flash Compatible Mode |
scComSAMLightClientCtrlToolbarCheckFlashCompatibleMode |
168 |
|
Opens the FCM Errors window. |
|
||
Functionality Object
|
scComSAMLightClientCtrlToolbarTimer |
32845 |
|
|
|
||
scComSAMLightClientCtrlToolbarWaitForInput |
32846 |
||
|
|
||
scComSAMLightClientCtrlToolbarSetOutput |
32847 |
||
|
|
||
scComSAMLightClientCtrlToolbarSetOverride |
59411 |
||
|
|
||
scComSAMLightClientCtrlToolbarSetExecutable |
59413 |
||
|
|
||
scComSAMLightClientCtrlToolbarSetAnalogOutput |
33015 |
||
|
|
||
scComSAMLightClientCtrlToolbarRS232 |
34057 |
||
|
|
||
scComSAMLightClientCtrlToolbarSetSecondaryHeadOffset |
59403 |
||
|
|
||
scComSAMLightClientCtrlToolbarDateTime2D |
40004 |
||
Place in View2D by clicking with the mouse. |
|
||
scComSAMLightClientCtrlToolbarSerialnumber2D |
40002 |
||
Place in View2D by clicking with the mouse. |
|
||
scComSAMLightClientCtrlToolbarBarcode2D |
40001 |
||
Place in View2D by clicking with the mouse. |
|
||
scComSAMLightClientCtrlToolbarText2D |
40000 |
||
Place in View2D by clicking with the mouse. |
|
||
scComSAMLightClientCtrlToolbarAutoCalib |
59406 |
||
RTC only. |
|
||
scComSAMLightClientCtrlToolbarJump |
34056 |
||
|
|
||
scComSAMLightClientCtrlToolbarMotionControl |
32870 |
||
|
|
||
scComSAMLightClientCtrlToolbarMotionControlGo |
32991 |
||
|
|
||
scComSAMLightClientCtrlToolbarMarkingOnTheFlyOffset |
32959 |
||
|
|
||
scComSAMLightClientCtrlToolbarExtendedTrigger |
32960 |
||
|
|
||
scComSAMLightClientCtrlToolbarDataWizard |
32928 |
||
Needs Geometry objects in job. |
|
||
scComSAMLightClientCtrlToolbarParameterFinder |
34061 |
||
|
|
||
scComSAMLightClientCtrlToolbarTextEntityList |
34062 |
||
|
|
||
Geometry Object
|
scComSAMLightClientCtrlToolbarPoint |
32799 |
|
Place in View2D by clicking with the mouse. |
|
||
scComSAMLightClientCtrlToolbarLine |
32782 |
||
Place in View2D by clicking with the mouse. |
|
||
scComSAMLightClientCtrlToolbarRectangle |
32783 |
||
Place in View2D by clicking with the mouse. |
|
||
scComSAMLightClientCtrlToolbarTriangle |
32808 |
||
Place in View2D by clicking with the mouse. |
|
||
scComSAMLightClientCtrlToolbarEllipse |
32784 |
||
Place in View2D by clicking with the mouse. |
|
||
scComSAMLightClientCtrlToolbarCircle3Points |
33003 |
||
Place in View2D by clicking with the mouse. |
|
||
scComSAMLightClientCtrlToolbarCircleCenterRadius |
33008 |
||
Place in View2D by clicking with the mouse. |
|
||
scComSAMLightClientCtrlToolbarArc3Points |
33006 |
||
Place in View2D by clicking with the mouse. |
|
||
scComSAMLightClientCtrlToolbarArcCenterAngle |
33009 |
||
Place in View2D by clicking with the mouse. |
|
||
scComSAMLightClientCtrlToolbarSpiral2D |
40003 |
||
Place in View2D by clicking with the mouse. |
|
||
scComSAMLightClientCtrlToolbarPolyline |
32809 |
||
Place in View2D by clicking with the mouse. |
|
||
scComSAMLightClientCtrlToolbarSelect |
32790 |
||
Top level entity. Have item selected. |
|
||
scComSAMLightClientCtrlToolbarPointEditMode |
32810 |
||
Have item selected. |
|
||
Background Camera
|
scComSAMLightClientCtrlToolbarBackgroudCameraSettings |
34072 |
|
|
|
||
|
IDC_BTN_MESSAGE_DLG |
222 |
|
|
|
||
IDC_BTN_MESSAGE_RESET |
226 |
||
|
|
||
Special Menu
|
scComSAMLightClientCtrlToolbarSpecialMenu1 |
280 |
|
Needs to be defined first. |
|
||
scComSAMLightClientCtrlToolbarSpecialMenu2 |
281 |
||
Needs to be defined first. |
|
||
scComSAMLightClientCtrlToolbarSpecialMenu3 |
282 |
||
Needs to be defined first. |
|
||
scComSAMLightClientCtrlToolbarSpecialMenu4 |
283 |
||
Needs to be defined first. |
|
||
scComSAMLightClientCtrlToolbarSpecialMenu5 |
284 |
||
Needs to be defined first. |
|
||
scComSAMLightClientCtrlToolbarSpecialMenu6 |
285 |
||
Needs to be defined first. |
|
||
scComSAMLightClientCtrlToolbarSpecialMenu7 |
286 |
||
Needs to be defined first. |
|
||
scComSAMLightClientCtrlToolbarSpecialMenu8 |
287 |
||
Needs to be defined first. |
|
||
scComSAMLightClientCtrlToolbarSpecialMenu9 |
288 |
||
Needs to be defined first. |
|
||
scComSAMLightClientCtrlToolbarSpecialMenu10 |
289 |
||
Needs to be defined first. |
|
||
View Level |
scComSAMLightClientCtrlToolbarUpperLevel |
32801 |
|
Requires min. one item in Entity List |
|
||
scComSAMLightClientCtrlToolbarLowerLevel |
32802 |
||
Requires min. one item in Entity List |
|
||
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
☐ 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