Sets the dash pattern for upcoming lines
Member of PRIM_PDF (PRIM_PDF)
Name | Type | Data Type | Description |
---|---|---|---|
Pattern | *Input | PRIM_OBJT | The pattern of the line in an array of numbers |
Phase | *Input (Optional) | PRIM_OBJT | The phase at which the dash pattern starts |
Sets the dash pattern for upcoming lines.
Set the line dash pattern
Define_Com Class(#PRIM_PDF) Name(#pdf) Unitm(mm) Pageformat(A4) Pageorientation(Portrait) Define_Com Class(#PRIM_NMBR) Name(#DashEnt) Define_Com Class(#PRIM_NMBR) Name(#DashPhase) Define_Com Class(#Prim_ACol<#PRIM_NMBR>) Name(#DashPat) #pdf.start #DashPat.Insert( (*New #PRIM_NMBR) ) #DashPat<1> := 7 #DashPat.Insert( (*New #PRIM_NMBR) ) #DashPat<2> := 3 #DashPat.Insert( (*New #PRIM_NMBR) ) #DashPat<3> := 1 #DashPat.Insert( (*New #PRIM_NMBR) ) #DashPat<4> := 3 #DashPhase := 10 #pdf.setLineDash Pattern(#DashPat) Phase(#DashPhase) #pdf.setLineWidth Width(0.2) #pdf.line Left(10) Top(10) Right(150.5) Bottom(10) #pdf.save Filename('myReport.pdf')
LANSA Version 15, April 2020