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.
Note: |
---|
To be listed in the Footprint Wizard dialog box, the
footprint script files must reside in the footprint wizard scripts folder. |
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:
OnTab_
OnEnableParams
OnBuildFootprint
OnBuildAssembly
OnBuild2DImage
OnBuild3DModel
Footprint wizard classes
FWizGeometry
DlxPointDlxRect
DlxSegment
DlxFigure
Styles
DlxColorDlxPenStyle
DlxBrushStyle
DlxTextStyle
DlxPadStyle
DlxDashStyle
DlxHatchStyle
DlxFontStyle
Dlx3DStyle
Drawing contexts
FWizLegendFWizAssembly
FWiz2DImage
FWiz3DModel
3D Objects
Dlx3DObjectDlxCube
DlxCylinder
DlxCone
DlxSphere
DlxTorus
DlxHelicoid
DlxSolid
DlxSolidPath
DlxRevolve
DlxSurface
DlxFence
DlxShell
DlxICBody
DlxLead