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
Best Answer
-
You can just add "true" as an argument. Like this:
set bbox [model_handle GetBoundingBox true]
0
Answers
-
You can just add "true" as an argument. Like this:
set bbox [model_handle GetBoundingBox true]
0 -
Ben Buchanan said:
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
0 -
Rachit Semalty said:
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.
0 -
Ben Buchanan said:
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
0 -
Rachit Semalty said:
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.
0 -
Ben Buchanan said:
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
0