idea-statica / iom-examples

Examples of using IDEA StatiCa IOM API
MIT License
8 stars 4 forks source link

[QUESTION] ConnectedIds from welds are not the id from the beams #16

Closed GRamsaroep closed 4 years ago

GRamsaroep commented 4 years ago

Hi,

When i try to get the info out of the connectedids from the WeldData class, it gives the results of the "OriginIds" form the beams and not the unique ids. This is kind of confusing when i try to get the right object to being connected to the other one. This probably can be changed in the API?

For example:

Members M1, M2, M3 has different unique ids, but all the same Originids. With plates it works but not with the beams at the moment.

EDIT: Probably the same problem with the bolts, but most of the bolts goes throuhg plates. Not tested yet if the bolts shows the originids or the unique ids.

mpospisil commented 4 years ago

Can you attach me project - to be sure we are talking about same. We will look at it

GRamsaroep commented 4 years ago

connectionFromIOM-local.zip

GRamsaroep commented 4 years ago

Its probably the ids that are made first when members are deleted or made again after deleting them. I made beams/members a several time and deleted them several times. After the editing the members got different IDs and OriginIDs They are not similar to eachother, example member 1 has id 1. Now its like member 1 has id 4, but the originID is 1. Maybe that helps to figure the problem out in the api bug.

GRamsaroep commented 4 years ago

any news about the bug?

vadura-pavel commented 4 years ago

Hi, connectedids from the WeldData using primary OriginalModelId (https://idea-statica.github.io/iom/iom-api/latest/html/P_IdeaRS_OpenModel_Connection_BeamData_OriginalModelId.htm). In case if OriginalModelId doesn’t exist or is empty is used Id. So for you will be great if you correctly fill unique OriginalModelId in beamData.

GRamsaroep commented 4 years ago

I dont understand what you mean exactly. Because both OriginalID and id are not empty, but mutiple objects(members) has the same originalID, but unique ids.

This is the ouput from the project i made as a test.

Member 4 id= 4 , but OriginalID = 2 Member 3 id = 3, but OriginalID = 2 Member 2 id = 2, but OriginalID = 2

I dont know why IDEA gives those members all the same OriginalIDs.

vadura-pavel commented 4 years ago

Hi, Because both OriginalID and id are not empty, but mutiple objects(members) has the same originalID, but unique ids. - This is the problem. OriginalID cannot be same. IDEA do not generate OriginalID - its came from import. I assume you work with ideaCon file which was created from previous import. Am I right? So problem is in first import IOM model to IDEA.

GRamsaroep commented 4 years ago

Yes, now I understand the problem. Thank you very much. It is indeed a project made from the IOM model. Thanks again!