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 for adding/multiplying properties
Topic Summary:
Created On: 29-Jun-2007 20:14
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-Jun-2007 20:14
User is offline View Users Profile Print this message


Mark Frazier

Posts: 41
Joined: 6-Dec-2005

Has anyone written a marco for adding or multiblying two properties within a definition and putting the result in a third definition.  If so please provide an example or let me know if you've found another way of doing it.  Thanks.

Mark
Report this to a Moderator Report this to a Moderator
 8-Aug-2007 23:28
User is offline View Users Profile Print this message


Andrea Heithoff

Posts: 33
Joined: 15-Aug-2005

I'm going to assume you meant to write third "property" not "definition" in your query...

If you're taking about definitions of one type, the problem is straightforward.  The code I attached is very simple, so you may want to add some error conditions or a log of changes  The main consideration here (get filtered definitions with a wildcard name) is that all definitions of the chosen type will be "opened" at once with the saDefs.ReadAll command, and when the entire macro is complete they are released.  This is best performed when no other users are in the encyclopedia.
Report this to a Moderator Report this to a Moderator
 10-Aug-2007 14:40
User is offline View Users Profile Print this message


Mark Frazier

Posts: 41
Joined: 6-Dec-2005

Thanks Andrea!

Mark
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.