create_placeholder_from_property#
- abstractmethod IntegrationNode.create_placeholder_from_property(property_name: str, placeholder_id: str | None = None, create_as_expression: bool = False, expression: str | None = None) str #
Create a placeholder from a node property.
Note
Method is supported for Ansys optiSLang version >= 26.1 only.
- Parameters:
- property_name
str
Name of the node 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
.- expression
Optional
[str
],optional
Custom macro expression for the placeholder, by default
None
.
- property_name
- Returns:
str
ID of the created placeholder.
- Raises:
OslCommunicationError
Raised when an error occurs while communicating with server.
OslCommandError
Raised when the command or query fails.
TimeoutError
Raised when the timeout float value expires.