YAPPgenerator API
All objects (cutouts, pcbStands, labels) are entered as elements in an array. Each element is an array of its own. The way you populate the array's is named the 'YAPPgenerator API', API
for short.
In the description of the API we use the following convention:
Parameters p(..) means it is a Positional parameter like. These parameters must be entered in fixed order. n(..) means it is a a non-Positional parameter. These parameters can be entered in random order. There are required parameters (you need to enter all required parameters) and optional parameters (they mostly have a default value and can be omitted).
For non-numerical parameters the following syntax is used:
To elaborate lets use a fictional demoArray with this API:
As you can see, there are three required positional parameters p(0, 1 and 2) and there are three optional positional parameters p(3, 4 and 5).
Not all positional
parameters are required but if you want to give f.i. positional parameter p(5) a value of '50' you also have to enter values for optional parameters p(3) and p(4). This might look like this:
The following entries are all valid:
Parameter n(a) can have the values (one or more) yappBoth, yappLidOnly and/or yappBaseOnly. If neither is given, the default yappBoth will be used.
Parameter n(b) can have one (and only one) of the values yappHole or yappPin. If omited the default value yappPin will be used.
Parameter n(c) can have one or more values yappAllCorners, yappRightLeft, yappFrontRight, yappBackLeft and/or yappBackRight. If omitted yappAllCorners will be used.
Parameter n(d) can have one of the following values yappCoordBox or yappCoordPCB. If omitted yappCoordPCB is used.
Parameter n(e) can have the value yappNoFillet. If omitted the default is that for this object fillets are created.
Last updated