Is there a way to know when a project is Duplicating in ANSYS ACT?

Options
Nick Ramseyer
Nick Ramseyer Member Posts: 18
First Comment

I am currently working on an ANSYS ACT object that uses the ExtAPI.Graphics module to create persistent graphics in a model. I went to duplicate my model in the workbench project page and got a timeout error preventing the project from duplicating:

I went through the object a managed to isolate the issue to the Graphics module. Essentially the Graphics on the object get built when the object is initialized (Through the on_init callback). If I suppress this function, then the module can duplicate without issues.

Is there a way to check in code if a model is being duplicated so I can ignore the graphics generating for this scenario? I tried storing the working directory and comparing it to the new working directory, but it appears the graphics are called and cause the bug prior to the new directory being used.

On other extensions the graphics are called from "on show", but I need the graphics to initialize when the project is opened.

Tagged:

Answers

  • Mike.Thompson
    Mike.Thompson Member, Employee Posts: 279
    First Anniversary First Comment 5 Likes Ansys Employee
    Options

    @Nick Ramseyer , please submit a support request for this to ensure the defect is corrected.
    For a work around you can copy the .mechdb file for that mechanical system and then import it to the project schematic (change extension to mechdat).