<< Click to Display Table of Contents >>

To create a Rectangular PCB

pcb.MakeRectangular( centerX = 1, centerY = 2, width = 3, height = 4 )

 

To create an Elliptical PCB

pcb.MakeElliptical( centerX = 1, centerY = 2, width = 3, height = 4 )

 

To create a Polygonal PCB

width = 5

height = 4

profile = [ 
        Point( 0, 0 ),
        Point( 0, height ),
        Point( width/2.0, height*.15 ),
        Point( width, height ),
        Point( width,0 ) ]

pcb.MakePolygonal( profile )

 

Setting the Color of the PCB

pcb.Color = Color.DarkGreen

 

pcb.Color = Color.FromArgb( red,green,blue ) #  0 <= red,green,blue <= 255

 

pcb.Color = Color.FromArgb( alpha, red,green,blue ) #  0 <= alpha, red,green,blue <= 255. alpha will give you transparency 255 is opaque

 

Setting the Thickness of the PCB

To set the thickness of the PCB.

pcb.Thickness = 0.01

Removing All Holes and Cutouts

To set the thickness of the PCB.

pcb.RemoveAllHolesAndCutouts()

Adding Automatic Mounting Holes (Projects only)

pcb.AddMountingHoles = True

 

Setting the Size of Automatic Mounting Holes (Projects only)

pcb.MountingHoleDiameter = 0.1

To add a Rectangular Cutout

pcb.AddRectangularCutout( centerX = 1, centerY = 2, width = 3, height = 4 )

 

To add an Elliptical Cutout

pcb.AddEllipticalCutout( centerX = 1, centerY = 2, width = 3, height = 4 )

 

To add a Polygonal Cutout

width = 5

height = 4

profile = [ 
        Point( 0, 0 ),
        Point( 0, height ),
        Point( width/2.0, height*.15 ),
        Point( width, height ),
        Point( width,0 ) ]

pcb.AddPolygonalCutout( profile )

To create a Regular Polygonal PCB

pcb.MakePolygonal( geom.Polygon( sides = 8, centerX = 4, centerY = 4, radius = 1 ) )