Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic System Architect (steve huntington)
Decrease font size
Increase font size
Topic Title: launching matrices from VBA
Topic Summary: launching matrices from VBA
Created On: 27-Sep-2006 16:51
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.
 27-Sep-2006 16:51
User is offline View Users Profile Print this message


João Almeida

Posts: 7
Joined: 25-Nov-2005

How can I use VBA to launch a matrix?

I'm making some calculations on the cells of a matrix, but in the end of these calculations I need to launch automatically that matrix.

Does anyone know something about this?

Thanks,
João Almeida
Portugal
Report this to a Moderator Report this to a Moderator
 27-Sep-2006 23:32
User is offline View Users Profile Print this message


Ian Souchard

Posts: 22
Joined: 28-Feb-2006

There is a Function called ExecuteMatrix in SAUI but its arguments indicate it uses a CSV file - this dates back to the first version of the Matrix Editors - the current version uses XML files, not CSV, so this probably won't work. The Guidebook has a method for opening a Matrix Editor: , but this didn't work properly in v 10.3 - it could only be used to open the Saved Matrices window using the call in the example above (with no argument).
Report this to a Moderator Report this to a Moderator
 29-Sep-2006 17:58
User is offline View Users Profile Print this message


Bruno Carvalho

Posts: 4
Joined: 27-Sep-2006

Ian, this hyperlink isn't working. Do you know how to obtain that information?

Thanks.

Bruno Carvalho - Link

Report this to a Moderator Report this to a Moderator
 5-Oct-2006 11:38
User is offline View Users Profile Print this message


SA Team

Posts: 148
Joined: 18-Nov-2005

Hi

The following code should do what you want.
It uses the matrix template file path and a matrix ID to launch the matrix. It will look for a default saved matrix (definition) for that matrix and use that, otherwise it will load an empty matrix using the template. I included the code to get the main matrix file - although it uses an unsupported API. The function which you should run to demonstrate this is :-
DoShowMatrix. You MUST have the UOB to Entity Matrix available in your matrix browser for this to work. Alternatively change "I3" to be another matrix ID.

Thanks
Ian



-------------------------

Senior Software Developer
Telelogic UK Ltd.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic System Architect forum.
There are currently 1 users logged in.
The most users ever online was 16 on 30-Oct-2008 at 14:46.
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.