The design variable

<< Click to Display Table of Contents >>

Navigation:  Designing a PCB with the DEX PCB Designer > Appendix > Scripting > The DEX API >

The design variable

The design variable give you access to the current design data.

Properties (Loads more to come in the next few days)

bool

IsProject

True if the design is a project. (read only)

bool

IsPart

True if the design is a part. (read only)

bool

IsArt

True if the design is artwork. (read only)

bool

Modifed

True if the design has been modified but not saved. (read only)

bool

NeverBeenSaved

True if the design has never been saved (A new design). (read only)

string

DocumentName

Name of design document. Includes full path and extension

string

ShortName

The name of the design document without path and with the extension

 

 

 

Useage

if  design.IsProject: 

 print 'The design is a project'

else: 

 print 'The design is not a project'

 

Methods (Loads more to come in the next few days)

none

Save

Save the design.

none

AddLine ( startX, startY,edX,endY)

Add a line  

List<Symbol>

Symbols()

List of symbols in the design

Useage

Call method on the window variable e.g.

design.AddLine(1,2,5,6 )