For some families of components it is possible to create footprints automatically by specifying the dimensional parameters of the components in the Footprint Wizard dialog box. The automatic footprint generation procedure creates all graphical objects such as lines, arcs, text, and pads.

Using the script language, new footprint models can be easily created. This guide describes the functions exposed and the events generated by the Footprint Wizard tool.

NotaNote:

To be listed in the Footprint Wizard dialog box, the footprint script files must reside in the footprint wizard scripts folder.
For the current user:
   C:\Users\user\Documents\Alterlogix\Drawlogix\fwizscripts
For all users:
   C:\Users\Public\Documents\Alterlogix\Drawlogix\fwizscripts

Scripting editor window

The Scripting Editor is a built-in editor you can open within Drawlogix and use to create or edit text files. To open the editor you need to create a new script document as explained in: Create a new document.

Footprint model description

At the beginning of the Javascript code you must insert a description of the package defined in the script as explained in: Footprint model description.

Footprint wizard events

To define a new footprint model, a script must define functions for handling the following events:

OnInitialize
OnTab_
OnEnableParams
OnBuildFootprint
OnBuildAssembly
OnBuild2DImage
OnBuild3DModel

Footprint wizard classes

FWiz

Geometry

DlxPoint
DlxRect
DlxSegment
DlxFigure

Styles

DlxColor
DlxPenStyle
DlxBrushStyle
DlxTextStyle
DlxPadStyle
DlxDashStyle
DlxHatchStyle
DlxFontStyle
Dlx3DStyle

Drawing contexts

FWizLegend
FWizAssembly
FWiz2DImage
FWiz3DModel

3D Objects

Dlx3DObject
DlxCube
DlxCylinder
DlxCone
DlxSphere
DlxTorus
DlxHelicoid
DlxSolid
DlxSolidPath
DlxRevolve
DlxSurface
DlxFence
DlxShell
DlxICBody
DlxLead

Sample code

TO-220

See also