Click or drag to resize

WorksessionModel Properties

The WorksessionModel type exposes the following members.

Properties
  NameDescription
Public propertyAlias
The alias used to decorate names - layers, materials, and so on - that come from this model.
Public propertyAttachFailed
True if the most recent attempt to attach this model failed, which usually means the file is missing.
Public propertyFileTypeId
The id of the plug-in used to read the model's file.
Public propertyIsActiveModel
True if this is the worksession's active model - the document you are editing - rather than a reference model.
Public propertyIsAttached
True if the model's contents are currently attached to the document.
Public propertyPath
The full path to the model's file. This is empty for an active model that has never been saved.
Public propertySerialNumber
The reference model's serial number, which identifies this model in calls like Detach(UInt32). Zero means this is the worksession's active model.

Reference model serial numbers are unique across the application, not just within one document, so a serial number from another document's worksession will simply not be found rather than matching the wrong model.

Public propertyUpdateAvailable
True if the file on disk has changed since it was attached, so Update(UInt32) has something to do.

This is only filled in when the snapshot was taken with the file check enabled; see GetModels(Boolean). It is always false otherwise.

Top
See Also