![]() |
Telelogic Rhapsody (steve huntington) | ![]() |
Topic Title: Tip: ReporterPLUS - Diagram Sorting Topic Summary: Created On: 24-Nov-2004 20:03 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi,
Ever wondered how you sort diagrams by specific names? You can add keys in the Sort iteration, and set the name variable equal to the diagram name. Then repeat by adding another key for the next diagram and so on. Slides attached. Regards, Andreas |
|
![]() |
|
![]() |
|
Hello Andreas,
This technique is OK if you don't mind creating a model-specific template, and keeping it updated with all the model changes. What I'd like to do is attach a tag or property to each diagram and then sort by the value of that tag/property. That would mean that I don't need to change the template as I add new diagrams, or change their names. I haven't figured out if this is possible. It seems like it's not possible to put Q language expressions in the sort keys? I can write a Q langauge expression to extract the value from the tag, it's a shame I can't use it in the template. Perhaps it easier using properties? Regards, Mike |
|
![]() |
|
![]() |
|
Here's the technique we used to achieve diagram ordering in our templates using a tag in the model and the sort iteration in the template.
For each diagram in the model we attach a tag called "docOrder" which we give a numeric value indicating the relative order in which we want that diagram to appear in the document. In the sort tab for our documentation generation template, we put the following in the sort keys: $value of [tags] {$name = "docOrder"} This will output the diagrams in docOrder order in the document. Hope this helps, Brian |
|
![]() |
|
![]() |
|
Well, it depends on how you want to sort. As you add in more diagrams, you would not need to update your Reporter Plus...but if you insist on adding tags, you can sort those in the Sort Tab and choose numerically...
|
|
![]() |
Telelogic Rhapsody
» Rhapsody Category » Rhapsody
»
Tip: ReporterPLUS - Diagram Sorting
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.