get_component_variables#

Q2d.get_component_variables(name: str | Path) dict#

Read component file and extract variables.

Parameters:
namestr or pathlib.Path

Name of the 3D component, which must be in the syslib or userlib directory. Otherwise, you must specify the full absolute path to the component file.

Returns:
dict

Dictionary of variables in the component file.