Scene#
- class ansys.dynamicreporting.core.serverless.item.Scene(*args, **kwargs)#
Bases:
FilePayloadMixin,ItemItem representing a 3D scene or geometry payload.
Methods
Scene.add_tag(tag[, value])Add or update a single tag.
Scene.as_dict([recursive])Serialize the model into a plain dictionary.
Scene.create(**kwargs)Factory-style creation that dispatches to the correct subclass.
Delete the payload file and then the ORM instance.
Scene.filter(**kwargs)Return a collection of items, scoped by subclass type.
Scene.find([query])Search for items using an ADR query string.
Scene.get(**kwargs)Retrieve a single item instance, scoped by subclass type.
Return the raw tag string stored on this object.
Reset the in-memory ORM state for this object.
Scene.rem_tag(tag)Remove a tag by key, if it exists.
Scene.remove_tag(tag)Alias for
rem_tag()for backwards compatibility.Scene.render(*[, context, request])Render the item as HTML.
Scene.save(**kwargs)Save the 3D scene payload and ensure derived geometry is built.
Scene.set_tags(tag_str)Replace all tags with the given tag string.
Attributes
Validated 3D scene or geometry file content for this item.
Dataset associated with this item.
Database alias in which this object is stored.
File extension of the payload file, without the leading dot.
Absolute path to the payload file, if available.
Whether a payload file exists on disk.
Human-readable name for the item.
Whether this object has been successfully saved to the database.
Sequence index for ordering items within a dataset/session.
Session that owns this item.
Optional free-form source identifier for this item.
Tag string used to group and filter objects.
Item type identifier for scene items.
Timestamp when the item was created.
Globally unique identifier for this object.
- exception DoesNotExist(extra_detail: str = None)#
Bases:
DoesNotExist
- exception IntegrityError(extra_detail: str = None)#
Bases:
IntegrityError
- exception MultipleObjectsReturned(extra_detail: str = None)#
Bases:
MultipleObjectsReturned
- content: SceneContent = None#
Validated 3D scene or geometry file content for this item.
- save(**kwargs)#
Save the 3D scene payload and ensure derived geometry is built.
- Parameters:
- **kwargs
Keyword arguments forwarded to the database
savemethod of the underlying ORM instance. For eg: Theusingargument can be used to select the target database alias.
- Raises:
IntegrityErrorIf the database reports an integrity violation while saving.
InvalidFieldErrorIf invalid field names or values are supplied (via decorator).
ExceptionAny other unexpected exception is propagated unchanged.