Cyclone 3DR Script
from Technodigit, part of Hexagon. Copyright 1997-2024.
|
Allow the creation of reports. More...
Public Types | |
enum | SPageSize { A4 = 7 , B5 = 19 , Letter = 0 , Legal = 1 , Executive = 2 , A0 = 3 , A1 = 4 , A2 = 5 , A3 = 6 , A5 = 8 , A6 = 9 , A7 = 10 , A8 = 11 , A9 = 12 , B0 = 14 , B1 = 15 , B10 = 24 , B2 = 16 , B3 = 17 , B4 = 18 , B6 = 20 , B7 = 21 , B8 = 22 , B9 = 23 , C5E = 25 , Comm10E = 26 , DLE = 27 , Folio = 28 , Ledger = 29 , Tabloid = 30 , Custom = 31 , A10 = 13 , A3Extra = 32 , A4Extra = 33 , A4Plus = 34 , A4Small = 35 , A5Extra = 36 , B5Extra = 37 , JisB0 = 38 , JisB1 = 39 , JisB2 = 40 , JisB3 = 41 , JisB4 = 42 , JisB5 = 43 , JisB6 = 44 , JisB7 = 45 , JisB8 = 46 , JisB9 = 47 , JisB10 = 48 , AnsiC = 49 , AnsiD = 50 , AnsiE = 51 , LegalExtra = 52 , LetterExtra = 53 , LetterPlus = 54 , LetterSmall = 55 , TabloidExtra = 56 , ArchA = 57 , ArchB = 58 , ArchC = 59 , ArchD = 60 , ArchE = 61 , Imperial7x9 = 62 , Imperial8x10 = 63 , Imperial9x11 = 64 , Imperial9x12 = 65 , Imperial10x11 = 66 , Imperial10x13 = 67 , Imperial10x14 = 68 , Imperial12x11 = 69 , Imperial15x11 = 70 , ExecutiveStandard = 71 , Note = 72 , Quarto = 73 , Statement = 74 , SuperA = 75 , SuperB = 76 , Postcard = 77 , DoublePostcard = 78 , Prc16K = 79 , Prc32K = 80 , Prc32KBig = 81 , FanFoldUS = 82 , FanFoldGerman = 83 , FanFoldGermanLegal = 84 , EnvelopeB4 = 85 , EnvelopeB5 = 86 , EnvelopeB6 = 87 , EnvelopeC0 = 88 , EnvelopeC1 = 89 , EnvelopeC2 = 90 , EnvelopeC3 = 91 , EnvelopeC4 = 92 , EnvelopeC6 = 93 , EnvelopeC65 = 94 , EnvelopeC7 = 95 , Envelope9 = 96 , Envelope11 = 97 , Envelope12 = 98 , Envelope14 = 99 , EnvelopeMonarch = 100 , EnvelopePersonal = 101 , EnvelopeChou3 = 102 , EnvelopeChou4 = 103 , EnvelopeInvite = 104 , EnvelopeItalian = 105 , EnvelopeKaku2 = 106 , EnvelopeKaku3 = 107 , EnvelopePrc1 = 108 , EnvelopePrc2 = 109 , EnvelopePrc3 = 110 , EnvelopePrc4 = 111 , EnvelopePrc5 = 112 , EnvelopePrc6 = 113 , EnvelopePrc7 = 114 , EnvelopePrc8 = 115 , EnvelopePrc9 = 116 , EnvelopePrc10 = 117 , EnvelopeYou4 = 118 , LastPageSize = 118 , AnsiA = 0 , AnsiB = 29 , EnvelopeC5 = 25 , EnvelopeDL = 27 , Envelope10 = 26 } |
The page format of the SReport. More... | |
Public Types inherited from SComp | |
enum | VisibilityEnum { HIDDEN_ONLY = 0 , VISIBLE_ONLY = 1 , ANY_VISIBILITY = 2 } |
Visible criteria. More... | |
Public Member Functions | |
Object | AddChapter (SReportData reportData, string templateToUse="") |
Add a SReportData as a chapter in the SReport. The chapter uses the given template, or the default template defined in the Template Library if templateToUse is not set. More... | |
Object | ExportReportPDF (string completePath) |
Export a SReport as a PDF file. More... | |
Object | SetFooter (string templateToUse) |
Add a footer corresponding to the given template. More... | |
Object | SetHeader (string templateToUse) |
Add a header corresponding to the given template. More... | |
SetReportOptions (Object options) | |
Set the desired SReport options. More... | |
SReport () | |
Create an empty SReport. More... | |
string | ValuesToString () |
Get a debug string representation of the SReport. More... | |
Public Member Functions inherited from SComp | |
AddToDoc () | |
Add the object to the document. More... | |
ApplyTransformation (SMatrix matrix) | |
Apply a geometric transformation to the current object by making a product with the given matrix. More... | |
Object | GetBoundingBox (SMatrix ucs=null) |
Calculate the bounding box of the object. More... | |
Object | GetColors () |
Get the colors of the object. More... | |
string | GetFolderName () |
Get the name of the folder containing the object. More... | |
string | GetName () |
Return the object's name. More... | |
string | GetPath () |
Return the full path of a SComp in the tree. More... | |
Invert () | |
Invert the normal of the object. More... | |
boolean | IsInDoc () |
Return if the object is in the document or not. More... | |
boolean | IsVisible () |
Get the visibility of the object. More... | |
MoveToGroup (string groupPath, boolean moveInsideTopParent=true) | |
Move the object to the document group represent by the given path. If some groups, in the path, don't exist, they will be created. More... | |
RemoveFromDoc () | |
Remove the object from the document. More... | |
SetClippable (boolean clipping) | |
Set clippable or not. More... | |
SetColors (number red, number green, number blue) | |
Set the colors of the object. More... | |
SetName (string objectName) | |
Set the object's name. More... | |
SetTransparency (number alpha) | |
Set the transparency of the object. More... | |
SetVisibility (boolean visible) | |
Set the object to be visible, or not visible. More... | |
string | toString () |
Get the type of the variable. More... | |
Translate (SVector vector) | |
Make a translation of the current object with an SVector. More... | |
Static Public Member Functions | |
static SReport | New () |
Create an empty SReport. More... | |
Static Public Member Functions inherited from SComp | |
static Array< SComp > | All (VisibilityEnum visCrit=SComp.ANY_VISIBILITY) |
Get all the SComp in the document. More... | |
static Object | FromClick () |
Launch an interaction to select a SComp in the scene. More... | |
static Array< SComp > | FromName (string name) |
Search all the SComp with the given name. More... | |
static Array< SComp > | FromSel () |
Get all the selected SComp. More... | |
Allow the creation of reports.
A report is a collection of chapters that can be exported as a .pdf file.
enum SReport::SPageSize |
The page format of the SReport.
SReport::SReport | ( | ) |
Create an empty SReport.
Object SReport::AddChapter | ( | SReportData | reportData, |
string | templateToUse = "" |
||
) |
Add a SReportData as a chapter in the SReport. The chapter uses the given template, or the default template defined in the Template Library if templateToUse is not set.
reportData | (SReportData) The SReportData to add in the SReport |
templateToUse | (string) The template path (ending with ".mlt"), or the template name in the library (as shown in the list of templates available in the report editor), or an empty string to use the default template |
ret.ErrorCode | (number) The error code
|
Object SReport::ExportReportPDF | ( | string | completePath | ) |
Export a SReport as a PDF file.
completePath | (string) The PDF file path |
ret.ErrorCode | (number) The error code
|
Object SReport::SetFooter | ( | string | templateToUse | ) |
Add a footer corresponding to the given template.
templateToUse | (string) The template path (ending with ".mlt"), or the template name in the library (as shown in the list of templates available in the report editor) |
ret.ErrorCode | (number) The error code
|
Object SReport::SetHeader | ( | string | templateToUse | ) |
Add a header corresponding to the given template.
templateToUse | (string) The template path (ending with ".mlt"), or the template name in the library (as shown in the list of templates available in the report editor) |
ret.ErrorCode | (number) The error code
|
SReport::SetReportOptions | ( | Object | options | ) |
Set the desired SReport options.
options | (Object) The data structure containing report options
|