Hi!
I have assembly with over 100 sub assemblies. I need to export the COG for each sub assembly to excel. The COG must be in relation to the parent assembly's origin point.
I can get coordinates manualy (right click on sub assembly - iProperties-Phisical), but it is take a lots of time. Any idea how to make it easy!
Thanks for your time
Please try the attached rule, and create one excel file and reset the location of excel in code before running the code.
Hope it helpful for you!
Thanks,
River
Thanks a lot for your reply! I am not so good in programing, but all the time I get an error massage -
"Uspesifisert feil (Exception from HRESULT: 0x80004005 (E_FAIL))"
And what I have to say - that in excel file after I run the rule saved columns names.
It really works fine for me! Could you send me the dataset @ river-yijiang.cai@autodesk.com? That I could use the dataset to investigate this issue.
Thanks,
River
Before adding the attached rule in iLogic, please create one excel file for COG like "D:\bb.xlsx".
Copy and paste the attached rule in iLogic, and please update the location of excel file in code line.
Run the rule, and it should work fine.