Document Class | 
Namespace: Demo3D.Visuals
public class Document : IPackageTarget, IDisposable
The Document type exposes the following members.
| Name | Description | |
|---|---|---|
| App | The application hosting the document.  | |
| Cameras | 
            The collection of views in the model.
            This is a mapping of string names to Camera objects.
              | |
| Connections | 
            Tag Server connections (if available).
              | |
| DefaultCamera | 
            The name of the default View when loading or saving (looked up in Cameras).
              | |
| DocumentEdition | 
            The edition that the document was last saved in.
              | |
| EventLogPath | 
            Log events to this file, if null don't log events.
              | |
| EventQueue | 
            The simulation dispatcher for scheduling asynchronous or future actions.
              | |
| Experiments | 
            The collection of experiments in Sim3D that can be run in batch.
              | |
| IsExperimentRunning | 
            Is an experiment currently running?
              | |
| IsResetting | 
            Is the document currently being reset.
              | |
| Lights | 
            Find all the LightVisual visuals in the Scene.
              | |
| LoadedHeader | This will only be set for documents that have been loaded from disk  | |
| MechanismsManager | ||
| Name | 
            The file name of the document without the extension.
              | |
| NeedsSave | 
            Whether the current document has been modified and needs saving.
              | |
| PackageTargetName | ||
| Scene | 
            The top level SceneVisual.
              | |
| TagImporterFileName | 
            The path to the tag server definitions file used when Import is pressed in the TagBrowser.
            This is equivalent to TagImporterProperties.FileName.
              | |
| Telegrams | 
            Telegrams for high level emulation.
              | |
| TextureManager | ||
| Time | 
            The current simulation time.
              | |
| UndoRedoManager | 
            The undo manager used to control undo's and redo's.
              | |
| UserVars | 
            Temporary place for scripting to place variables, that will survive across resets. These values
            are *not* to be serialized.
              | |
| Visual | 
            Top-level visual for the document
              | |
| Visuals | 
            Use an enumerator to walk the scene tree.
              | 
| Name | Description | |
|---|---|---|
| CreateVisual(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.
              | |
| CreateVisual(VisualFactory) | 
            Create a visual given a visual factory.
            This is mostly used to create specific visuals from catalogs.
              | |
| CreateVisual(XmlDocument) | 
            Create a single visual from an XmlDocument.
              | |
| CreateVisualT | 
            Create a new visual of a given type such as BoxVisual.
              | |
| CreateVisualFromSerialized | 
            Create a single visual from a serialized version of the visual.
              | |
| CreateVisuals | 
            Create all visuals from an XML Document.
              | |
| DestroyVisual | 
            Delete this visual and remove it from the document.
              | |
| Error | 
            Log an error message.
              | |
| ExportFrictionMatrix(String) | ||
| ExportFrictionMatrix(FrictionConfiguration, String) | ||
| FindAnyVisual | 
            Find Visual by name, return one of them if there are multiple visuals,
            but do not warn if there are more than one.
              | |
| FindCreateVisual | 
            Attempt to find a child of the parent visual with the specified name. If it fails to find one, create one instead.
              | |
| FindLayer | 
            Find a layer by name.
              | |
| FindType(Type) | 
            Enumerate all visuals of a specified type.
              | |
| FindType(Type, Boolean) | 
            Enumerate all visuals of a specified type.
              | |
| FindTypeT | 
            Enumerate all visuals of a specified type.
              | |
| FindUserResource(String) | 
            Gets the UserResource instance with the specified path within this document's user resources.
              | |
| FindUserResource(UserResourceReference) | 
            Gets the UserResource instance with the specified UserResourceReference within this document's user resources.
              | |
| FindVisualByName | 
            Find the first visual in the document scene with a given name.
              | |
| FindVisualsByName | 
            Find all the visuals in the document scene with a given name.
              | |
| GetLayer | 
            Find or create a layer by name.
              | |
| GetPackageManager | ||
| ImportFrictionMatrix | ||
| ImportTags | 
            Load tag definitions and server configurations from disk.
            The path used is TagImporterFileName (equivalent to TagImporterProperties.FileName).
              | |
| Info | 
            Log an info message.
              | |
| LogEvent | 
            Output event diagnostics to the current EventLogPath if not null.
              | |
| Look(Vector3, Vector3) | 
            Find the first visual from a location and in a direction.
              | |
| Look(Vector3, Vector3, DocumentLookOptions) | 
            Find the first visual from a location and in a direction with given DocumentLookOptions.
              | |
| LookDown(Vector3) | 
            Find the first visual below the lookFrom world location.
              | |
| LookDown(Visual) | 
            Find the first visual below the lookFrom visual.
              | |
| LookDown(Vector3, DocumentLookOptions) | 
            Find the first visual below the lookFrom world location with the given DocumentLookOptions.
              | |
| LookDown(Visual, DocumentLookOptions) | 
            Find the first visual below the lookFrom visual with the given DocumentLookOptions.
              | |
| PurgeLayers | 
            Remove all unused layers from the document.
              | |
| PurgePortsProperties | 
            Reset legacy "Ports" property for all visuals.
              | |
| PurgeScripts | 
            Remove all unused scripts from the document.
              | |
| Run(Action) | 
            Schedule an action to be called in the current time-step.
              | |
| Run(FuncIEnumerable) | 
            Schedule a coroutine to be called in the current time-step.
              | |
| Run(Delegate, Object) | 
            Schedule a delegate to be called with given arguments in the current time-step.
              | |
| Run(Double, Action) | 
            Schedule an action to be called after a delay in simulation time.
              | |
| Run(Double, FuncIEnumerable) | 
            Schedule a coroutine to be called after a delay in simulation time.
              | |
| Run(Double, Delegate, Object) | 
            Schedule a delegate to be called with given arguments after a delay in simulation time.
              | |
| RunT(FuncT, IEnumerable, T) | 
            Schedule a coroutine to be called in the current time-step.
              | |
| RunT(Double, FuncT, IEnumerable, T) | 
            Schedule a coroutine to be called after a delay in simulation time.
              | |
| RunT1, T2(FuncT1, T2, IEnumerable, T1, T2) | 
            Schedule a coroutine to be called in the current time-step.
              | |
| RunT1, T2(Double, FuncT1, T2, IEnumerable, T1, T2) | 
            Schedule a coroutine to be called after a delay in simulation time.
              | |
| RunT1, T2, T3(FuncT1, T2, T3, IEnumerable, T1, T2, T3) | 
            Schedule a coroutine to be called in the current time-step.
              | |
| RunT1, T2, T3(Double, FuncT1, T2, T3, IEnumerable, T1, T2, T3) | 
            Schedule a coroutine to be called after a delay in simulation time.
              | |
| RunT1, T2, T3, T4(FuncT1, T2, T3, T4, IEnumerable, T1, T2, T3, T4) | 
            Schedule a coroutine to be called in the current time-step.
              | |
| RunT1, 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.
              | |
| Save | 
            Save the current document to disk with a thumbnail based on the Default view.
              | |
| Save(Image) | 
            Save the current document to disk with a custom thumbnail.
              | |
| Start | 
            Schedule a coroutine to be called in the current time-step.
              | |
| UpdateCAD | 
            Check if imported CAD has changed and re-import.
              | |
| Warning | 
            Log a warning message.
              | 
| Name | Description | |
|---|---|---|
| OnDetachDebugger | ||
| ResetListeners | 
            Occurs when the document is reset.
              | 
| Name | Description | |
|---|---|---|
| FileExtension | The file extension to be used for documents including the '.'/period.  | |
| FileExtensionXml | The file extension to be used for documents in source control format including the '.'/period.  | |
| Path | Filename for this document, empty for a new or unsaved document.  | 
| Name | Description | |
|---|---|---|
| RunAsync(Action) | Overloaded. (Defined by ModelInvokeExtensions.) | |
| RunAsync(ActionObject, Object) | Overloaded. (Defined by ModelInvokeExtensions.) | |
| RunAsyncTResult(FuncTResult) | Overloaded. (Defined by ModelInvokeExtensions.) | |
| RunAsyncTResult(FuncObject, TResult, Object) | Overloaded. (Defined by ModelInvokeExtensions.) |