create_placeholder_from_actor_property#
- TcpOslServer.create_placeholder_from_actor_property(actor_uid: str, property_name: str, placeholder_id: str | None = None, create_as_expression: bool = False) str#
Create a placeholder from an actor property.
Note
Method is supported for Ansys optiSLang version >= 26.1 only.
- Parameters:
- actor_uid
str Unique identifying actor of the object.
- property_name
str Name of the actor property to create placeholder from.
- placeholder_id
Optional[str],optional Desired placeholder ID, by default
None.- create_as_expressionbool,
optional Whether to create the placeholder as an expression, by default
False.
- actor_uid
- Returns:
strID of the created placeholder.
- Raises:
OslCommunicationErrorRaised when an error occurs while communicating with server.
OslCommandErrorRaised when the command or query fails.
TimeoutErrorRaised when the timeout float value expires.