Get bounding box of displayed entities hyperview
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
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
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.
You can just add "true" as an argument. Like this:
set bbox [model_handle GetBoundingBox true]
You can just add "true" as an argument. Like this:
set bbox [model_handle GetBoundingBox true]