X-Rotational linear spring modulus missing

X-Rotational linear spring modulus missing

jorge.bslu
Advocate Advocate
345 Views
4 Replies
Message 1 of 5

X-Rotational linear spring modulus missing

jorge.bslu
Advocate
Advocate

HI,

I need to collect all boundary condition data from Revit analysis model.

There is a line BC that has linear springs in all allowed directions, including rotation about X.

The problem is that the value is shown in the properties grid but is not retrieved by the API.

By using the useful tool Revit Lookup, it is possible to confirm that issue:

jorgebslu_1-1658398800712.png

 

FYI: BOUNDARY_DIRECTION_ROT_X = 2 (spring modulus)

 

I also tested what happen if I set a rotational spring to another line and I see that the value appears. I guess that the issue happens when both Translational + Rotational spring values are set for the BC.

jorgebslu_2-1658398820957.png

 

0 Likes
Accepted solutions (1)
346 Views
4 Replies
Replies (4)
Message 2 of 5

RPTHOMAS108
Mentor
Mentor

I can't replicate that in 2023 there are two separate BIPs:

BOUNDARY_LINEAR_RESTRAINT_X
BOUNDARY_LINEAR_RESTRAINT_ROT_X

What Revit version are you using?

 

Also you should try checking outside of RevitLookup to confirm since it is one of those cases where the availability of parameters depends on the value of other parameters.

 

220721a.PNG

0 Likes
Message 3 of 5

jorge.bslu
Advocate
Advocate

Hi @RPTHOMAS108 

Thanks for your replay.

My apologies for omitting the Revit version. Yes, I am using Revit 2023 as well.

Yes, I know that there are 2 BIPs as you can see in my two screenshots 🙂

I tried with my plugin implementation but I mentioned RevitLookup just to consider another tool available for everyone.

As I mentioned, in my case BOUNDARY_DIRECTION_ROT_X = 2 (spring modulus) but the dependent BIP is missing 😞

I am attaching the purged model with just the Physical+Analytical+BC.

jorgebslu_0-1658403204626.png

 

The weird location of the analytical member is intentionally in that way to let me test my plugin when the analytical and the physical elements have different locations.

 

jorgebslu_1-1658403940371.png

By debugging the incoming Parameters, you can see that only one X Spring Modulus is retrieved by the API.

Thanks

 

0 Likes
Message 4 of 5

mhannonQ65N2
Collaborator
Collaborator
Accepted solution

That's because you are using ParametersMap instead of Parameters. The parameters map cannot contain two different parameters with the same name.

Untitled.png

 

Message 5 of 5

jorge.bslu
Advocate
Advocate

Hi @mhannonQ65N2 

Thank you very much. You are right.

I thought that by using the appropriate value for BuiltInParameter was enough, but I did not realize about what you pointed out about the source of parameters.

 

0 Likes