πConstants
Collections of constants used throughout the Flying Logic scripting API.
All the constants in this section are defined in the Application
class.
Orientation Type
Example:
Bias Type
Example:
Compactness Type
Example:
Animation Style Type
Example:
Edge Colors Type
Example:
Spinner Display Type
Example:
Export Type
Example:
Import Type
Example:
Image Export Type
These types are used as keys in a dictionary, the value being the setting for the key. If a type appears in the dictionary, it overrides the current setting.
Example:
Weekday Type
These are the same constants found in the Workweek class and duplicated here for convenience. See Workweek class for details.
OPML Export Type
These types are used as keys in a dictionary, the value being the setting for the key. If a type appears in the dictionary, it overrides the current setting.
Example:
MS Project Export Type
CSV Import Type
CSV Import Encoding Value
CSV Import Separator Value
CSV Import Connection Value
CSV Import Row Index Values
May also be an integer.
XSLT Import-Export Type
These types are used as keys in a dictionary, the value being the setting for the key.
The first three values are mutually exclusive and indicate the source of the XSLT file: either ask the user for locate the file (value should be True), use the given file (the value is the path to the file as a string), or use the already loaded/embedded string (XLST file as a string).
The last two are only used when exporting, and indicate whether the Flying Logic document to be transformed should include graph element frames and edge splines.
Example:
Find Type
These types are used as keys in a dictionary, the value being the setting for the key. If a type appears in the dictionary, it overrides the current setting.
Example:
Operate Type
The first four types above are bit fields. The first three limit which graph element types are operated upon, while OPERATE_REVERSE indicated the elements should be iterated through end to start. OPERATE_NON_EDGE is the same as OPERATE_ENTITY | OPERATE_JUNCTOR, and OPERATE_ALL should be obvious.
Example:
Symbol Name Type
BITMAP_PREFIX and SVG_PREFIX are the generator names for bitmap images and SVG drawing custom symbols. SYMBOL_SEPARATOR is the a colon.
See Graphic Symbol Names for a list of the built-in symbol name constants.
Special Symbol Type
Special predefined Symbol instances. INHERIT_SYMBOL will set an entityβs symbol back to the default for its entity class. NO_SYMBOL will set an entityβs symbol to none, overriding any possible default symbol for its entity class. For groups both INHERIT_SYMBOL and NO_SYMBOL clear the group symbol.
Text Editor Type
These types are used as keys in a dictionary, the value being the attribute for the key.
Example:
Edge Part Type
Which end of an edge to reconnect.
Example:
Shape Part Type
Parts of an element's shape.
Chart Part Type
Parts of the chart table.
Other Font Type
A special βfont sizeβ that means βset the size as the application sees fit.β
Example:
File Type
These are various file-lated constants: the system-dependent file path separator, the Flying Logic document file extension, the Flying Logic template file extension, and the Flying Logic domain file extension.
Schedule Type
Direction that project should be scheduled.
Open Document Option Type
Valid values for the openDocumentOption preference.
Canvas View Type
Canvas view kinds.
Resource Assignment Type
If two or more resources are assigned to a task, this value determines how those resources are applied. With RESOURCE_FIXED_EFFORT the effort is considered total work hours to be distributed between resources. With RESOURCE_FIXED_DURATION, the effort acts as a fixed duration and resources all work that number of hours on the task. Finally, RESOURCE_FIXED_UNITS results in each resource only working part-time on the task.
Edge Spline Type
Types that appear in a spline dictionary.
Diagram Import Type
These types are used as keys in a dictionary, the value being the setting for the key. If a type appears in the dictionary, it overrides the current setting. All the current settings are booleans.
Static Font Type
Symbolic names of various fonts used to display shapes. Used in Documentβs findStaticFont method.
Symbol Scale and Size Type
Scale factors when calling the generateSvg
method of Symbol class.
Can be used as maxSize when calling the generateSvg
method of the Symbol class for chart-like output. Graph-like output should set maxSize
to None
indicating an unconstrained size.
Last updated