Book a Demo

Author Topic: Elemnt creation with autoname  (Read 4358 times)

Yves C

  • EA User
  • **
  • Posts: 33
  • Karma: +1/-1
  • I love YaBB 1G - SP1!
    • View Profile
Elemnt creation with autoname
« on: November 15, 2010, 10:19:10 pm »
I'm trying to add elements in a model using the autonum capability but the only method I've found to create an element is Collection.AddNew which takes only two parameters : a Name and a Type.
I've not found any method to get/increase the autoname counter for a given type.
Is there a possibility to manage those counters via the API ?
Yves

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Elemnt creation with autoname
« Reply #1 on: November 15, 2010, 11:42:59 pm »
Yves,

I thin you'll have to manage the naming yourself when you are using the API.

Geert