如何使用 FMPy 获取变量的单位?

How to get the unit of a variable with FMPy?

我正在尝试从模型变量中获取单位以存储为元数据。有没有办法获取变量的单位?

请看dump命令是怎么做的https://github.com/CATIA-Systems/FMPy/blob/439e0ea945286f2b717d28284af453a70ff64ec0/fmpy/util.py#L664