Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi forum,
I've had a problem with my iLogic code for a while now.
Inside a assembly i change the orientation of a part, after that i want to save the assembly as step and write it to a local disk. The value for the orientation change comes from a Excel document, see the code below.
d2 = GoExcel.CellValue(Excelfile, "Sheet1", "B5")
iLogicVb.UpdateWhenDone = True
Stepfilename = Excelnamevalue
ThisDoc.Document.SaveAs("C:\Data\Output\" & Stepfilename & ".stp", True)
When i look at the model executing the code everything looks fine and the orientation changes. But when i open the saved stepfile the orientation hasn't changed and is still the same as it was.
It is as if the saving of the file happends before the iLogicVB.UpdateWhenDone is fully executed, for some reason.
Maybe a delay could fix this? any ideas or suggestions?
Solved! Go to Solution.