# Category:VectorScript Subroutines

From Vectorlab

Complete list of all sub-routines available on Vectorlab.

Here I start sharing a large part of my own library of sub-routines. This will help you creating new ones. Please contribute sharing whenever you feel that one of your routines is secure enough. Orso B. Schmid 14 May 2009 (MEST)

- NOTE

- some of these routines are not perfect. If you find an error or have an improvement, transfer the old routine to the discussion tab, comment your changes and place the improved routine in the main page.
- most of these routines are simple. If you just think enough, you'll come to the same routine.
- a few of these routines are not simple and took a lot of research to be shaped as you find them.

If you don't know what a subroutine is, please check the Introductory article Using Subroutines

Each of the routines listed in the category

**is available under the****VectorScript Subroutines****MIT licencing**, if not differently specified.**Using the routines you accept its terms.**## Subcategories

This category has the following 8 subcategories, out of 8 total.

## Pages in category "VectorScript Subroutines"

The following 200 pages are in this category, out of 208 total.

(previous page) (next page)### A

### C

- Conv-Base to Decimal
- Conv-Color 256 to 65535
- Conv-Color 65535 to 256
- Conv-Color Hex-8 to RGB-16
- Conv-Color RGB-16 to CMYK
- Conv-Color RGB-16 to Hex-8
- Conv-Color RGB-16 to HSV
- Conv-Color RGB-16 to range 0-1
- Conv-Color RGB-8 to Color Index
- Conv-Color to Gray
- Conv-Color to Sepia
- Conv-Current Units to Page Millimeters
- Conv-Current Units to Printed Page
- Conv-Decimal to Base
- Conv-Decimal to Hex
- Conv-Hex to Decimal
- Conv-ISO Date
- Conv-Old Fashioned Degrees
- Conv-Page Inches to Current Units
- Conv-Page Inches to Page Millimeters
- Conv-Page Millimeters to Current Units
- Conv-Page Millimeters to Page Inches
- Conv-Page Millimeters to Points
- Conv-Roman Numerals
- Conv-Time string converter

### D

- Dlog-Empty Pulldown Menu
- Dlog-Empty Tree Control
- Dlog-Generic Class-Layer dialog
- Dlog-Generic Pulldown dialog by dynarray
- Dlog-Generic Pulldown dialog by resource list
- Dlog-Get PIO parm choice index
- Dlog-Get Pulldown menu choice index
- Dlog-Get Pulldown menu choice string
- Dlog-Load user pref checkbox
- Dlog-Load user pref last used tab
- Dlog-Load user pref LB column sizes
- Dlog-Load user pref number
- Dlog-Load user pref pulldown by index
- Dlog-Load user pref radio
- Dlog-Load user pref string
- Dlog-Pulldown menu contains string
- Dlog-Pulldown menu divider
- Dlog-Set PIO parm choice string by index
- Dlog-Store user pref LB column sizes
- Dlog-Store user pref pulldown by index

### H

- Han-Active Container
- Han-Batch Duplicate to Target Container
- Han-Batch SetParent
- Han-Create 3D object
- Han-Create Circle
- Han-Create Oval
- Han-Create Rectangle
- Han-First Selected in Active Container
- Han-Get Bounding Box 3D
- Han-Get First Object by criteria
- Han-Get Last Object by criteria
- Han-Get Object type as integer
- Han-Get Object type as Name
- Han-Get Symbol Folder
- Han-Get the right object
- Han-Object has Record
- Han-Object is 3D
- Han-Object is DLVP
- Han-Object is Insertable
- Han-Object is Roof
- Han-Object is Sheet Layer
- Han-Object is SVP
- Han-Object is Viewport (of any type)
- Han-Object is VP
- Han-Object is Wall
- Han-Record is Hidden
- Han-Record is User Format
- Han-Record is Valid Plugin
- Han-Symbol Move to Folder
- Han-Symbol replace

### L

- LB- All constants
- LB-Attributes cell
- LB-Avoid column with zero-width
- LB-Color and Style for cell
- LB-Delete all columns
- LB-Enable drag and drop
- LB-Get event row index
- LB-Get first selected row
- LB-Get last selected row
- LB-Get number
- LB-Get string
- LB-Insert column
- LB-Load pulldown menu
- LB-Make image column
- LB-Make math toggle column
- LB-Make number cell at column zero
- LB-Make radio column
- LB-Make selection toggle column
- LB-Make toggle column
- LB-Number to Char
- LB-Reload index
- LB-Select all rows
- LB-Set number cell
- LB-Set up List Browser from array

### M

- Math-Add distance to vector keeping the angle
- Math-Arc by three points
- Math-Arc info
- Math-Check Angle 180
- Math-Check Angle 360
- Math-Get Angle between two vectors
- Math-Get distance between two vectors
- Math-Get middle point
- Math-Get perpendicular distance
- Math-Get perpendicular to slope
- Math-Get Slope
- Math-Get Vector Angle
- Math-Line Line Intersection using vectors
- Math-Linear coordinates
- Math-LineTo using vectors
- Math-Locus from vector
- Math-MoveTo using vectors
- Math-Offset vector (or point) by distance and angle
- Math-Offset Vertex
- Math-Point to vector
- Math-Rotate Vector
- Math-Set arc radius
- Math-Set to slope
- Math-Set vector length keeping the angle
- Math-Trig Ang by X and Diag
- Math-Trig Ang by X and Y
- Math-Trig Ang by Y and Diag
- Math-Trig Apothem by Chord and Radius
- Math-Trig Chord by Sweep and Radius
- Math-Trig Cosecant by Diag and Ang
- Math-Trig Cotangent by Diag and Ang
- Math-Trig Diag by X and Ang
- Math-Trig Diag by X and Y
- Math-Trig Diag by Y and Ang
- Math-Trig Perim by Sweep and Radius
- Math-Trig Sagitta by Chord and Radius
- Math-Trig Secant by Diag and Ang
- Math-Trig Sweep by Chord and Radius
- Math-Trig Sweep by Perim and Radius
- Math-Trig Tan by Diag and Ang
- Math-Trig X by Diag and Ang
- Math-Trig X by Y and Ang
- Math-Trig X by Y and Diag
- Math-Trig Y by Diag and Ang
- Math-Trig Y by X and Ang
- Math-Trig Y by X and Diag
- Math-Vector to Point

### T

- Txt- All constants
- Txt-Apostrophe
- Txt-Braket
- Txt-Case converter
- Txt-Char is number
- Txt-Delimited string
- Txt-Delimited string dynarray of char
- Txt-Extract char separated
- Txt-Extract char separated number
- Txt-Get longest string
- Txt-Lowercase
- Txt-Name is unique
- Txt-Name is unique in layers
- Txt-Name is unique in objects
- Txt-Name will collide
- Txt-Padder left
- Txt-Padder right
- Txt-Remove chars not in list
- Txt-Reverse string
- Txt-Search replace
- Txt-Search replace char
- Txt-Search replace dynarray of char
- Txt-Search replace prefix
- Txt-Search replace suffix
- Txt-Simple grep
- Txt-Split name from number
- Txt-String is in array
- Txt-Substitute not in list
- Txt-Substitute not in pair
- Txt-Text object
- Txt-Unic name
- Txt-Uppercase
- Txt-Write scaled text
- Txt-Write text