DRAW.KNOB

Define a graphical knob on a given drawing.

Syntax

=DRAW.KNOB(UniqueID,Container,Name,X,Y,Width,Height,LineFormat,FillFormat,Attributes,Events,Angle,RotCenter,Label,LabelFont,Value,Min,Max,Step,ScaleFont,Marker,FormatRange,StartAngle,EndAngle)

Arguments

NameDescription
UniqueIdUnique Id of drawing object. Should not be modified and must be unique.
ContainerOptional. Name of the container object this object is placed within. Coordinates are relative then.
NameName of drawing object. Must be unique.
XX Coordinate in 1/100th mm
YY Coordinate in 1/100th mm
WidthWidth in 1/100th mm
HeightHeight in 1/100th mm
LineFormatOptional. Options:
- None for no line
- Hexadecimal color value (#FF0000 for Red)
- JSON String created using lineformat
FillFormatOptional. Options:
- "None" for no fill
- Hexadecimal color value ("#FF0000" for Red)
- JSON String created using FILLPATTERN, FILLLINEARGRADIENT, FILLRADIALGRADIENT
AttributesOptional. JSON String created using ATTRIBUTES
EventsOptional. JSON String created using EVENTS
AngleOptional. Angle in radians.
RotCenterOptional. This defines, where the object rotates around:
0: Top left corner
1: Top center
2: Top right corner
4: Center (default)
5: Right center
6: Bottom left corner
7: Bottom center
8: Bottom right corner
LabelLabel to display
FontOptional. Options:
- "None" for no fill
- Hexadecimal color value ("#FF0000" for Red)
- JSON String created using FONTFORMAT
ValueOptional. Current state of the button. TRUE for pushed and FALSE for released. If a cell reference is used, a value change from user interaction will be pushed into that cell.
MinMinimum value displayed in the knob.
MaxMaximum value displayed in the knob.
StepStep to use for interaction while changing the knob value.
ScaleFontOptional. Font to use for the knob scale. JSON String created using FONTFORMAT
MarkerOptional. Marker style to indicate the current value. Allowed values are:
none
arrowinner
line
circlesmall
Default is a large circle.

Return Value

TRUE, if button could be created.

Example

FunctionResultComment
=DRAW.KNOB("ID14",,"Knob1",26854,10240,5398,5212,,,,,,,"Knob",,50,0,100,10)TRUEDraw a knob with an interval from 0 to 100 and a step value of 10. Current Value is 50.