SOLIDOS API - SolidosSetNodeParams
SolidosSetNodeParams(nodeHandle, dictionary) - Sets the values ??of the properties of a SOLIDOS item
- Input parameters
- nodeHandle (Dynamo: String, Visual Lisp: Entity Name) - the identifier of the object to be processed
- dictionary (Dictionary) - a dictionary (key, value), where:
- key - a string representing the name of the property to be set
- value - the value to be assigned to the property
- Output (Boolean) - indicates whether the property was changed or not
- Errors that may occur
-
InvalidHandle - a nodeHandle
- The property name is not valid, or is not from a SOLIDOS object.
- InvalidProperty - the property name is not valid, or is not present in the object.
- BadArgumentType - the value type is not compatible with the property type.
- NotSupportedType - the property is not recognized by Dynamo.
- ReadOnlyProperty - indicates that the property is read-only and cannot be changed.
Example of usage in Visual Lisp:
(setq device (handent "ADE87")
section (handent "FE638")
propertiesList (list
"Name" "PV 01"
"Section" section
"Description" "Poço de visita"
"Location" '(58.4 65.7 103.49)))
(SolidosSetNodeParams device propertiesList ) )
;T
Example usage in Dynamo:
device = "ADE87";
section = "FE638";
location = Point.ByCoordinates(58.4, 65.7, 103.49);
propertiesList = Dictionary.ByKeysValues(
["Name", "Section", "Description", "Location"],
["PV 01", section, "Poço de visita", location]);
SolidosAPI.SolidosSetNodeParams(device, propertiesList);
#true;