Is this Possible Even!?!?!?

Hi all,

       I am currently developing a code which will read a nodal temperature value. This value is displayed in the immediate window. Then another study is performed in the loop and the nodal value is displayed again and so on. Is there a way to have the value be exported to a column in an Excel sheet for each loop? I have looked at several sensor output related forums and none of them tend to output the values. 

Any sort of help such as links to websites, sample code, or ideas would be greatly appreciated.

Thanks

SolidworksApi/macros
Answers 4
WM
WM 2021-03-26 Best Answer

Here is thread on getting sim results for face of component and save to txt file.

https://forum.solidworks.com/thread/242529

KT
KT 2021-03-26

I have tried this. I couldn't get much assistance out of it, though it was a good idea. The sample macro I recorded was pretty short and I was happy to be able to understand it. Yet overall, I think I'm still in the same spot. 

RS
RS 2021-03-26

Record a macro in an Excel file. Then go to edit it and look at the references required for Excel API. Include those in your SW macro and you will be able to create Excel objects and interface with them.

KT
KT 2021-03-26

That is very helpful, thank you . I am going to try and see if I can modify it to go to Excel instead of the txt file.