List Of Scriptable Properties? Follow

0
Avatar
Legacy Poster

Hi. Where can I find an easy list of values that can be changed via scripting? I looked through this and found Box outline and fill, and it was really nice to be able to play with these.

I would love access to a list of editable values for various objects. For example, x dimension of barcode, text font size, etc. Thanks for any help

3 comments

0
Avatar
Shotaro Ito
Moderator
Comment actions Permalink

Hi nRyder,

You can find list of object properties from BarTender Help > Visual basic scripting > scripting objects > object reference > object objects.
Modify object property from Label format option VB Script is available from BarTender Automation Edition or above, Version 9.3 or later.

[xml]
Name | Description
BarCodeColor | Sets or returns a bar code object's bar color.
Comment | Sets or returns the object's comment.
CornerRadius | Sets or returns a box object's corner radius.
DoNotPrint | Sets or returns whether to print the object.
EncodedValue | Returns the encoded value for an RFID object.
FillColor | Sets or returns a box or ellipsis' fill color.
FontBold | Sets or returns whether the object's text is bold faced.
FontItalic | Sets or returns whether the object's text is italicized.
FontName | Sets or returns the object's text font name.
FontScale | Sets or returns the object's text font scale.
FontScript | Sets or returns an object's text script, or character set of the font.
FontSize | Sets or returns the font point size of an object's text.
FontStrikeout | Sets or returns whether the object's text will have a line through it.
FontUnderline | Sets or returns whether the object's text is underlined.
FontWeight | Sets or returns whether the font weight of the object's text.
Height | Sets or returns the height of an object.
HumanReadableValue | Returns the human readable value for a bar code object.
Length | Sets or returns the length of a line object.
LineColor | Sets or returns the color of a line object.
LineEndX | Sets or returns the X coordinate of a line object's endpoint.
LineEndY | Sets or returns the Y coordinate of a line object's endpoint.
LineStartX | Sets or returns the X coordinate of a line object's starting point.
LineStartY | Sets or returns the Y coordinate of a line object's starting point.
LineThickness | Sets or returns the line thickness of a line, box, or ellipse object.
MirrorHorizontal | Sets or returns whether a picture object is mirrored horizontally.
MirrorVertical | Sets or returns whether a picture object is mirrored vertically.
Name | Returns the object's name.
PercentHeight | Sets or returns a picture object's percentage of original height.
PercentWidth | Sets or returns a picture object's percentage of original width.
PicturePath | Sets or returns the picture object's path.
PreserveAspectRatio | Sets or returns whether a picture object's aspect ratio is preserved.
PrintVisibility | Sets or returns whether to print the object on the label during the print job.
RotationAngle | Sets or returns the rotation angle of an object.
TextBackgroundColor | Sets or returns the background color of an object's text.
TextColor | Sets or returns the color of an object's text.
Type | Returns the object's type as a BtObject constant.
Value | Returns the current value of the object.
Width | Sets or returns the width of an object.
X | Sets or returns the X coordinate of an object.
Y | Sets or returns the Y coordinate of an object.
[/xml]

Unfortunately - no property to control X dimension of a barcode.

hope it helps!
0
Avatar
Ian Cummings
Moderator
Comment actions Permalink

To control the X-dimension of a barcode, you can cheat by placing multiple barcodes of different dimensions on your label and then use the VB script to set data and make visible only the barcode of the particular dimension that you want to print.
0
Avatar
Legacy Poster
Comment actions Permalink

Thanks a lot! I've run into one snag. I need to be able to change the option within a picture's properties of the Sizing Method.
I need to switch back and forth between "Original Size" and "Fit to Rectangle".
If this isn't possible. I guess I can just put in 2 picture objects, and suppress one of them based on the script. Thanks.

Edit: Oh wait. I think I thought of a better workaround. I think I can just set PercentHeigh and PercentWidth to 100 when I want to preserve original size. Will test later.

Please sign in to leave a comment.