Book a Demo

Author Topic: RefreshModelView playing havoc with my script  (Read 2530 times)

Jayson

  • EA User
  • **
  • Posts: 363
  • Karma: +1/-0
    • View Profile
RefreshModelView playing havoc with my script
« on: August 15, 2014, 12:21:56 pm »
Hi all

I have written a script that:

1. Firstly creates some objects, and
2. Secondly creates a diagram and creates diagram objects based on those objects.

At the end of #1, if I call RefreshModelView my script goes totally haywire with seemingly some parts of the subsequent script executing and other parts not.

However, if I DON'T call RefreshModelView, when the script enters #2, it acts as if the elements have not yet been created.

Help!

Jays :-)

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: RefreshModelView playing havoc with my script
« Reply #1 on: August 15, 2014, 01:53:34 pm »
What type of 'objects' are you creating in step 1?  How are you creating them?  How are you then trying to reference them in step 2?  Can you provide code samples?