Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic TAU (steve huntington)
Decrease font size
Increase font size
Topic Title: C++ API: Unable to use GenerateEMF and Locate
Topic Summary: How to set up an "interactive execution environment" ?
Created On: 27-Oct-2006 13:35
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by Mattias Mohlin, on Thursday, November 2, 2006 9:06 AM

Answer:
A client of the Tau APIs can execute in two different environments

1) An interactive execution environment (this is the Tau IDE)
2) A non-interactive execution environment (this is for example a stand-alone batch app)

The behaviour and availability of certain API functions depend on the current execution environment as stated in the doc.
For example, certain functions are only available in the interactive execution environment.

So the interactive execution environment is not something you set up - it is determined by how your API client runs. It should run inside the Tau IDE to be an interactive API client which is required for using features such as GenerateEMF.
In practise this means that your API client should be an (interactive) agent.

You can find more information about execution environments in the on-line doc (Customizing Tau / C++ API / Introduction):

"A client of the C++ API may execute in different environments. The behavior of some API functions will depend on the execution environment of the client code. For example, if the client executes in the IDE (a so called interactive client), those API functions that modify the model will use an implementation that is appropriate for interactive use (undo/redo capabilities etc.). Another example is a client that executes in a batch application (a so called non-interactive client), for which some parts of the API will be inaccessible (those parts that have to do with the IDE). "

 27-Oct-2006 13:35
User is offline View Users Profile Print this message


Delphin Lecucq

Posts: 1
Joined: 27-Oct-2006

Hello,

I'm currently writing a C++ application that uses Tau C++ API.
I did not successed to generate Enhanced Meta Files for each diagrams.
I have an APIError exception:
    ITtdPresentationElement::GenerateEMF is not available in the current execution environment.
Same for GenerateEMFEx and Locate:
    ITtdEntity::Locate is not available in the current execution environment.
I saw in the documentation that GenerateEMF is currently only available in the interactive execution environment.

I haven't found documentation about this "interactive execution environment".

Could you tell me how to set it up ?

Thanks in advance,
Delphin


Edited: 27-Oct-2006 at 13:48 by Delphin Lecucq
Report this to a Moderator Report this to a Moderator
 1-Nov-2006 15:22
User is offline View Users Profile Print this message


Mattias Mohlin

Posts: 4
Joined: 29-Aug-2003

Answer Answer
A client of the Tau APIs can execute in two different environments

1) An interactive execution environment (this is the Tau IDE)
2) A non-interactive execution environment (this is for example a stand-alone batch app)

The behaviour and availability of certain API functions depend on the current execution environment as stated in the doc.
For example, certain functions are only available in the interactive execution environment.

So the interactive execution environment is not something you set up - it is determined by how your API client runs. It should run inside the Tau IDE to be an interactive API client which is required for using features such as GenerateEMF.
In practise this means that your API client should be an (interactive) agent.

You can find more information about execution environments in the on-line doc (Customizing Tau / C++ API / Introduction):

"A client of the C++ API may execute in different environments. The behavior of some API functions will depend on the execution environment of the client code. For example, if the client executes in the IDE (a so called interactive client), those API functions that modify the model will use an implementation that is appropriate for interactive use (undo/redo capabilities etc.). Another example is a client that executes in a batch application (a so called non-interactive client), for which some parts of the API will be inaccessible (those parts that have to do with the IDE). "

Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic TAU forum.
There are currently 1 users logged in.
The most users ever online was 15 on 31-Mar-2008 at 16:22.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.