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: Tcl API
Topic Summary: Error during tcl evaluation
Created On: 22-Mar-2006 11:43
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.
 22-Mar-2006 11:43
User is offline View Users Profile Print this message


Javier Martínez

Posts: 11
Joined: 22-Mar-2006

Hello,

We are working in a Tcl script because we need to detect duplicates classes in a TAU model.

We are begining with the documentation examples. For example the next script:

ITtdEntitiesPtr pSignatures;
pSignatures = pPackage->GetEntity("Signature");
long lCount = pSignatures->Count;
ITtdEntityPtr pSignature;
// N.B. Index are 1-based
for (int i = 1; i <= lCount; i++){
    pSignature = pSignatures->GetItem(i);
    // Do something with pSignature...
}

We create a Tcl file in the project. And when I execute the script (Ctrl+F5), I obtain the next error:

Error during tcl evaluation:
invalid command name "ITtdEntitiesPtr"
    while executing
"ITtdEntitiesPtr pSignatures"

Best regards,

Javier Martínez.
Report this to a Moderator Report this to a Moderator
 24-Mar-2006 14:56
User is offline View Users Profile Print this message


Greg Gorman

Posts: 75
Joined: 4-Oct-2002

Javier,
The examples are C++ using the COM API not Tcl. This one would be something like....
(assume that a Package is selected)
set pPackage [u2::GetSelection]
set pSignatures [u2::GetEntity $pPackage "Signature"]

# this is probably not necessary
set ICount [llength pSignatures]

foreach pSignature $pSignatures {
# do something with pSignature
}


Greg

-------------------------
Greg Gorman
Vice President, Product Management
Modeling and Test Products
Telelogic AB
Report this to a Moderator Report this to a Moderator
Telelogic TAU » TAU/Developer » Tcl API

Topic Tools Topic Tools
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.