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 - qwerty

Pages: 1 ... 532 533 [534] 535 536 ... 622
7996
I'm of-site currently. So out of my head: you need to create a note element and assign some magic to it. You can find out that by creating an empty EAP, adding a note and a hyperlink and run a search on t_object to see the difference between simple note and hyperlink.

q.

7997
Automation Interface, Add-Ins and Tools / Re: QuickLinker: Menu Group
« on: July 08, 2014, 08:14:37 pm »
I'd say that's correct. I guess you'd like to have a group of related links. You could rise a feature request. But don't hold your breath.

q.

7998
I'd say a simple SQL would do. You can copy/paste the results if you wish so. With focus on the related element you could also navigate to the according class/element.

q.

7999
In which way do you want to query them? For a script/add-in, a user defined search?

q.

8000
Automation Interface, Add-Ins and Tools / Re: Local Paths
« on: July 08, 2014, 12:28:57 am »
It's only stored there (AFAIK).

q.

8001
It definitely won't hurt :-) Me is not the power VB user (anymore) but others certainly are.

q.

8002
No problem. You need to have the diagram in question open at some point. Of course it depends how, but one way would be to use Repository.GetDiagramByID. Once you have the right Diagram object you can add new DiagramObjects to the associated collection Diagram.DiagramObjects. When you create a new element therein using the AddNew those will be assigned with the diagramId.

q.

8003
You need to
Code: [Select]
objDsplyNew = diagram.DiagramObjects.AddNew("", "")or
Code: [Select]
objDsplyNew = diagram.DiagramObjects.AddNew("l=400;r=440;t=-100;b=-150;", "")That will create the object in the according diagram. You can omit the assignment of the diagramId (since that's implicitly done). For the latter you can also omit the coordinate specs.

q.

8004
Rather than fiddling directly with the table you should create diagram object with the according EA.DiagramObject class. This will allow to add element to the Diagram.DiagramObjects collection.

q.

8005
SQLQuery actually returns some XML string. You can simply print the XML result and will see what it contains. There should be some XML class in VB to parse XML. Sorry I can't say anything about it as I use VB only very rarely, but Google is your friend. Those XML classes also have methods to navigate like in a collection (and much more).

q.

8006
Can you please clarify what you want to change? Maybe you can issue a SQL UPDATE but that might be complicate in many cases. So it's better to run the Repository.SQLQuery (with only those columns you want to read - which is mostly Object_ID) and then start a loop over the XML result where you issue Repository.GetElementByID and perform whatever operation is needed.

q.

8007
1) AFAIK you can't do that (I might be wrong, though)
2) You need to write an add-in that does this job for you. Your MDG must then come along with the right add-in installer.

q.

8008
Well, I have tried to write up something in my Scripting book. It's not particularly for Java and IIRC there are a few methods you can not access via Java at all. But it might be a help anyway.


q.

8009
(The following is more a stomach feeling than good knowledge.) When you tell EA to look for profiles it is in a directory. And EA seems to scan that directory for literally everything. That way it might encounter files it supposes to be profiles but lead to strange error messages.

It's always a good idea to place profiles in dedicated directories.

q.

8010
Automation Interface, Add-Ins and Tools / Re: VB.Net Macro
« on: July 02, 2014, 06:50:43 pm »
See page 6 of my Scripting book:
Code: [Select]
Dim Repository As EA.repository
Set EAapp = GetObject(, "EA.App")
Set Repository = EAapp.repository

q.

Pages: 1 ... 532 533 [534] 535 536 ... 622