Document
The Document class represents a Flying Logic document. Every script has a global variable document that in an instance of Document representing the current document.
Fields
| Field | Type | Description |
|---|---|---|
title | string | The title of the document. |
author | string | The author of the document. |
comment | string | The comments of the document. |
keywords | string | The keywords of the document. |
edgeWeightsVisible | boolean | The edge weights visible setting. |
confidenceVisible | boolean | The confidence visible setting. Note: this field defaults to False on documents created by scripts. When False, each entity uses its own per-entity visibility setting, which also defaults to hidden on new entities — so confidence bars are invisible on any document built entirely by script. Scripts that build confidence-propagation diagrams (belief networks, risk models, Proportion-operator diagrams) should set document.confidenceVisible = True explicitly after creating the document. |
annotationNumbersVisible | boolean | The annotation numbers visible setting. |
edgeAnnotationsVisible | boolean | The edge annotations visible setting. |
entityIDVisible | boolean | The entity ID visible setting. |
addEntityAsSuccessor | boolean | The add entity as successor setting. |
hasProjectManagement | boolean (read-only) | True if this document contains project management data, False otherwise. Enabling PM always initializes a start date, so projectManagementVisible being True implies hasProjectManagement is also True — but the display can be turned off while PM data remains. Returns False after eraseProjectManagement() is called. |
projectManagementVisible | boolean | Controls whether project management information is displayed on the canvas and in the chart view. Enabling PM initializes a project start date and performs an initial scheduling run. To check whether PM data exists regardless of display state, use hasProjectManagement. |
criticalPathVisible | boolean | The critical path highlight visibility setting. Project management must visible for this to have an effect. |
layoutIncrementally | boolean | The layout incrementally setting. |
toolbarVisible | boolean | The toolbar visibility setting. |
sidebarVisible | boolean | The sidebar visibility setting. |
inspectorsVisible | dictionary | The visibility of the sidebar inspectors. The keys are one of the Application.*_INSPECTOR constants, and the values are either Application.INSPECTOR_CLOSED or Application.INSPECTOR_OPEN. |
browseAnnotations | boolean | The browse annotations setting. |
printShowSelectionHalo | boolean | The show selection halo when printing setting. |
canvasView | Application.GRAPH_VIEW or Application.CHART_VIEW | The current kind of canvas view. |
startDate | Date or None | The start date of project when project management is enabled, otherwise None. This field is read-only if using finish-to-start scheduling, with the following exception: setting this variables to None disables project management. |
actualStartDate | Date | The start date of the earliest task, which may be earlier than project start date because of the task having a preferred start or finish date. Read only. |
finishDate | Date or None | The finish date of project as a Date instance when project management is enabled, otherwise None. The field is read-only if using finish-to-start scheduling, with the following exception: setting this variable to None disables project management. |
startTime | integer | Returns the number of hours into the work day that the project begins. |
finishTime | integer | Returns the number of hours into the work day that the project ends. |
standardCalendar | Workweek or None | The standard calendar is the Workweek instance uses for all tasks not assigned a resource when project management is enabled, otherwise None. Note that this variable always returns a deep copy, not the current instance. Modifications will not be saved unless you set the copy. For example: stdCalendar = document.standardCalendar; stdCalendar.workdays = Workweek.MONDAY_MASK ^ theWeek.workdays; document.standardCalendar = stdCalendar |
scheduleBasis | Application.SCHEDULE_FROM_START_DATE (default) or Application.SCHEDULE_FROM_END_DATE | The direction of project scheduling |
calendars | list of Workweek | A read-only list of all defined calendars. These are copies. To make permanent changes call the method updateCalendar. List may be empty. |
resources | list of Resource | A read-only list of all defined resources. These are copies. To make permanent changes call the method updateResource. List may be empty. |
leftHeader | string | The left header text. |
middleHeader | string | The middle header text. |
rightHeader | string | The right header text |
leftFooter | string | The left footer text |
middleFooter | string | The middle footer text |
rightFooter | string | The right footer text |
orientation | Orientation Type | The layout orientation of the graph. |
bias | Bias Type | The layout bias of the graph. |
graphCompactness | Compactness Type | The layout compactness of the graph. |
defaultEntityClass | EntityClass | The default entity class, usually Generic. Read only. |
selectedEntityClass | EntityClass | The current entity class of newly-created entities when not explicitly specified |
defaultJunctorOperator | VertexOperator | The current operator of newly-created junctors. |
entityOperator | VertexOperator | The current operator of newly-created entities. |
entityTitleWidth | number | The entity title width multiplier in range 1.0 to 8.0. |
entityTitleFont | FontSpec or None (default) | The document-wide entity title font. This FontSpec can have a size of FontSpec.AUTOSIZE. |
entityClassFont | FontSpec or None (default) | The document-wide entity class name font. |
groupTitleFont | FontSpec or None (default) | The document-wide group title font. |
defaultAnnotationFont | FontSpec or None (default) | The document-wide default annotation font. |
userDefinedAttributesFont | FontSpec or None (default) | The document-wide user defined attributes font. |
projectManagementFont | FontSpec or None (default) | The document-wide project management font. |
documentPath | string or None | Read only. The path to the file from which the document was loaded, or None if the document has never been saved. |
isModified | boolean | Read only. True if the document has unsaved changes, otherwise False. |
hoistedGroup | Group or None | The currently hoisted group. |
hasSelection | boolean | Read only. True if any elements in the graph are selected, otherwise False. |
selection | list of GraphElement | The current selection in the graph. |
all | list of GraphElement | The entire graph. |
orderedVertices | list of VertexElem | All vertices as a list, earliest predecessor first, in acyclic order; i.e., ignoring back edges. |
reverseOrderedVertices | list of VertexElem | All vertices as a list, latest successor first, in acyclic order; i.e., ignoring back edges. The reverseOrderedVertices list is not necessarily the reverse of the orderedVertices list because of how groups and unconnected entities are handled. |
domains | list of Domain | Read only. All the domains in the document. |
customSymbols | list of Symbol | Read only. All the custom Symbols in the document. |
pageSize | tuple (width, height) | Read only. The currently calculated page size when printing in points. |
exportPath | string | The directory that should be displayed in a file dialog involved in an export operation for this document, defaults to the user’s home directory. |
imageExportAttributes | dictionary | A dictionary with the current image export attributes (see Image Export Type) |
chartFrame | tuple (x, y, width, height) | Read only. The frame of the chart table. |
chartCornerFrame | tuple (x, y, width, height) | Read only. The frame of the “corner” of chart table where the headers reside. |
chartRowFrame | tuple (x, y, width, height) | Read only. The frame of the row header of chart table. |
chartColumnFrame | tuple (x, y, width, height) | Read only. The frame of the columns of data in the chart table. |
chartColumnLines | tuple | Read only. A tuple containing the x-position of all vertical lines in chart table. |
chartHeaderTitles | dictionary | Read only. A dictionary of the strings of the header labels. (See Chart Part Type). |
chartHeaderRects | dictionary | Read only. A dictionary of the frames of the header labels as tuples (x, y, width, height). (See Chart Part Type). |
chartClassVisible | boolean | True if the Entity Class column is visible in Chart view. |
chartStartDateVisible | boolean | True if the Start Date column is visible in Chart view. |
chartFinishDateVisible | boolean | True if the Finish Date column is visible in Chart view. |
chartEffortVisible | boolean | True if the Effort column is visible in Chart view. |
chartResourceVisible | boolean | True if the Resources column is visible in Chart view. |
chartCompletionVisible | boolean | True if the Completion column is visible in Chart view. |
chartColumnsVisible | dictionary | A dictionary of Chart view column visibility, keyed by Application.CHART_COLUMN_* constants. The getter returns all six columns. The setter changes only the columns whose keys appear in the dictionary, leaving the rest unchanged. See Chart Column Type. |
zoomFraction | number | The current zoom value for the currently active canvas view (Graph or Chart). Values greater than 1.0 indicate the canvas is zoomed-in, values less than 1.0 indicate the canvas is zoomed-out. |
scrollPos | tuple (x, y) | The scroll position of the currently active canvas view (Graph or Chart) as a tuple of integer pixel offsets. |
graphZoomFraction | number | The zoom value for Graph view. When Graph view is active, reading this returns the live zoom and writing updates the canvas immediately. When Chart view is active, the value is stored and applied when switching to Graph view. |
chartZoomFraction | number | The zoom value for Chart view. When Chart view is active, reading this returns the live zoom and writing updates the canvas immediately. When Graph view is active, the value is stored and applied when switching to Chart view. |
graphScrollPos | tuple (x, y) | The scroll position for Graph view as a tuple of integer pixel offsets. When Graph view is active, reading this returns the live position and writing updates the canvas immediately. When Chart view is active, the value is stored and applied when switching to Graph view. |
chartScrollPos | tuple (x, y) | The scroll position for Chart view as a tuple of integer pixel offsets. When Chart view is active, reading this returns the live position and writing updates the canvas immediately. When Graph view is active, the value is stored and applied when switching to Chart view. |
user | dictionary | Read only (the dictionary itself is mutable). A dictionary of document-level user-defined attributes. Supports subscript read/write, del, key in obj, for key in obj, .keys(), .values(), and .items(). Use this for project-wide values (e.g. a grand total) that are not attached to any specific element. Example: document.user[‘budget’] = 50000.0 |
docUserDefinedAttributesVisible | boolean | True if the document’s user defined attributes are visible independently of the document’s userDefinedAttributesVisible setting. |
projectManagementGraphLabels | integer | Which project management labels are shown on entity and group shapes in graph view, as a bitmask of Application.PM_SHOWN_* flag constants. |
Methods
modifyAttribute( list, name, value )
Modify a particular built-in attribute
name(a string) tovaluefor every instance of GraphElem inlist, throwing an exception if any instance does not support the given name. The following attributes can be set with this method:
weightweightVisibleannotationVisibleoperatorentityClasssymbolcolorconfidencecompletionparentcollapseddeepCollapsed(This represents a pseudo-attribute that can deep collapse a group.)startDatefinishDateeffortresourceThe attributes
titleandannotationcannot be set via this method.
modifyUserAttribute( list, name, value )
Modify a particular user defined attribute
nametovaluefor every instance of GraphElem inlist.
hoistGroupFromSelection( )
Hoists the first group found in the current selection. If there are more than one group in the selection, it is ambiguous which will be hoisted.
hoistGroupToParent( )
If a group is hoisted, its parent group is hoisted instead, otherwise does nothing.
getElementByEid( eid )
Returns the element with the giveneidas an Entity, Junctor, Group or Edge instance, orNoneif no element has that ID. This is a direct lookup and does not searchall. All four kinds of element share one set of IDs. An element keeps itseidfor as long as it exists, including across save and reopen, and aneidis never reused while the document stays open; after a close and reopen, theeidof a deleted element may be assigned to a new element.
getEntityByEntityID( entityID )
Returns the Entity instance whose Entity ID isentityID, orNoneif there is no such entity. The Entity ID is the number shown on the canvas when Entity IDs are visible (theentityIDfield of an Entity), not itseid. For a positive number this is the same as afindfor that number with the optionsFIND_SEARCH_ENTITY_IDandFIND_WHOLE_WORDS_ONLY: while a group is hoisted, only entities inside it are found. Zero and negative numbers are never looked up and returnNone, because an entity with no Entity ID assigned has anentityIDof zero.
getEntitiesByEntityID( list )
Returns a dictionary mapping each Entity ID inlistthat was found to its Entity instance. Entity IDs that are not found are omitted, as are zero and negative numbers. Each Entity ID is resolved as bygetEntityByEntityID.
isSelected( elem )
Returns
Trueif the GraphElem elem is selected, otherwiseFalse.
selectAll( )
Selects every element in the graph.
clearSelection( )
Deselects every element in the graph.
addEntity( )
Adds a new entity to the graph with class
defaultEntityClass. If only one entity is currently selected, the new entity is connected to that selected entity per the setting ofaddEntityAsSuccessor. Returns a list of new elements, Entity instance first. To add an entity without auto-connecting it, callclearSelection()first or useaddEntityToTarget(None).
addEntity( entityclass )
Adds a new entity to the graph with class
entityclass. If only one entity is currently selected, the new entity is connected to that selected entity per the setting ofaddEntityAsSuccessor. Returns a list of new elements, Entity instance first. To add an entity without auto-connecting it, callclearSelection()first or useaddEntityToTarget(None).
addEntityToTarget( vertexElem )
Adds a new entity to the graph with class
selectedEntityClass. The newly created entity is connected to the givenvertexElemper the setting ofaddEntityAsSuccessor. IfvertexElemis None, does not connect the new entity to any element. Returns a list of new elements, Entity instance first.
addEntityToTarget( entityclass, vertexElem )
Adds a new entity to the graph with class
entityclass. The newly created entity is connected to the givenvertexElemper the setting ofaddEntityAsSuccessor. IfvertexElemisNone, does not connect the new entity to any element. Returns a list of new elements, Entity instance first.
insertEntity( )
Inserts a new entity to the graph with class
selectedEntityClass, but only if a single edge is selected, otherwise an exception is thrown. Returns a list of new elements, Entity instance first.
insertEntity( entityclass )
Inserts a new entity to the graph with class
entityclass, but only if a single edge is selected, otherwise an exception is thrown. Returns a list of new elements, Entity instance first.
insertEntityOnEdge( edge )
Inserts a new entity to the graph with class
selectedEntityClasson the given edge. Throws an exception ifedgeisNone. Returns a list of new elements, Entity instance first.
insertEntityOnEdge( entityclass, edge )
Inserts a new entity to the graph with class
entityclasson the given edge. Throws an exception ifedgeisNone. Returns a list of new elements, Entity instance first.
getDomainByName( name )
Return the Domain instance with the given name or None.
getEntityClassByName( name_or_tuple )
Return the EntityClass instance based on one of two matching criteria: if
name_or_tupleis a string, then the parameter is the name of an entity class to find (preference is given to a custom entity class if the are duplicate names); otherwise, ifname_or_tupleis a tuple, then the parameter must be the tuple(domain_name, entity_class_name)identifying an entity class (see also the Domain class methodgetEntityClassByName.)Examples:
entityclass = document.getEntityClassByName('Goal')
entityclass = document.getEntityClassByName( ('Prerequisite Tree', 'Milestone' ) )
print( )
Prints a document after displaying the print preferences dialog.
print( ask )
Prints a document. Displays the print preferences dialog if
askisTrue.
focusCanvas( )
Changes the current keyboard focus to the graph canvas.
toFront( )
Raises this document's window to the front of the window stack. The raise is deferred: it fires after the script returns, so it takes effect for the next script call rather than the current one. Use this at the end of a script that opens a second document to ensure that document is treated as the current document by the next script call.
cut( )
Performs a cut operation on the selected elements in the graph.
copy( )
Performs a copy operation on the selected elements in the graph.
paste( )
Pastes the graph elements from the last, still active, copy operation to the document.
deleteElements( list, recurse )
Deletes the graph elements inlist. This is exactlysetSelection( list )followed bydeleteSelection( recurse ), and behaves in every way as if those two methods had been called: the previous selection is replaced, and afterwards nothing is selected. IfrecurseisTrue, also deletes nested elements in any groups inlist; ifFalse, a group is removed and its contents are kept. An emptylistclears the selection and deletes nothing.
deleteSelection( recurse )
Deletes the currently selected graph elements. If
recurseisTrue, also deletes nested elements in selected groups.
newDomain( name )
Returns a new Domain instance with the given
name.
deleteDomain( domain )
Deletes the given
domain, automatically changing the class of any entity in the graph to defaultEntityClass if that entity’s class was part ofdomain.
deleteEntityClass ( entityclass )
Deletes the given entity class, automatically changing the class of any entity in the graph to defaultEntityClass if that entity’s class was
entityclass. This is same operation as:
entityclass.getDomain().deleteEntityClass(entityclass)
newGroup( )
Creates a new group containing all currently selected elements and returns a list of new elements, Group instance first.
newGroup( children )
Creates a new group containing all elements in children, which must be a list, and returns a list of new elements, Group instance first.
newSymbol( path, rect )
Creates a new symbol from the file at
pathclipped to therecttuple. IfpathisNone, the user is asked to select a file. IfpathorrectisNone, the Image Viewer dialog is shown. Therecttuple is (left, top, width, height).
newSymbolFromObject( obj, rect )
Creates a new symbol from
obj, whereobjcan either be an instance ofjava.awt.Image,javax.swing.ImageIconor a string of a SVG XML document, clipped to therecttuple. Therecttuple is (left, top, width, height).
deleteSymbol( symbol )
Deletes the symbol, fixing-up all entity classes and entities as needed.
isCustomSymbol( symbol )
Returns
Trueifsymbolis custom (not built-in).
connect( fromElem, toElem )
Connects an edge from the
fromElemto thetoElem, where the elements must be an entity, junctor or edge. Returns a list of new elements. RaisesScriptingExceptioniffromElemandtoElemare the same element — self-referencing edges are not supported (the UI does not allow them either).
reconnect( edge, part, element )
Reconnects one end of
edgeto a new element, wherepartindicates which end (see Edge Part Type in Application class). Returns a list of new elements.Prefer
reconnect()over deleting and re-creating an edge whenever you are reassigning an existing connection. Deleting an edge and callingconnect()creates a new edge object with no attributes, weight, or label — the original edge's state is lost.reconnect()moves the endpoint in place and preserves the edge object intact. This matters most when edges carry custom attributes or weights, such as in org-chart or scheduling diagrams.
saveDocument( )
Saves the document, asking the user to select a file only if the document has never been saved.
saveDocumentAs( path )
Saves the document to the file at
path, creating the file if necessary. IfpathisNone, the user is asked to select a file.
saveDocumentAsTemplate( path )
Saves the document as a template to the file at
path, creating the file if necessary. IfpathisNone, the user is asked to select a file.
exportDocument( kind, path, params )
Exports a document to a file of
kindatpathwith settings in theparamsdictionary. IfpathisNone, the user is asked to select a file. Thekindis one of the Export Types in the Application class. The keys and values inparamsare export kind dependent (see Image Export Type, OPML ExportType, and XSLT Import-Export Type for possible keys and values). RaisesScriptingExceptionifkindis not a recognizedApplication.EXPORT_*constant.
importDocument( kind, path, params )
Imports a document from a file of
kindatpathwith settings in theparamsdictionary. IfpathisNone, the user is asked to select a file. Thekindis one of the Import Types. The keys and values inparamsare export kind dependent (only XSLT import used params, XSLT Import/Export Types for possible keys and values). Returns either a new Document instance, if the import creates a new document, or this Document if not.
createResource( )
Creates and returns a new Resource instance with default values. If you change the values you must call updateResource.
createResource( name, abbreviation, units, calendar )
Creates and returns a new Resource instance with the given values. The
nameandunitsparameters must not beNone, butabbreviationandcalendarcan. If a resource with name already exists, the value “Copy of” prepended to name is used. IfcalendarisNone, the standard calendar is assigned to the new resource. Theunitsvalue is the resource's time-availability fraction — it has nothing to do with cost (Flying Logic does not track resource costs or rates).1.0means fully available (100%), and0.5means half-time. Aunitsvalue of0.0is valid but means the resource is excluded from scheduling — tasks assigned to it will be scheduled as if no resource were assigned, using the standard calendar. For a normally-utilized resource, pass1.0.
copyResource( resource )
Returns a copy of the given resource with name changed by prepending “Copy of”.
updateResource( resource )
Updates a Resource instance. Changes to resource instance do not take full effect until this method is called.
removeResource( resource )
Removes the given resource from the document.
getResourceByName( name )
Return the Resource instance with the given name, orNoneif no such resource exists.
resourceByName( name )
Deprecated. Use
getResourceByName( name )instead. Will be removed in a future release.
createCalendar( )
Creates and returns a new Workweek instance with default values. If you change the values you must call
updateCalendar.
createCalendar( name, workdays, workhours )
Creates and returns a new Workweek instance with the given values. The
nameparameter must not beNone, If a calendar withnamealready exists, the value “Copy of” prepended to name is used. Theworkdaysparameter must be a combination of day and week values and cannot be zero. Theworkhoursparameter must be between 1.0 and 23.0.
copyCalendar( calendar )
Returns a copy of the given
calendarwith name changed by prepending “Copy of”.
updateCalendar( calendar )
Updates a Workweek instance. Changes to
calendarinstance do not take full effect until this method is called.
removeCalendar( calendar )
Removes the given
calendarfrom the document.
getCalendarByName( name )
Return the Workweek instance with the givenname, orNoneif no such calendar exists.
calendarByName( name )
Deprecated. Use
getCalendarByName( name )instead. Will be removed in a future release.
resetStartTime( )
Resets the project start time to the start of the work day. Only applies when finish-to-start scheduling is set.
resetFinishTime( )
Resets the project finish time to the end of the work day. Only applies when start-to-finish scheduling is set.
closeDocument( ask )
Closes the document, asking the user for permission if
askisTrueand the document has been modified.
find( match, options )
Finds all graph elements that correspond to
matchwith the givenoptions(see Find Types in Application class). Both parameters are positional — passing them as keyword arguments raisesTypeError: find(): takes no keyword arguments.
selectSuccessors( )
Selects the immediate successors of all current selected entities and junctors, including any edge in-between. This functionality is different than in previous API versions and is now found in the
selectAllSuccessorsmethod documented below.
selectAllSuccessors( )
Selects the successors of all current selected entities and junctors (and their successors) including any edge in-between each.
selectPredecessors( )
Selects the immediate predecessors of all current selected entities and junctors, including any edge in-between. This functionality is different than in previous API versions and is now found in the
selectAllPredecessorsmethod documented below.
selectAllPredecessors( )
Selects the predecessors of all current selected entities and junctors (and their predecessors) including any edge in-between each.
selectEdgeHeadEntity( )
Selects the head entity of all current selected edges, including any edge or junctor in-between.
selectEdgeTailEntity( )
Selects the head entity of all current selected edges, including any edge or junctor in-between.
selectPathsBetweenEntities( )
Selects all elements between two selected entities.
reverseSelectedEdges( )
The head and tail elements of edge selected edge are swapped.
swapSelectedElements( )
If the two selected elements are of the same type, swaps them.
swapSelectedForwardAndBackEdges( )
Swaps the selected forward and back edges.
redactSelection( )
Redact the selected elements.
redactAll( )
Redact all elements.
importDomain( path )
Imports the domain from the file at
path.
saveDomainsAsDefaults( )
Saves the current custom domains as the defaults for future new documents.
eraseProjectManagement( )
Erases all project management information from the document, the same affect as:
document.startData = None
isSymbolInUse( symbol )
Return
Trueif a symbol is being used by an EntityClass or Entity.
getSymbolByName( name )
Returns the a Symbol instance matching the given
name. Symbol names are a generator name and an ID code separated by a colon. For example, the blue pentagon symbol iscom.arciem.symbol.FlowchartSymbolGenerator:pentagon. If name is “inherit” or “none”, the predefined special symbol valuesApplication.INHERIT_SYMBOLandApplication.NO_SYMBOL, respectively. A table with the names of the builtin symbols can be found in Graphic Symbol Names.
undo( )
Perform an undo operation if possible.
redo( )
Perform a redo operation if possible.
beginCoalesceUndo( name )
Causes all changes to a document in a script to be coalesced into one undo record under the given
name. This is done internally for each document accessed by a script, but can still be called to change the undo record’s name. The methodendCoalesceUndois called internally when the script terminates.
endCoalesceUndo( )
Closes and appends the current undo record to the undo stack, but only if there is anything to undo. A new undo record is automatically started, but it’s name can be changed by calling
beginCoalesceUndo.
recalculate()
Immediately performs a re-calculation of driven confidence values and project management data. These re-calculations are normally deferred until the script ends orendCoalesceUndois called as they can take a significant amount of time on large documents. Callrecalculate()mid-script only when you need to read a calculated value (such as a successor's confidence or a task's finish date) that depends on a mutation made earlier in the same script. Avoid calling it as a routine end-of-mutation step — the automatic deferral is intentional.
operateAll()
Deprecated. Use
recalculate()instead.
operate( operator, flags )
Operate on each element in a graph in acyclic order using
operator, an instance of a class derived from GraphOperator, with the types and order of elements determined byflags(see Operate Types in Application class.)
formatDate( date )
Returns a string representing the given
dateas formatted for a start or finish date.
calcFont( spec )
Calculates the ascent, descent and uppercaseHeight fields of the given FontSpec
specderived from the document environment.
getStringBounds( string, spec )
Calculates the bounds of the given
stringrendered with the given FontSpecspec. Returns a tuple (x, y, width, height).
truncateWithEllipsis(string, spec, width)
If the given
stringrendered the given FontSpecspecdoes not fit inwidth, returns the string truncated and an ellipsis added. Return the original string is it would fit.
findStaticFont( name )
Returns a FontSpec for the given UI usage
name, orNoneif no such font.
inHoist( elem )
Returns
Trueif the given GraphElemelemis in the current hoist; i.e., the current hoisted group is an ancestor of elem. Otherwise, returnsFalse.
isDocUserDefinedAttributesVisible()
Trueif the document's user defined attributes are visible either because this Document'sdocUserDefinedAttributesVisibleisTrueor the document’suserDefinedAttributesVisiblefor all setting isTrue, otherwiseFalse.