Click or drag to resize

Document Methods

The Document type exposes the following members.

Methods
  NameDescription
Public methodCreateVisual(String)
Create a visual given a visual factory name. This can be a type such as "BoxVisual" or a name of a catalog component loaded into the current application.
Public methodCreateVisual(VisualFactory)
Create a visual given a visual factory. This is mostly used to create specific visuals from catalogs.
Public methodCreateVisual(XmlDocument)
Create a single visual from an XmlDocument.
Public methodCreateVisualT
Create a new visual of a given type such as BoxVisual.
Public methodCreateVisualFromSerialized
Create a single visual from a serialized version of the visual.
Public methodCreateVisuals
Create all visuals from an XML Document.
Public methodDestroyVisual
Delete this visual and remove it from the document.
Public methodError
Log an error message.
Public methodExportFrictionMatrix(String)
Public methodStatic memberExportFrictionMatrix(FrictionConfiguration, String)
Public methodFindAnyVisual
Find Visual by name, return one of them if there are multiple visuals, but do not warn if there are more than one.
Public methodFindCreateVisual
Attempt to find a child of the parent visual with the specified name. If it fails to find one, create one instead.
Public methodFindLayer
Find a layer by name.
Public methodFindType(Type)
Enumerate all visuals of a specified type.
Public methodFindType(Type, Boolean)
Enumerate all visuals of a specified type.
Public methodFindTypeT
Enumerate all visuals of a specified type.
Public methodCode exampleFindUserResource(String)
Gets the UserResource instance with the specified path within this document's user resources.
Public methodCode exampleFindUserResource(UserResourceReference)
Gets the UserResource instance with the specified UserResourceReference within this document's user resources.
Public methodFindVisualByName
Find the first visual in the document scene with a given name.
Public methodFindVisualsByName
Find all the visuals in the document scene with a given name.
Public methodGetLayer
Find or create a layer by name.
Public methodGetPackageManager
Public methodImportFrictionMatrix
Public methodImportTags
Load tag definitions and server configurations from disk. The path used is TagImporterFileName (equivalent to TagImporterProperties.FileName).
Public methodInfo
Log an info message.
Public methodLogEvent
Output event diagnostics to the current EventLogPath if not null.
Public methodLook(Vector3, Vector3)
Find the first visual from a location and in a direction.
Public methodLook(Vector3, Vector3, DocumentLookOptions)
Find the first visual from a location and in a direction with given DocumentLookOptions.
Public methodLook(Vector3, Vector3, Int32)
Find the first visual from a location and in a direction with given DocumentLookOptions.
Public methodLookDown(Vector3)
Find the first visual below the lookFrom world location.
Public methodLookDown(Visual)
Find the first visual below the lookFrom visual.
Public methodLookDown(Vector3, DocumentLookOptions)
Find the first visual below the lookFrom world location with the given DocumentLookOptions.
Public methodLookDown(Vector3, Int32)
Find the first visual below the lookFrom world location with the given DocumentLookOptions.
Public methodLookDown(Visual, DocumentLookOptions)
Find the first visual below the lookFrom visual with the given DocumentLookOptions.
Public methodLookDown(Visual, Int32)
Find the first visual below the lookFrom visual with the given DocumentLookOptions.
Public methodPurgeLayers
Remove all unused layers from the document.
Public methodPurgePortsProperties
Reset legacy "Ports" property for all visuals.
Public methodPurgeScripts
Remove all unused scripts from the document.
Public methodRun(Action)
Schedule an action to be called in the current time-step.
Public methodRun(FuncIEnumerable)
Schedule a coroutine to be called in the current time-step.
Public methodRun(Delegate, Object)
Schedule a delegate to be called with given arguments in the current time-step.
Public methodRun(Double, Action)
Schedule an action to be called after a delay in simulation time.
Public methodRun(Double, FuncIEnumerable)
Schedule a coroutine to be called after a delay in simulation time.
Public methodRun(Function, Object)

FOR INTERNAL USE ONLY.

Schedule a function to be called with given arguments after a delay in simulation time.
Public methodRun(Double, Function, Object)

FOR INTERNAL USE ONLY.

Schedule a function to be called with given arguments after a delay in simulation time.
Public methodRun(Double, Delegate, Object)
Schedule a delegate to be called with given arguments after a delay in simulation time.
Public methodRunT(FuncT, IEnumerable, T)
Schedule a coroutine to be called in the current time-step.
Public methodRunT(Double, FuncT, IEnumerable, T)
Schedule a coroutine to be called after a delay in simulation time.
Public methodRunT1, T2(FuncT1, T2, IEnumerable, T1, T2)
Schedule a coroutine to be called in the current time-step.
Public methodRunT1, T2(Double, FuncT1, T2, IEnumerable, T1, T2)
Schedule a coroutine to be called after a delay in simulation time.
Public methodRunT1, T2, T3(FuncT1, T2, T3, IEnumerable, T1, T2, T3)
Schedule a coroutine to be called in the current time-step.
Public methodRunT1, T2, T3(Double, FuncT1, T2, T3, IEnumerable, T1, T2, T3)
Schedule a coroutine to be called after a delay in simulation time.
Public methodRunT1, T2, T3, T4(FuncT1, T2, T3, T4, IEnumerable, T1, T2, T3, T4)
Schedule a coroutine to be called in the current time-step.
Public methodRunT1, T2, T3, T4(Double, FuncT1, T2, T3, T4, IEnumerable, T1, T2, T3, T4)
Schedule a coroutine to be called after a delay in simulation time.
Public methodSave
Save the current document to disk with a thumbnail based on the Default view.
Public methodSave(Image)
Save the current document to disk with a custom thumbnail.
Public methodStart
Schedule a coroutine to be called in the current time-step.
Public methodUpdateCAD
Check if imported CAD has changed and re-import.
Public methodWarning
Log a warning message.
Top
Extension Methods
See Also