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: Macro Creation
Topic Summary: Adding Classification Notations to Definitions and Symbols
Created On: 29-Nov-2005 14:11
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.
 29-Nov-2005 14:11
User is offline View Users Profile Print this message


Theodore Menard

Posts: 70
Joined: 1-Aug-2005

I have a project that is using SA V9.0.19 w/C4ISR.  The did most of their development in an unclassified database.  They are now moving that data into a classified database where they will require to have classification markings i.e. (U).  They created a macro that adds the (U) notation at all definitions listed in the browser however those marking do not carry over to the Symbol Names on the diagrams.  The only way that can be accomplished is by doing a symbol rename on every symbol in ever diagram.  They have 100s of diagrams and thousands of symbols.  Is there anyone that has encountered this problem and how was it handled?

-------------------------
Theodore A. Menard
Report this to a Moderator Report this to a Moderator
 29-Nov-2005 15:34
User is offline View Users Profile Print this message


Kevin P. Calandrella

Posts: 52
Joined: 9-Sep-2005

How are you marking an object as being classified?  Are you adding a prefix or suffix to the object name (e.g. - 'Customer (U)'), or are you using a property of the object?
Report this to a Moderator Report this to a Moderator
 29-Nov-2005 15:35
User is offline View Users Profile Print this message


Theodore Menard

Posts: 70
Joined: 1-Aug-2005

They are placing the (U) as a prefix to the Object Name.

-------------------------
Theodore A. Menard
Report this to a Moderator Report this to a Moderator
 29-Nov-2005 16:24
User is offline View Users Profile Print this message


Kevin P. Calandrella

Posts: 52
Joined: 9-Sep-2005

Not the approach I would have taken but you should be able to write a macro that renames symbols with the appropriate prefix.

I would have added a property to each symbol or definition type to signify whether it was classified.  The value of this property can be displayed next the definiton name in the browser.
Report this to a Moderator Report this to a Moderator
 29-Nov-2005 17:15
User is offline View Users Profile Print this message


Theodore Menard

Posts: 70
Joined: 1-Aug-2005

According to DoD Security Marking Conventions the (U) needs to be in front of the Name. Question is why if I rename a definition it changest the name globally but if I add (U) to a name it doesn't change it globally.

-------------------------
Theodore A. Menard
Report this to a Moderator Report this to a Moderator
 29-Nov-2005 19:20
User is offline View Users Profile Print this message


Kevin P. Calandrella

Posts: 52
Joined: 9-Sep-2005

You need to do the rename as follows:

Dim oISA As ISAImf
Dim x As Long
Dim lDefID as Long
     
Set oISA = Application.Interface("ISAImf")
     
x = oISA.SAEditDefinition(lDefID, False)
x = oISA.SARenameDefinition(lDefID, "(U) New Name")

where lDefID would be the ddid of the definition you want to rename.

I realize this is far from obvious but it should work.  I'm not 100% sure if these calls are supported in SA 9.

Hope this helps.
Report this to a Moderator Report this to a Moderator
 12-Dec-2005 19:39
User is offline View Users Profile Print this message


Andrea Heithoff

Posts: 33
Joined: 15-Aug-2005

Does the prefix get added to the symbol when the definition is opened from the browser and changed manually?  There could be two things--one, the definition that is changed is not the same as the definition represented on the diagram; or two, the macro that adds the prefix is circumventing the normal global update and leaving you with a disjoint.  You'll probably want to add a section to the macro you've used or the one that Kevin posted that will look for every symbol related to the definition and carry out the rename.
Report this to a Moderator Report this to a Moderator
 14-Dec-2005 13:37
User is offline View Users Profile Print this message


Theodore Menard

Posts: 70
Joined: 1-Aug-2005

We are able to access all of the diagrams and symbols. However, when the macro is run and we try to rename the symbols, the symbols are duplicated with the new name appearing in the duplicate. We want to be able to rename an existing symbol without a new symbol being created.

The line of code in question:

aSymbol.SetField SYMFLD_NAME, "(U) " + aSymbol.Name



-------------------------
Theodore A. Menard
Report this to a Moderator Report this to a Moderator
 19-Dec-2005 19:30
User is offline View Users Profile Print this message


Andrea Heithoff

Posts: 33
Joined: 15-Aug-2005

My guess is that your code does the equivalent of "rename" on a symbol.  Since you want to have the same symbol undergo a name change, that really is the renaming of the definition associated with the symbol.  If the code previously posted to rename a defn won't work in v9, you may try to use a property on the defintion to capture the classification, then use the macro to change the symbol display to include that classification.  (Usrprops may need to change to include the ability to display the property on the symbol).

Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic System Architect forum.
There are currently 0 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 0 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.