🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Get bounding box of displayed entities hyperview

User: "Rachit Semalty"
Altair Community Member
Updated by Rachit Semalty

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

Find more posts tagged with

Sort by:
1 - 6 of 61
    User: "Ben Buchanan"
    Altair Employee
    Accepted Answer
    Updated by Ben Buchanan

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

     set bbox [model_handle GetBoundingBox true]

    User: "Rachit Semalty"
    Altair Community Member
    OP
    Updated by Rachit Semalty

    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 

    User: "Ben Buchanan"
    Altair Employee
    Updated by Ben Buchanan

    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.

     

    User: "Rachit Semalty"
    Altair Community Member
    OP
    Updated by Rachit Semalty

    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

    User: "Ben Buchanan"
    Altair Employee
    Updated by Ben Buchanan

    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.

    User: "Rachit Semalty"
    Altair Community Member
    OP
    Updated by Rachit Semalty

    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