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.


Messages - 1c3m4n

Pages: [1] 2
1
Automation Interface, Add-Ins and Tools / Re: Recursive search package
« on: November 11, 2010, 11:34:00 pm »
Problem solved !

2
Automation Interface, Add-Ins and Tools / Recursive search package
« on: November 11, 2010, 08:43:35 pm »
Hi,

i want so do a recursive search of a package to get a list of all childpackages and all childelements.
Have anybody done this before? What is the best solution for this?

Thanks

Best regards,
Florian

3
If anybody is interested in this, i have found a solution:

I replaced all \t with "    " (4 spaces) in the C# code template. Now it doesn't create any tabs.

Best regards,
Florian

4
Automation Interface, Add-Ins and Tools / C# code generation: Avoid tabs?
« on: November 05, 2010, 06:36:11 pm »
Hello,

do you know if it is possible to avoid tabs at the C# code generation? I want to use 4 spaces instead of a tab.
How can i set this?

Thanks !

Best regards,
Florian

5
Automation Interface, Add-Ins and Tools / Re: Refresh selected Item
« on: October 29, 2010, 06:13:54 pm »
Hi Geert,

thank you. Now i have the solution:

My old method: ShowDialog() -> This is modal.

Now i use Show() -> This is not modal. Now it is possible to choose another item of the tree while the GUI of the addin is open.

Best regards,
Florian

6
Automation Interface, Add-Ins and Tools / Refresh selected Item
« on: October 29, 2010, 01:24:36 am »
Hello,

i have created a addin with a GUI. The GUI needs the EA tree selected item to work with it.
I want to make a button with a refresh function: I want to click in the tree and selected another item, then i want to click on the button to refreseh the selected item.
But i have one problem: I'm not able to click in the tree while the addin is opened.

I checked the settings of the GUI (e.g. topmost), but i can't find something which locks the window.

What can i do?

Thanks.

Cheers,
Florian

7
Thanks !!!

8
Hi,

is it possible to generate a RTF report of a package via C# Addin?

Thanks !

Cheers,
Florian

9
Automation Interface, Add-Ins and Tools / Re: Check project authors
« on: October 20, 2010, 08:08:17 pm »
Quote
PS. I hate EA.Collection >:(

I agree :)

10
Automation Interface, Add-Ins and Tools / Re: Check project authors
« on: October 20, 2010, 07:32:58 pm »
Thank you very much !!!

I got an error message with the use of your solution. I modified your code, now it works.

Here it is:

Code: [Select]
// Author nicht vorhanden -> neu anlegen
Log = "Project Author nicht vorhanden";
oberflaeche.vSetMessage(Log);
EA.Author newAuthor = repository.Authors.AddNew("Project Author", "Author") as EA.Author;
newAuthor.Update();

11
Automation Interface, Add-Ins and Tools / Re: Check project authors
« on: October 20, 2010, 07:22:57 pm »
Ok, here is the snippet which should create the new author:

Code: [Select]
// Author nicht vorhanden -> neu anlegen
Log = "Project Author nicht vorhanden";
oberflaeche.vSetMessage(Log);
repository.Authors.AddNew("Project Author", "Author");
repository.Authors.Refresh();

12
Automation Interface, Add-Ins and Tools / Re: Check project authors
« on: October 20, 2010, 07:17:54 pm »
I have tried this, but it doesn't create a new author.

13
Automation Interface, Add-Ins and Tools / Re: Check project authors
« on: October 20, 2010, 06:53:18 pm »
Hi Geert,

thank you, i have already tried this. The AddNew function has 2 arguments:

string name: The name of the new project athor?
string type: What does this mean?

Cheers,
Florian

14
Automation Interface, Add-Ins and Tools / Re: Check project authors
« on: October 20, 2010, 12:23:55 am »
I have solved the problem. Now i want to create a new project author. How can i do this?

15
Automation Interface, Add-Ins and Tools / Check project authors
« on: October 19, 2010, 11:11:59 pm »
Hi,

i want to check, if the repository user equals in the project authors list. I successfully determined the rep. user, but i had some problems to check the project authors list.
I tried the repository.authors.... functions, but it didn't work.

Can you please give me a good solution?

Thanks.

Florian

Pages: [1] 2