Using regions to apply pressure
Hello,
I would like to import CATIA CAD file to HM with publications. After import I have regions, but I cannot to use it for example to apply pressure on surface. Eventually I want to prepare tcl script to automatic apply BC on surfaces (after mesh). Is there any option to use regions?
Best regards
Answers
-
If you can not do this task in interactive mode, maybe no way to do with a script.
Share your model?
0 -
Unfortunately I cannot share my model. But I have access to surfs id in regions:
*setvalue regions id=20 STATUS=2 simpleids={surfs 87 138}So for now I need to only extract surf number to create *createmark
0 -
Is this a shell or solid model?
If it is a solid model, i would take a look at SimLab, as it can record a project, with the steps made, such as a script, and also it can have access to some CAD parameters. Take a look at SimLab Learning Center, if you're interested.
0 -
I tried to work with SimLab, but I have a lot of problems with reading Catia publications to groups (I used SL_PUB_ name before publications name). Sometimes it is working, sometimes it is not... That's why I tried to use HyperMesh (there is no problem with reading publications).
Anyway, I found solution:*createmark surfaces 1 [hm_getvalue regions id=1 dataname=simpleids]
but command select only first surf id, I don't know why it is skipping other two.
After
hm_getvalue regions id=1 dataname=simpleids
I have
309 321 338
but when I tried to run whole command, only first sufr id was added /emoticons/default_sad.png' srcset='/emoticons/sad@2x.png 2x' title=':(' width='20' />
EDIT:
I found solution. Need to change *createmark to hm_createmark
hm_createmark surfaces 1 [hm_getvalue regions id=1 dataname=simpleids]
0 -
Use hm_createmark or {*}
*createmark surfs 1 {*}[hm_getvalue ....]
Or eval
eval *createmark surfs 1 [hm_getvalue ....]
0