Query Existing Analysis Model

How to automate the querying of an Existing Structural analysis model.
The ggQuery component allows you to attach to or use a given existing structural analysis model file to extract results from.
In many cases, you may have developed a structural analysis model directly within a structural analysis program and now want to use Rhino and Grasshopper to perform some calculations based on the analysis results that are trapped inside the structural analysis program.
Unlike the ggSolve Component this will not modify the analysis model in any way nor will it tell the structural analysis program to run any analysis. Therefore, you need to ensure that any load case or combinations that have already been run in the model and that it has then been saved in that state.
Query Component
The query component will typical take one parameter- The query however it will rely on you using the ggImportModel or ggImportData component to open the model in the first place. The steps below outline the process shown in the image below.
Extracting model frequency results from an existing model

Step 1. Open/Import Existing Model

You can use the ggImportData component to import the structural analysis model into Grasshopper. This allows you to filter and specify elements and load cases/combinations in which you are going to query analysis results for.
It is best that the model is not already open prior to adding this component to the canvas. Once the file path of the analysis model is specified the component will perform the necessary steps in order to open the model.

Step 2. Generate Queries

Queries are generated similar to as if you were going to run through the solver component. Select your query type and the associated elements and for which particular load case.
Follow the steps here for setting up analysis result queries:
Once you have set-up your desired queries, wire these into the queries input of the component.
Note: this will automatically generate the queries from the analysis model on the fly. If you have multiple queries you may want to disable the component to allow you to perform the query in one go.

Step 3. Decompose

Once the query component has run, you should receive the result data items for the queries you provided. Decompose these results to get the associated results for your use in grasshopper.