Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
The following python code works great to dump component names and values, until its used on a design which includes non-parametric components. In that case, fusion.py correctly reports 'RuntimeError: 3: this is not a parametric design" from _fusion.Component__get_modelParameters.
So, does anybody know how to tell if a component is not a parametric design, so as to avoid referencing the modelParameters property?
...
for comp in design.allComponents:
if comp.modelParameters:
for param in comp.modelParameters:
logger.print('Component: {} param: {} = {}'.format(comp.name,param.name,param.value))
Solved! Go to Solution.