Structural analysis toolkit, application results to view showing wrong units

Structural analysis toolkit, application results to view showing wrong units

jaroslav.kopecky
Contributor Contributor
743 Views
10 Replies
Message 1 of 11

Structural analysis toolkit, application results to view showing wrong units

jaroslav.kopecky
Contributor
Contributor

Hello,

I am trying to store arbitrary result to ResultPackage.

When I am using 2 kinds of result with different units (DUT), then when I want to see applied results in view I get wrong units.

 

When I am using only 1 kind, units (and values) are shown correctly.

Of course I am using AddMeasurement() with particular units (DUT).

wrong-units.PNG

(the case with 2 kind of units are these units: "kilo newtons" and " kilo newtons meters")

(with selected kind I expect "kN m" instead of "kN")

(value that was stored in internal units was: -1872,9204  then I expect to see -174 kN)

 

Could you check that functionality? Or could you suggest if I could do something wrong? 

 

Greetings Jaroslav.

0 Likes
744 Views
10 Replies
Replies (10)
Message 2 of 11

jeremytammik
Autodesk
Autodesk

Dear Jaroslav,

 

Thank you for your report.

 

Please provide a full minimal reproducible case demonstrating the problematic behaviour for the development team to take a look at:

 

https://thebuildingcoder.typepad.com/blog/about-the-author.html#1b

 

Maybe they can provide some advice.

 

Thank you!

 

Cheers,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 11

jaroslav.kopecky
Contributor
Contributor

Hello Jeremy,

OK, I modified example addin from SDK.

 

In fact, I only modified AddArbitraryLinearResults() method to this:

 

private void AddArbitraryLinearResults(ResultsPackageBuilder resultsPackageBuilder, ElementId elementId)
    {
      List<Tuple<String, List<double>>> valuesForRnf = new List<Tuple<String, List<double>>>()
      {
        // IF USED ONLY 1 KIND OF RESULTS UNITS ARE OK (comment out these "forces" values)
        new Tuple<String,List<double>> ( "forces", new List<double>() { 400, 400, 400, 400, 400, 400, 400, 400, 400, 400 }),
        new Tuple<String,List<double>> ( "moments",    new List<double>() { -1870, -1500, -1000, -700, -400, -100, 0, 0.00, 0.00, 0.00 })
      };

      // Add result domain for load independent results
      List<double> xCoordinateValues = new List<double>() { 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0 };
      resultsPackageBuilder.SetBarResult(elementId, null, DomainResultType.X, xCoordinateValues);
      // Add result values
      foreach (var valueForRnf in valuesForRnf)
      {
        string name = valueForRnf.Item1;

        DisplayUnitType dut = DisplayUnitType.DUT_NEWTONS;
        UnitType unitType = UnitType.UT_Force;

        if (name.Equals("moments"))
        {
          dut = DisplayUnitType.DUT_NEWTON_METERS;
          unitType = UnitType.UT_Moment;
        }

        resultsPackageBuilder.AddMeasurement(name, MeasurementResultType.Bar, unitType, dut, MeasurementDependencyType.LoadCaseIndependent);
        resultsPackageBuilder.SetArbitraryResult(elementId, null, name, valueForRnf.Item2);
      }
    }

 

 

And that's all, You can use it with default rvt file (ResultsInRevit.rvt)

 

Let me know,

Greetings Jaroslav.

 

 

0 Likes
Message 4 of 11

jaroslav.kopecky
Contributor
Contributor

Hello Jeremy,

Is my attachment OK? Could you now reproduce it? And let me know, if you will be able to fix it?

 

Greetings Jaroslav.

0 Likes
Message 5 of 11

jeremytammik
Autodesk
Autodesk

Dear Jaroslav,

 

Thank you for your sample material and reproducible case.

 

I logged the issue REVIT-144606 [error storing two different units DUT in structural analysis ResultPackage] with our development team for this on your behalf as it requires further exploration and possibly a modification to our software. Please make a note of this number for future reference.

 

You are welcome to request an update on the status of this issue or to provide additional information on it at any time quoting this change request number.

 

This issue is important to me. What can I do to help?

 

This issue needs to be assessed by our engineering team and prioritised against all other outstanding change requests. Any information that you can provide to influence this assessment will help. Please provide the following where possible:

 

  • Impact on your application and/or your development.
  • The number of users affected.
  • The potential revenue impact to you.
  • The potential revenue impact to Autodesk.
  • Realistic timescale over which a fix would help you.
  • In the case of a request for a new feature or a feature enhancement, please also provide detailed Use cases for the workflows that this change would address.

 

This information is extremely important. Our engineering team have limited resources, and so must focus their efforts on the highest impact items. We do understand that this will cause you delays and affect your development planning, and we appreciate your cooperation and patience.

 

Best regards,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 6 of 11

jeremytammik
Autodesk
Autodesk

Dear Jaroslav,

 

The development team confirmed the problem:

 

Results are stored correctly in ResultsBuilder. Unfortunately ArbitralyResults have not been tested enough and it looks like we have some unexpected behaviour in the ResultsExplorer dialog, part of Structural Analysis Revit extension.

 

Measurement with different units shouldn’t be grouped together but they are. There is no workaround for this, some development in ResultsExplorer will be needed to fix this.

 

Thank you for pointing it out!

 

Cheers,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 7 of 11

jaroslav.kopecky
Contributor
Contributor

Hello Jeremy,

You're welcome,

hopefully this could be fixed.

Greetings, Jaroslav.

0 Likes
Message 8 of 11

Anonymous
Not applicable

Hi Jeremy,

 

I think it is difficult to judge who will use this option when and how often. See my answers below.

 

  • Impact on your application and/or your development.
    We run into a warranty issue. If results are wrong in Revit and further designs are based on it it can be dangerous and subject to liability. Cost for repair on site might be high.
    Software vendors usualy exclude liability but it makes the product feature unuseable in my eyes.

  • The number of users affected.
    I assume in our case we have several hundreds of potential users

  • The potential revenue impact to you.
    If the feauture does not work we might loose sales that usually are 5000 Euros plus

  • The potential revenue impact to Autodesk.
    I cannot judge this

  • Realistic timescale over which a fix would help you.
    Within 6 months

  • In the case of a request for a new feature or a feature enhancement, please also provide detailed Use cases for the workflows that this change would address.
    Wrong internal forces and other results like reinforcements are wrong we cannot use REVIT for further detailing, rebar layout or foundation load estimate.
    BTW. It can affect also other users not just Dlubal. The same problems appears inside Revit when changing units no matter where the results come from.

I would strongly suggest to fix this with high priority. 

 

Best Regards,

Walter

 

0 Likes
Message 9 of 11

jeremytammik
Autodesk
Autodesk

Dear Walter,

 

Thank you for your business case.

 

I have good news for you: The issue is under progress and currently being worked on.

 

Furthermore, the issue number has changed and is now REX-5928 [error storing two different units DUT in structural analysis ResultPackage].

 

Thank you for your patience.

 

Cheers,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 10 of 11

lukas.suehnel
Contributor
Contributor

Dear Jeremy,

could you give me (or us) a short feedback regarding the status of REX-5928 ?

Has it been fixed with Revit 2021? 

 

Thank you in advance!

Best Regards

Lukas

0 Likes
Message 11 of 11

jeremytammik
Autodesk
Autodesk

Dear Lukas,

 

Thank you for your query.

 

I checked the status of REX-5928 [error storing two different units DUT in structural analysis ResultPackage] and am sorry to say it is unchanged and unresolved.

 

I added a comment on the ticket pointing out your interest in this and asking for an update and a time estimate for resolution.

 

I hope this helps.

 

Best regards,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes