ObjectModel#
Generated reference
- Source file:
ansys/api/fluent/v1/object_model.proto- Proto package:
ansys.api.fluent.v1.object_model- Contains:
1 service, 58 messages, 2 enums
Services
Service: ObjectModel
ObjectModel service provides a way to access some Fluent features like meshing, workflow, preferences, and other specific areas. The rules string in each request selects the target feature area. Supported rules contexts are:
meshing_workflow: The most up-to-date, intuitive exposure of meshing workflow.meshing_utilities: Meshing queries and other utilities.solver_workflow: Solver workflows.preferences: Fluent preferences in both meshing and solution mode.workflow: Legacy exposure of the workflow component of meshing workflow.meshing: Legacy exposure of the meshing component of meshing workflow.part_management: Legacy exposure of the part management component of meshing workflow.pm_file_management: Legacy exposure of the part management - file-management component of meshing workflow.
Note: StreamStateChanges is not supported for the “meshing_workflow” context.
StreamStateChanges- Request:
- Response:
stream of StreamStateChangesResponse
Streams state changes and events. This method is not supported for the “meshing_workflow” rules context.
GetState- Request:
- Response:
Returns the current state at the specified path.
SetState- Request:
- Response:
Sets the state at the specified path.
UpdateDict- Request:
- Response:
Merges a dictionary of values into the state at the specified path.
CreateObject- Request:
- Response:
Creates a new named object at the specified path.
DeleteObject- Request:
- Response:
Deletes the object at the specified path.
GetAttributeValue- Request:
- Response:
Returns the value of a named attribute for the object at the specified path.
ExecuteCommand- Request:
- Response:
Executes a command on the object at the specified path.
ExecuteQuery- Request:
- Response:
Executes a query on the object at the specified path and returns the result.
CreateCommandArguments- Request:
- Response:
Creates a command arguments object for the specified command.
DeleteCommandArguments- Request:
- Response:
Deletes a created command arguments object.
GetSchema- Request:
- Response:
Returns the API schema describing the structure of the object model.
Rename- Request:
- Response:
Renames the object at the specified path.
FixState- Request:
- Response:
Fixes the state of the object at the specified path to ensure internal consistency.
GetObjectNames- Request:
- Response:
Returns the names of all objects at the specified path.
DeleteChildObjects- Request:
- Response:
Deletes all child objects of the parent object at the specified path.
SubscribeEvents- Request:
- Response:
Subscribes to one or more events.
UnsubscribeEvents- Request:
- Response:
Unsubscribes from subscribed events.
StreamEvents- Request:
- Response:
stream of StreamEventsResponse
Streams subscribed events.
Messages
StreamStateChangesRequest
StreamStateChangesRequest is the request message for initiating state streaming
rules(1)stringThe rules context for the streaming operation
return_state_changes(2)boolIf true, returns state changes in the stream.
diff_state(3)DiffStateThe level of detail for state differences
StreamStateChangesResponse
StreamStateChangesResponse is the streaming response containing state updates
state(1)VariantThe current state or state changes
deleted_paths(2)repeatedstringPaths of deleted objects
events(3)repeatedstringEvents that occurred
GetStateRequest
GetStateRequest is the request message for retrieving state
rules(1)stringThe rules context for the state query
path(2)stringThe path to retrieve state from
GetStateResponse
GetStateResponse is the response message containing the requested state
state(1)VariantThe state at the requested path
SetStateRequest
SetStateRequest is the request message for setting state
rules(1)stringThe rules context for the state update
path(2)stringThe path where state should be set
state(3)VariantThe new state to set
wait(4)boolIf true, waits for the operation to complete before returning.
SetStateResponse
SetStateResponse is the response message containing the updated state
state(1)VariantThe updated state after the operation
deleted_paths(2)repeatedstringPaths of deleted objects
UpdateDictRequest
UpdateDictRequest is the request message for updating a dictionary
rules(1)stringThe rules context for the update
path(2)stringThe path to the dictionary to update
merge_dict(3)VariantThe dictionary values to merge
wait(4)boolIf true, waits for the operation to complete before returning.
recursive(5)boolIf true, updates recursively.
UpdateDictResponse
UpdateDictResponse is the response message containing the updated state
state(1)VariantThe updated state after the dictionary merge
deleted_paths(2)repeatedstringPaths of deleted objects
CreateObjectRequest
CreateObjectRequest is the request message for creating a new named object
rules(1)stringThe rules context for the creation
path(2)stringThe path to the parent object
name(3)stringThe name of the new object to create
wait(4)boolIf true, waits for the operation to complete before returning.
CreateObjectResponse
CreateObjectResponse is the response message after creating a new named object
state(1)VariantThe updated state after creation
deleted_paths(2)repeatedstringPaths of deleted objects
DeleteObjectRequest
DeleteObjectRequest is the request message for deleting an object
rules(1)stringThe rules context for the deletion
path(2)stringThe path to the object to delete
wait(3)boolIf true, waits for the operation to complete before returning.
DeleteObjectResponse
DeleteObjectResponse is the response message after deleting an object
state(1)VariantThe updated state after deletion
deleted_paths(2)repeatedstringPaths of deleted objects
GetAttributeValueRequest
GetAttributeValueRequest is the request message for retrieving an attribute value
rules(1)stringThe rules context for the attribute query
path(2)stringThe path to the object
attribute(3)stringThe name of the attribute to retrieve
GetAttributeValueResponse
GetAttributeValueResponse is the response message containing the attribute value
result(1)VariantThe value of the requested attribute
ExecuteCommandRequest
ExecuteCommandRequest is the request message for executing a command
rules(1)stringThe rules context for command execution
path(2)stringThe path to the object with the command
command(3)stringThe name of the command to execute
wait(4)boolIf true, waits for the command to complete before returning.
args(5)VariantArguments to pass to the command
ExecuteCommandResponse
ExecuteCommandResponse is the response message containing command execution results
result(1)VariantThe return value from the command
state(2)VariantThe updated state after command execution
deleted_paths(3)repeatedstringPaths of deleted objects
ExecuteQueryRequest
ExecuteQueryRequest is the request message for executing a query
rules(1)stringThe rules context for query execution
path(2)stringThe path to the object with the query
query(3)stringThe name of the query to execute
args(4)VariantArguments to pass to the query
ExecuteQueryResponse
ExecuteQueryResponse is the response message containing query execution results
result(1)VariantThe return value from the query
CreateCommandArgumentsRequest
CreateCommandArgumentsRequest is the request message for creating command arguments
rules(1)stringThe rules context for the operation
path(2)stringThe path to the object with the command
command(3)stringThe name of the command
CreateCommandArgumentsResponse
CreateCommandArgumentsResponse is the response message containing the command ID
command_id(1)stringThe unique identifier for the created command arguments
DeleteCommandArgumentsRequest
DeleteCommandArgumentsRequest is the request message for deleting command arguments
rules(1)stringThe rules context for the operation
path(2)stringThe path to the object with the command
command(3)stringThe name of the command
command_id(4)stringThe unique identifier of the command arguments to delete
DeleteCommandArgumentsResponse
DeleteCommandArgumentsResponse is the response message for a delete command arguments operation
CommandArg
CommandArg contains information about a command argument
type(1)stringThe type of the argument
name(2)stringThe name of the argument
info(3)SchemaThe schema information for this argument.
help_string(4)stringHelp text for the argument
attrs(5)repeatedAttrsEntryAdditional attributes for the argument
doc_string(6)stringDocumentation string for the argument
CommandInfo
CommandInfo contains information about a command or query
return_type(1)stringThe return type of the command
args(2)repeated CommandArgThe arguments for the command
doc_string(3)stringDocumentation string for the command
Schema
Schema contains the static API description of objects, including types, parameters, commands, and queries.
named_objects(1)repeatedNamedObjectsEntryNamed objects within this object
singletons(2)repeatedSingletonsEntrySingleton objects within this object
parameters(3)repeatedParametersEntryParameters within this object
commands(4)repeatedCommandsEntryCommands available for this object
type(5)stringThe type of this object
command_info(6)CommandInfoInformation about the command (if this is a command)
queries(7)repeatedQueriesEntryQueries available for this object
query_info(8)CommandInfoInformation about the query (if this is a query)
help_string(9)stringHelp text for this object
attrs(10)repeatedAttrsEntryAdditional attributes for this object
GetSchemaRequest
GetSchemaRequest is the request message for GetSchema.
rules(1)stringThe rules context for the schema query.
GetSchemaResponse
GetSchemaResponse is the response message for GetSchema.
info(1)SchemaThe API schema for the object model.
CreatedEventRequest
CreatedEventRequest is used to subscribe to object creation events
parent_path(1)stringparent-path of the created object
child_type(2)stringtype of the created object
ModifiedEventRequest
ModifiedEventRequest is used to subscribe to object modification events
path(1)stringpath of the modified object
DeletedEventRequest
DeletedEventRequest is used to subscribe to object deletion events
path(1)stringpath of the deleted object
AffectedEventRequest
AffectedEventRequest is used to subscribe to object affected events
path(1)stringpath of the affected object
subtype(2)stringsubtype of the affected event
AttributeChangedEventRequest
AttributeChangedEventRequest is used to subscribe to attribute change events
path(1)stringpath of the object whose attribute is changed
attribute(2)stringname of the attribute
CommandAttributeChangedEventRequest
CommandAttributeChangedEventRequest is used to subscribe to command attribute change events
path(1)stringpath of the object whose command attribute is changed
command(2)stringname of the command
attribute(3)stringname of the attribute
CommandExecutedEventRequest
CommandExecutedEventRequest is used to subscribe to command execution events
path(1)stringpath of the object with the command
command(2)stringname of the command, deprecated since Fluent 2025 R2
ObjectModelEventRequest
ObjectModelEventRequest is a request to subscribe to specific events
rules(1)stringThe rules context for the event subscription
created_event_request(2)oneof event_request CreatedEventRequestSubscribe to creation events
modified_event_request(3)oneof event_request ModifiedEventRequestSubscribe to modification events
deleted_event_request(4)oneof event_request DeletedEventRequestSubscribe to deletion events
affected_event_request(5)oneof event_request AffectedEventRequestSubscribe to affected events
attribute_changed_event_request(6)oneof event_request AttributeChangedEventRequestSubscribe to attribute change events
command_attribute_changed_event_request(7)oneof event_request CommandAttributeChangedEventRequestSubscribe to command attribute change events
command_executed_event_request(8)oneof event_request CommandExecutedEventRequestSubscribe to command execution events
SubscribeEventsRequest
SubscribeEventsRequest is the request message for subscribing to events
event_requests(1)repeated ObjectModelEventRequestThe list of event subscriptions to register
EventSubscription
EventSubscription contains information about a subscribed event
tag(1)stringtag is used to identify a subscribed event in server. A subscribed event can later be unsubscribed. Unique identifier for the subscription
status(2)SubscriptionStatusThe status of the subscription
SubscribeEventsResponse
SubscribeEventsResponse is the response message containing subscription status
responses(1)repeated EventSubscriptionThe list of event subscriptions with their status
UnsubscribeEventsRequest
UnsubscribeEventsRequest is the request message for unsubscribing from events
tags(1)repeatedstringThe list of subscription tags to unsubscribe
UnsubscribeEventsResponse
UnsubscribeEventsResponse is the response message containing unsubscription status
responses(1)repeated EventSubscriptionThe list of unsubscribed events with their status
StreamEventsRequest
StreamEventsRequest is the request message for starting event streaming
CreatedEventResponse
CreatedEventResponse is the response message for object creation events
parent_path(1)stringparent-path of the created object
child_type(2)stringtype of the created object
child_name(3)stringname of the created object
ModifiedEventResponse
ModifiedEventResponse is the response message for object modification events
path(1)stringpath of the modified object
value(2)Variantvalue of the modified object
DeletedEventResponse
DeletedEventResponse is the response message for object deletion events
path(1)stringpath of the deleted object
AffectedEventResponse
AffectedEventResponse is the response message for object affected events
path(1)stringpath of the affected object
subtype(2)stringsubtype of the affected event
AttributeChangedEventResponse
AttributeChangedEventResponse is the response message for attribute change events
path(1)stringpath of the object whose attribute is changed
attribute(2)stringname of the attribute
value(3)Variantvalue of the attribute
CommandAttributeChangedEventResponse
CommandAttributeChangedEventResponse is the response message for command attribute change events
path(1)stringpath of the object whose command attribute is changed
command(2)stringname of the command
attribute(3)stringname of the attribute
value(4)Variantvalue of the attribute
CommandExecutedEventResponse
CommandExecutedEventResponse is the response message for command execution events
path(1)stringpath of the object with the command
command(2)stringname of the command
args(3)Variantcommand arguments
StreamEventsResponse
StreamEventsResponse is the streaming response containing events
tag(1)stringThe tag identifying the subscription that generated this event
rules(2)stringThe rules context for the event
created_event_response(3)oneof event_response CreatedEventResponseObject creation event
modified_event_response(4)oneof event_response ModifiedEventResponseObject modification event
deleted_event_response(5)oneof event_response DeletedEventResponseObject deletion event
affected_event_response(6)oneof event_response AffectedEventResponseObject affected event
attribute_changed_event_response(7)oneof event_response AttributeChangedEventResponseAttribute change event
command_attribute_changed_event_response(8)oneof event_response CommandAttributeChangedEventResponseCommand attribute change event
command_executed_event_response(9)oneof event_response CommandExecutedEventResponseCommand execution event
RenameRequest
RenameRequest is the request message for renaming an object
rules(1)stringThe rules context for the rename operation
path(2)stringThe path to the object to rename
new_name(3)stringThe new name for the object
wait(4)boolIf true, waits for the operation to complete before returning.
RenameResponse
RenameResponse is the response message after renaming an object
state(1)VariantThe updated state after the rename
deleted_paths(2)repeatedstringPaths of deleted objects
GetObjectNamesRequest
GetObjectNamesRequest is the request message for retrieving object names
rules(1)stringThe rules context for the query
path(2)stringThe path to retrieve object names from
GetObjectNamesResponse
GetObjectNamesResponse is the response message containing object names
names(1)repeatedstringThe list of object names at the specified path
ChildNames
ChildNames contains a list of child object names
names(1)repeatedstringThe list of child names
DeleteChildObjectsRequest
DeleteChildObjectsRequest is the request message for deleting child objects
rules(1)stringThe rules context for the deletion
path(2)stringThe path to the parent object
child_names(3)oneof var ChildNamesSpecific child names to delete
delete_all(4)oneof varboolIf true, deletes all child objects.
wait(5)boolIf true, waits for the operation to complete before returning.
DeleteChildObjectsResponse
DeleteChildObjectsResponse is the response message after deleting child objects
state(1)VariantThe updated state after deletion
deleted_paths(2)repeatedstringPaths of deleted objects
FixStateRequest
FixStateRequest is the request message for fixing the state of an object
rules(1)stringThe rules context for the fix operation
path(2)stringThe path to the object to fix
FixStateResponse
FixStateResponse is the response message after fixing state
state(1)VariantThe fixed state
deleted_paths(2)repeatedstringPaths of deleted objects during fix
Enumerations
DiffState (enum)
DiffState specifies the level of detail for state differences
DIFF_STATE_UNSPECIFIED(0)Unspecified diff state
DIFF_STATE_FULL(1)Full state including commands
DIFF_STATE_NOCOMMANDS(2)State without commands
SubscriptionStatus (enum)
SubscriptionStatus indicates the status of an event subscription
SUBSCRIPTION_STATUS_UNSPECIFIED(0)Unspecified subscription status
SUBSCRIPTION_STATUS_SUBSCRIBED(1)Successfully subscribed
SUBSCRIPTION_STATUS_UNSUBSCRIBED(2)Successfully unsubscribed