Get bounding box of displayed entities hyperview

Rachit Semalty
Rachit Semalty Altair Community Member
edited August 2022 in Community Q&A

Hi all. I am using the command set bbox [model_handle GetBoundingBox] to get the bounding box of my model. But it is returns the bounding box for the complete model and orphan nodes. I want bounding box only for the displayed components and nodes.

There is a parameter, displayed_entities (Optional), that may help but I am not able to find out the correct syntax. I have tried various combinations but not able to arrive at the right syntax.

If anyone knows the correct syntax, please tell me.

Regards,

Rachit

Best Answer

  • Ben Buchanan
    Ben Buchanan
    Altair Employee
    edited August 2022 Answer ✓

    You can just add "true" as an argument. Like this:

     set bbox [model_handle GetBoundingBox true]

Answers

  • Ben Buchanan
    Ben Buchanan
    Altair Employee
    edited August 2022 Answer ✓

    You can just add "true" as an argument. Like this:

     set bbox [model_handle GetBoundingBox true]

  • Rachit Semalty
    Rachit Semalty Altair Community Member
    edited August 2022

    You can just add "true" as an argument. Like this:

     set bbox [model_handle GetBoundingBox true]

    Hi Ben. Thanks for your reply. Yes the command works fine.

    But now there is one more problem. In my model there are some orphan nodes. Even if I hide the nodes and use the above command those are taken into account for bounding box creation. 

    Is there any way to get around the problem?

     

    Regards,

    Rachit 

  • Ben Buchanan
    Ben Buchanan
    Altair Employee
    edited August 2022

    Hi Ben. Thanks for your reply. Yes the command works fine.

    But now there is one more problem. In my model there are some orphan nodes. Even if I hide the nodes and use the above command those are taken into account for bounding box creation. 

    Is there any way to get around the problem?

     

    Regards,

    Rachit 

    Hi Rachit,

    I think the only way would be to delete them. You can check for and clear preserved nodes or just try and delete them by selecting them and deleting.

     

  • Rachit Semalty
    Rachit Semalty Altair Community Member
    edited August 2022

    Hi Rachit,

    I think the only way would be to delete them. You can check for and clear preserved nodes or just try and delete them by selecting them and deleting.

     

    Hi Ben. So, is there any way to do that in hyperview? Or will I need hypermesh?

    Regards,

    Rachit

  • Ben Buchanan
    Ben Buchanan
    Altair Employee
    edited August 2022

    Hi Ben. So, is there any way to do that in hyperview? Or will I need hypermesh?

    Regards,

    Rachit

    Right.  I was thinking of HM, sorry about that.  Not sure if there is a way to do this in HV, I don't think so.  I will let you know if I find anything.

  • Rachit Semalty
    Rachit Semalty Altair Community Member
    edited August 2022

    Right.  I was thinking of HM, sorry about that.  Not sure if there is a way to do this in HV, I don't think so.  I will let you know if I find anything.

    Hi Ben. Thanks for your help.

    Regards,

    Rachit