At the beginning of the Javascript code you must insert a description of the package defined in the script.

The description must be delimited by two occurrences of the following directive:

<<fwizardpackage>>

After the directive you can insert some information about the script by delimiting it by the round brackets.

Package description string

The package description string is in the following form:

AttenzioneSyntax:
<Package description>|<Type><Package Unique Identifier>

Folder description string

Multiple packages can be defined in the same script by enclosing the package descriptions in a folder. The folder is specified using curly brackets as follows:

AttenzioneSyntax:
{<Folder name>|<Folder Unique Identifier>
    <package description string>
    <package description string>
    ...
    <package description string>
}
package description

A brief description of the package.

type

Enter TH if it is a through-hole package or SM if it is a surface-mount package.

package unique identifier

A unique identifier for the package. The unique identifier can be generated automatically by selecting the Insert UI command from the script editor's context menu.

folder unique identifier

A unique identifier for the folder. The unique identifier can be generated automatically by selecting the Insert UI command from the script editor's context menu.

Example

  Copy codeCopy code
<<fwizardpackage>>
TO-220 3 Pin|TH#ECVJARG9W2PXF446X5V7ZUVYSA
<<fwizardpackage>>
  Copy codeCopy code
<<fwizardpackage>>
{Flat Package|#ECVJARG9W2PXF446X5V7ZUVYSE
	Ceramic Flat Pack (CFP)|SM#ECVJARG9W2PXF446X5V7ZUVYSA
	Quad Flat Package (QFP)|SM#ECVJARG9W2PXF446X5V7ZUVYSB
	Ceramic Quad Flat Pack (CQFP)|SM#ECVJARG9W2PXF446X5V7ZUVYSD
}
<<fwizardpackage>>

See also