I am trying to use the example script ‘Import_physical_components_from_xlsx’. I am using it exactly as provided, the script correctly makes a physical component for each cell in the excel but they all have the default name (PC number) and do not use the name from the cell as defined in the line:
I added a debug line of code to check that the name was being written:
Which showed that the variable pc has been given the name, but it is not being used when the element in the model is created. So I wondered if it is an issue with this line
I also added pc.set_summary(cell.value), which correctly put the cell value as the physical component summary.
As it is using the sample script out of the box I thought my setup was wrong, but cannot see anything. Does anyone have any advice on what could be the issue or what I could do to further debug this?
Thanking anyone who can help me with this.