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

Pages: 1 [2] 3 4 ... 17
16
Hi together,

in http://sparxsystems.com/enterprise_architect_user_guide/13.0/automation/the_scripter_window.html I read, that for Scripting "Microsoft Scripting Engine" (or "Mozilla SpiderMonkey") is necessary. My questions are:

(1) Is MS Script Debugger not needed anymore? If yes, from when on?
(2) Do Microsoft Scripting Engine and Mozilla SpiderMonkey support different features?
(3) Is the MS Script Debugger always needed for scripting or only in special cases (e.g. ActiveX)?

I cannot answer these questions on my own because I cannot install the deprecated MS Script Debugger.

Many thanks in advance, V.

17
Hi experts,

I am trying to create a report with Virtual Document. The “Master Document” has several “Model Documents” assigned to it. Every “Model Document” knows its own template. I have several questions:

(1) Is there a possibility to retrieve the tagged value of a “Model Document”? I am only able to retrieve the tagged values of a “Master Document”.

(2) Sometimes the “Model Documents” do not use their templates. Instead they use the system Template “Model Report”. Sometimes they use the right template. Is there a rule behind it, when a “Master Document” or “Model Document” uses which rtf template?

(3) I stored the parameters of “Generate Documentation” as a “Defined Document” in Resources. Can I put this element (or a representative) on the diagram of the “Master Document” or any diagram?

(4) Is it possible that a “Filter” retrieves the search value from somewhere, e.g. from the tagged value of “Master Document”?

Many thanks in advance, V.

18
I found the solution in https://stackoverflow.com/questions/31700598/using-master-document-for-report-generation-in-enterprise-architect-v11-store. "We don't use Report Specification element, but we store specific options into Resource Document. Use Resource Document button on Generate Documentation dialog. This specification is stored in the Resources Window under Document Generation.

19
Hi experts,

I am trying to create a report with Virtual Document. This is a high-sophisticated feature (at the moment more confusing than high sophisticated) of EA. I am using Master Document > Right Click > Documentation > Generate Documentation to generate the report. When I use this feature somewhere else the parameters for the Master Document get overwritten. Very strange. I have this high sophisticated feature Virtual Document and cannot safe these parameters.

O.K. I tried the element “Report Specification”. But then I read: Q: “Can you link the report specification with Virtual Documents (Master and Model Documents)?” A: “Not yet. We are investigating this feature request”. It would have been a good idea, but it is still under investigation...

Or am I wrong? Does there exist a possibility to save the parameters of Generate Documentation or Virtual Document, respectively?

Many thanks in advance, V.

20
Hi Viking
If you need to insert images to word (without memory stream )then you can try using below codes

Code: [Select]
Selection.InlineShapes.AddPicture FileName:= _"fullPathOftheImage", LinkToFile:=False, _SaveWithDocument:=True
or

Code: [Select]
objShapes.AddPicture (fullPathOftheImage)   
Thanks
Arshad

Thank you, Arshad. That worked.

21
Hi,

(1)
Could somebody tell me, why it is better to use PutDiagramImageOnClipboard instead of PutDiagramImageToFile? Is it just because of working memory?

(2)
I got the half of Geerts example to work in VBA. I do not find an equivalent in VBA for the code below (see also Simons comment). Does anybody know the solution?

MemoryStream imageStream = new MemoryStream(File.ReadAllBytes(filename));
Image diagramImage = Image.FromStream(imageStream);
System.IO.File.Delete(filename);

Many thanks in advance, V.

22
I identified it. I had to reference mscorlib.dll. Many thanks.

23
Hello,

I am trying to use the script above in Word resp. in VBA.

I am new to VBA. I cannot find MemoryStream.

Can somebofy tell me, how I can link MemoryStream to my code resp. which library I have to reference?

Many thanks in advance, V.

24
Automation Interface, Add-Ins and Tools / Re: Document Bookmarks
« on: January 11, 2018, 09:12:57 pm »
As I understood it this procedure will replace the bookmark in Work by the contents of a generated RTF report.
Is that what you are looking for?
Geert

Many thanks, Geert. I am afraid that I did not to see the wood for the trees. I saw something different in the description... :(

25
Automation Interface, Add-Ins and Tools / Re: Document Bookmarks
« on: January 11, 2018, 07:24:04 pm »
Does anybody have an idea?

26
Automation Interface, Add-Ins and Tools / Document Bookmarks
« on: December 14, 2017, 06:16:55 am »
Hello together,

I am still working on my small project creating a report with word by replacing GUIDs with artifacts out of EA (see http://www.sparxsystems.com/forums/smf/index.php/topic,38932.0.html).

I identified a potential solution called "Document Bookmarks" decribed in http://sparxsystems.com/enterprise_architect_user_guide/13.5/model_publishing/o526.html.

I followed the instructions and got an exception: "Bookmark undefined".

I did not think about the concept behind it before testing the example. Because the example did not work, I wondered, how Word can know that I mean a diagram in EA with this bookmark. Do I have to prepare Word? Do I have to use a special template (the one which I have to insert with "document file to insert")?

Many thanks in advance, V.

27
Automation Interface, Add-Ins and Tools / Re: GUID of a diagram
« on: December 11, 2017, 08:59:27 pm »
Thank you very much !!! Thanks also to the learners. I am also here to learn  :)

28
Automation Interface, Add-Ins and Tools / GUID of a diagram
« on: December 09, 2017, 05:15:24 am »
Hello together,

I thought that finding out the GUID of a diagram without using a script is simple. But it is not. The property field is empty. The question has already been asked, but no answer was given: http://sparxsystems.com/forums/smf/index.php?topic=12845.0.

Could someody give me the answer, please? Many thanks in advance, V.


29
Do you want to

(1) retrieve a diagram image from EA and use it in Word, or
(2) get an image from Word and put it in EA?

For the first one you can use EA.Repository.PutDiagramImageToFile ()

Geert

I want to do (1). Thank you very much for your help.

30
I wonder if it possible to retrieve a diagram (as a picture) from Word using the Sparx Object Model. I did not find anything but an addin using the clipboard.

It would be could if no installation would be required.

Pages: 1 [2] 3 4 ... 17