Hello,
I am new in this forum.
I am a student and currently working on a project of my university. We generate different STEP-Models and import them with a script in hypermesh. The STEP-Models can have different geometries. The script is producing one component and is meshing the geometry successfully in the first step. Right now, I have a problem with the constraints and the load. Due to the variable geometry, the IDs of the surfaces differ with each run that produces the models. So, at this point I am not able to select the surfaces for the constraints because the IDs are always different (in the script below surface ID 543 and 489).
Part of the script:
*startnotehistorystate {Created Constraints}
*createmark surfaces 1 543 489
*loadcreateonentity_curve surfaces 1 3 1 0 0 0 0 0 0 0 0 0 0 0
*createmark loads 0 1 2
*loadsupdatefixedvalue 0 0
*endnotehistorystate {Created Constraints}
My question now is how can I select the surfaces without the IDs? The first surface of the constraint is always nearby the point x=0, y=0, z=0 but the second surface can be at any possible position in a distance divided in 1400mm steps. In my current example the two surfaces for the constraints have a distance of 4410mm. But in the next example it could be 5810mm or 7210mm.
I am looking forward to your answers
/emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />
Kind regards