×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Are you an
Engineering professional?
Join Eng-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• 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.

# 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 ?

Hi,

Before asking is good to check the forum with Search functionality...check here

### 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

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).

### 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)

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)

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.

### 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 ?

Can you upload the part which is creating problems?

### 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.

### 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".

Regards,

Himanshu

### RE: Bounding Box command ?

Always use Search function of the forum first...

### RE: Bounding Box command ?

(OP)
Hi! Ferdo,

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

Regards,

Himanshu

### RE: Bounding Box command ?

I believe you didn't read the thread...at list the beginning, check the fourth post....anyway, check here why chm is not working...

### 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 ?

Search on Google for a solution for your situation, the chm file is OK, is working also on Win 7.

### 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.

#### Resources

Low-Volume Rapid Injection Molding With 3D Printed Molds
Learn methods and guidelines for using stereolithography (SLA) 3D printed molds in the injection molding process to lower costs and lead time. Discover how this hybrid manufacturing process enables on-demand mold fabrication to quickly produce small batches of thermoplastic parts. Download Now
Examine how the principles of DfAM upend many of the long-standing rules around manufacturability - allowing engineers and designers to place a partâ€™s function at the center of their design considerations. Download Now
Taking Control of Engineering Documents
This ebook covers tips for creating and managing workflows, security best practices and protection of intellectual property, Cloud vs. on-premise software solutions, CAD file management, compliance, and more. 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:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!