create_id
- compas_ghpython.utilities.create_id(component, name)[source]
Creates an identifier string using name and the ID of the component passed to it.
The resulting string can be used to store data elements in the global sticky dictionary. This can be useful when setting variable in a condition activated by a button.
- componentsghpythonlib.componentbase.executingcomponent
The components instance. Use self in advanced (SDK) mode and ghenv.Components otherwise.
- namestr
A user chosen prefix for the identifier.
- Returns
str – For example: somename55dd-c7cc-43c8-9d6a-65e4c8503abd