Welcome to the TRNSYS Users Forum.

The forum is a place where people can interact and have discussions about different topics involving the use of the TRNSYS software package. Here you can post topics for discussion or questions on using TRNSYS and get advice from other users or TRNSYS experts. This forum is not intended for detailed technical support. Users should contact their distributor’s hotline for such assistance.

Some tips for success on using the forum:

  • Follow the Forum Rules posted in Forum Administration.
  • There are categories for different types of topics and questions. Post your topic or question into the proper category.
  • Before posting a topic or question search the existing topics  (and the TRNSYS Users listserv archive or Post archive) to see if a similar topic or question has already been answered.
  • Use a descriptive topic name. Don’t use attention getting subjects, they don’t get attention and only annoy people.
  • State the version of TRNSYS and which add-ons your are using.
  • Include enough specific details for your topic of question to be answered. Just posting “Why am I getting an error?” without describing the specific error and what you are trying to do when you get the error will not receive a response that fixes your issue.
  • Remember when people help you, they are doing you a favor. Be patient, help people out by posting good descriptions of what you need help with, and be polite even if a response does not solve your issue.
  • Moderators may edit your post for clarity or move your topic to a more appropriate category.

Notifications
Clear all

Create overview of all connections of one type to all other types

2 Posts
2 Users
0 Reactions
507 Views
0
Topic starter

Hi there,

is there a way to create an overview, for example as a table, that has all the connections of one type to all the other types it is connected to?
I need to change the amount and the order of my in- and outputs for a type and therefore need to update the connections afterwards.
If there is no way I guess I'd have to take screenshots or something similar to remember all of the connections.

 

Best, Jan

1 Answer
0

Hi Jan,

If you're only changing the order of the inputs and outputs for a Type, and not changing the names, you may be able to just replace the old proforma with the new one. Save a copy of your project under a new name, then right-click the proforma -> 'Replace', navigate to the new proforma (all proformas should be in TRNSYS18/Studio/Proformas, from there the folder structure is the same as the Access Tree in Studio), and click 'Open'. You'll get a warning that this cannot be undone; that's fine, that's why you saved a backup. If any links were broken, the next window will show which ones were lost, otherwise the links will all be maintained. Usually, if the names of the inputs/outputs are identical, Studio does a good job maintaining the connections. Sometimes it even works when names have changed slightly, though that's a bit more hit or miss. 

If replacing the proforma goes horribly wrong, and you need to go back to your prior copy and recall the links manually, unfortunately there's no way to see all connections from one Type to all other Types in one view. I can think of a couple ways to make the recall slightly less painful:

1) When you double-click on a connection in Studio to bring up the Connections window, there are two tabs at the top: Classic, and Table. 'Classic' is the default view. Switch to 'Table', and you'll see all of the connections from Type A to Type B listed as a table. You can copy and paste that table into a spreadsheet. Repeat for each model to which Type A is connected (right-click on the proforma and hover over 'Edit connections with ..' to see the full list).

2) In Studio, click on the 'Write input file' icon in the toolbar down the left (looks like a writing implement), then navigate to the project's folder and open the <Project name>.dck file. The .dck ('deck') file contains all of the information TRNSYS needs to run a project. Each Type is listed with its name, unit number, Type number, and a list of its parameter values and input connections. Each Input connection is represented as (#1,#2), where #1 = the unit number that input is connected from, and #2 = the output number of that unit; the comment text to the right gives the same information (and is a bit more readable by a human). If the Type you replaced is Unit 4, for example, you could search the text file for "(4," (without the quotes) and find every place that Unit 4 is connected to another Type in the project, then read the comment text to understand which output of Unit 4 is connected to that input.     

janboettner Topic starter 15/06/2023 9:57 am

@a_weiss Thanks a lot for your detailed reply! I'll try with updating the proforma. I always thought it would just reconnect the same in- and output numbers with each other and not react to changes. But that might work 🙂

Share: