Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Wade Brooks on October 04, 2014, 02:48:40 pm

Title: adding <cstdint>  dasta types to Cpp data types.
Post by: Wade Brooks on October 04, 2014, 02:48:40 pm
I need to add the data types from <cstdint> to EA C++ data types. I need to do this in many models and some future models.   Is there a way to do this from the API?   of from am XML export/import?  
Thanks for any suggestions on how to automate this!
Title: Re: adding <cstdint>  dasta types to Cpp data types.
Post by: qwerty on October 04, 2014, 04:19:55 pm
You could manipulate t_datatypes with Repository.Execute("INSERT..."). The structure is rather easy to understand.

There might be a way to import them via Project/Im-/Export/Reference Data but I could not find the corresponding entry on the fly.

q.
Title: Re: adding <cstdint>  dasta types to Cpp data types.
Post by: Paul Lotz on October 11, 2014, 03:57:15 am
I have created datatypes for an unsupported language using the import/export reference data path.  I have not attempted to modify types for existing languages.