![]() |
Telelogic System Architect (steve huntington) | ![]() |
Topic Title: Connecting Microsoft Word Document and System Architect Topic Summary: Created On: 15-Jul-2008 14:39 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
We'd like to have a MS Word document with embedded Boolean box fields. Then have it so when a System Architect user opens this file and "checks" a box an associated definition property in SA is updated. Has anyone done this? If so how?
Thanks, Mark |
|
![]() |
|
![]() |
|
Write a MSWord Macro
You will need to add a reference to the SA2001 (in MSWord Visual Basic Editor: Tools;References) You can then drive SA from MS Word. It may be better to attach to a running SA instance, MSWord can timeout before the app starts. I haven't written any live macros to do this, so this is an illustration only. I ran the following code to prove the idea 'from C:\Program Files\Telelogic\System Architect Suite\System Architect\defns.bas Global Const DFXOOUSECASE = 428 ' New UML Use Case Sub a() Debug.Print SA2001.Application.Encyclopedia.FullName Dim def As SA2001.Definition Dim objs As SA2001.SAObjects Set objs = SA2001.Application.Encyclopedia.GetFilteredDefinitions("*", DFXOOUSECASE) objs.ReadAll For Each def In objs Debug.Print def.Name Next End Sub |
|
![]() |
|
![]() |
|
Thanks Toby,
Simplistically what we are trying to do is... think of a multiple choice test. We want our users to launch a form (MS Word, html, whatever) that has the test and multiple choice answers. Then when they answer the questions we want the data stored in SA in specific definition properties. Mark |
|
![]() |
|
![]() |
|
Sounds like a fun project for a tool specialist. How many mandays have you put aside to develop this?
|
|
![]() |
|
![]() |
|
It's a T&M contract so we work on it until it's done. After one day, we're close to having a program allowing users with two different roles. One that allows Subject Matter Expert (SMEs) users to enter test questions and answers that then are added into a test form. The second lets the larger architecture community take the test. We also have read SA data from this program. So now we just need to figure out how to write the test answers back to specific properties within SA.
Mark |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.