Book a Demo

Author Topic: VBScript write to Elements GenFile property  (Read 4274 times)

dschmid2

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
VBScript write to Elements GenFile property
« on: March 31, 2010, 05:14:03 pm »
I was writing a VBScript to modify the GenFile property of my C++ classes. Actually my goal is to replace the %VAR1% part with another variable name over all the classes in a package.

I figured that the property is changed in during script live time, but as soon as script ends, when checking in the Properties window, there was again the old value...

Anybody else noticed this?
I'll report it also as a bug..
Using EA 9.1.909 on Win7, C++ Code Generation

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: VBScript write to Elements GenFile property
« Reply #1 on: March 31, 2010, 06:33:35 pm »
You didn't forget to update() the elements after changing the genfile property?

Geert