![]() |
Telelogic System Architect (steve huntington) | ![]() |
Topic Title: Macro for adding/multiplying properties Topic Summary: Created On: 29-Jun-2007 20:14 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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. |
|
![]() |
|
![]() |
|
Thanks Andrea!
Mark |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.