Book a Demo

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - avantol13-2

Pages: [1]
1
General Board / Calling built-in EA operations within Add-in
« on: October 21, 2014, 05:30:30 am »
How does one call "Code Engineering - Generate Code..." on the currently selected element from within an add-in? Is this even possible or do you have to access those operations from directly inside EA?

Thanks!
Alex

2
Automation Interface, Add-Ins and Tools / Problem creating packages
« on: November 07, 2014, 02:30:49 am »
I just want to create a package underneath another package.

Code: [Select]
// Get the current package.
EA.Package package = repository.GetTreeSelectedPackage();
            
// Add a new package.
EA.Package newPackage= (EA.Package)repository.Models.AddNew("New Package Name", "Package");
newPackage.ParentID = package.PackageID;
newPackage.Update();

I get a package but it's at the root level and not under the package I have selected in the project browser.

Thanks,
Alex

3
How can I force generation using a specific language? e.g. change the "language" field in package or class properties.

Thanks,
Alex

4
Hello all,

I'd like to export the current code generation template for the C language, import a custom template (do some other unrelated stuff), then re-import the original C language template.

I've been digging into the API and have found methods to import files and directories to populate the model, but nothing for this reference data. :( Anyone know where I should be looking in the API?

Thanks,
Alex

Pages: [1]