6 Replies Latest reply on Jul 15, 2016 1:03 AM by Brad Phelan

    How to "silently" save an IBody2 as IGES

    Brad Phelan

      I have an IBody2 object which I would like to export in IGES format so that a third party library can process it.

       

      My attempt at doing this is as follows

      and

       

      The problem is that a hidden document can't be activated and iges can only work if the document is active. The code only works if I set hidden to false.

       

       

      Is there any way around this? I don't want documents popping up and disappearing.

       

      The raw source code for SaveAsIges and CreateHiddenDocument are here.