×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Bounding Box command ?

Bounding Box command ?

Bounding Box command ?

(OP)
Hello Everyone,

I want to check the maximum overall size of an oval solid. How can i check that ?

I mean the maximum length in "y" direction, maximum breadth in "x" direction & maximum height in "z" direction.

Is there any command like Bounding Box ?


Regards,

Himanshu

RE: Bounding Box command ?

This question came up several years ago, but Fernando's link didn't show the threads I recall.

Anyway, there are two solutions within CATIA for this: 1. the Rough Stock command, and 2. the Measure Inertia command.

The Rough Stock command is available in the GSD workbench, but only when you have one of the NC Manufacturing licenses.

The Measure Inertia command requires that you customize the options and include the Principal Axes, and the three dimensions will be displayed at the bottom of the Measure branch of the tree (BBLx, BBLy, BBLz).

Here's a post I found when searching for "rough stock": http://www.eng-tips.com/viewthread.cfm?qid=128636

I recall several users posted that both of these commands were based on the Principal Axes, which is not always the smallest bounding box. So, macros were suggested and written. (A previous client of mine, wrote a macro that added 1/2" of stock all around the minimum stock size.)

RE: Bounding Box command ?

(OP)
Thankyou very much, Jackk

After joining eng-tips.com i found it very very useful for CATIA V5 Users to learn a lot of new things everyday.

Ferdo, before posting this thread i tried to search with "bounding box" but i was not able to get my desired result from those threads.

I should have searched with "rough stock" as jackk did smile



Regards,

Himanshu

RE: Bounding Box command ?

Problem is not everyone has NC manufacturing license...but...

Quote (jackk)


I recall several users posted that both of these commands were based on the Principal Axes, which is not always the smallest bounding box. So, macros were suggested and written. (A previous client of mine, wrote a macro that added 1/2" of stock all around the minimum stock size.)

If you have the license and your company agree with loosing some raw material (which means increase of the costs of the final product) you can use "rough stock" command as jackk pointed.

If I remember well, also in CATIA Portable Script Center there is a Bounding Box macro which can be easy modified to add how much you want around bounding box (and several other solutions can be found in those threads).

Regards
Fernando

https://picasaweb.google.com/102257836106335725208
https://picasaweb.google.com/103462806772634246699...

RE: Bounding Box command ?

Hi Ferdo,
When running Bounding Box scrip from Catia Portable I get an error:
ERR_1002
Description: Object required
Line: 96
Colum: 4
Here is the line from script

CODE

Set hybridBody1 = hybridBodies1.Add 

Any clue how to fix it?

Running R21
Thx, Puk

RE: Bounding Box command ?

(OP)
Hi! Puk,

Can you please tell me how to run a macro from the CATIA Portable Script Center ?


Regards,

Himanshu

RE: Bounding Box command ?

I'm not running directly from Catia Portable; I've created my own folder - "library" with a couple of scripts that I've copied from the Catia Portable.
Then from "Tool" pull down menu when you select "Macros" command you have to define the "path" where your scripts are stored and they will show up as "available" for you to run.

RE: Bounding Box command ?

(OP)
Thanks, puk for your reply.

But i am new to CATIA Portable Script Center, can you please tell me where (CATIA Portable) lies ?

Regards,

Himanshu

RE: Bounding Box command ?

(OP)
Thanks, puk for the link.

Ferdo, i have found the CATIA Portable Script center .chm file & this is a gold storage place for me for CATIA Macro programming & other useful tips. It's a WOW!!!

Thanks, Ferdo can you please tell me that do you have the latest .chm file with you in which you may have updated many other new things ?

Because the one i got is from the thread posted in the year of 2010.

Regards,

Himanshu

RE: Bounding Box command ?

Hi,

@ hims1980
The last version is v2 and it is what you have from that thread indeed. From that time I didn't create another chm file (luck of time to do this) but you can find a lot of other new macros created (by others or by me) using search in different CATIA forums.

@ puk
Code should work fine in CATScript at least up to CATIA v5r18, I didn't do any test in newer versions.

Regards
Fernando

https://picasaweb.google.com/102257836106335725208
https://picasaweb.google.com/103462806772634246699...

RE: Bounding Box command ?

@ferdo
indeed it was working fine; issue started when upgrading @R21.
Any "free" time on you to check the code in newer releases?

RE: Bounding Box command ?

You can control the offset of the bounding box by modifying the parameters (if you need but I don't think is necessary) and look always in the lower left corner of CATIA window to check messages...for me is working fine in r21, test the attached file.

Regards
Fernando

https://picasaweb.google.com/102257836106335725208
https://picasaweb.google.com/103462806772634246699...

RE: Bounding Box command ?

Thanks Ferdo for checking up; at least the script is not corrupt.
I've tested on a coleague machine and is working; there has to be something else - hopefully not related to catia - that is causing this error on my machine.

RE: Bounding Box command ?

(OP)
Hi! Ferdo,

I have copied the .chm file of CATIA Portable Script Center in my laptop & i am not able to view the codes of any scripts on the right hand side of the window.

Whenever i click or double click on any script on the left hand side tree, i get a message on right side as "Navigation to the webpage was cancelled".

Can you please help me out for this ?

Please see attached jpg for your reference.


Regards,

Himanshu

RE: Bounding Box command ?

(OP)
Hi! Ferdo,

I have copied the .chm file from the same thread that you have forwarded me the link in your thread.

It's the problem with the same .chm file.

Regards,

Himanshu

RE: Bounding Box command ?

(OP)
Mine is Windows 7 & not XP. It doesn't shows the security warning dialog box.


Regards,

Himanshu

RE: Bounding Box command ?

(OP)
ok, Ferdo thanks & i am sorry to disturb you so much.....

I will search on Google for my solution.


Regards,

Himanshu

RE: Bounding Box command ?

What about "Free Space" or "Spatial Query" commands from the Digital Mock up workbenches, might work.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Resources

eBook - The Future of Product Development is Here
Looking to make the design and manufacturing of your products more agile? For engineering and manufacturing organizations, the need for digital transformation of product development processes just became more urgent than ever so we wanted to share an eBook that will help you build a practical roadmap for your journey. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close