Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Optimal Bounding Box 5

Status
Not open for further replies.

cilici

Mechanical
Dec 2, 2016
134
RO
Hello,

I've developed an application to compute the minimum/optimal Bounding Box. More info here. Activate the subtitles for more details.
It has been tested on two systems only (R21 and R27 on Win7 64bits) so have mercy. [bow]

The download link is in the description.

It is free to use, distribute and so on.

As usually, any feedback (especially the negatives) is welcome.

Calin
 
Replies continue below

Recommended for you

sorry not running an EXE from any forum on my computer...

PS : share the code if you want to share anything.

Eric N.
indocti discant et ament meminisse periti
 
Sir could you please post code as requested above.

Regards,
Jenia Ladkov
 
sorry not running an EXE from you on my computer
That is both offensive and personal.

I've been sharing my knowledge for the past 15 years starting with the late catiav5forum.de and you very well know it. However, you prefer to attack me. Sour down, Eric.

There is quite a number of people running my EXEs and if you're not one of them is not a big loss.

It is a free tool that I'm happy to share and even support it.

Good luck,
Calin

 
Sorry cilici,

Is not working in R26...

Capture_jgbwmm.png


Tiago Figueiredo
Tooling Engineer

Youtube channel:
 
Till I fix it, make sure you select the precision value from combobox. It shouldn't be empty, don't know why is set empty for you.
 
Oh, ok, thanks a lot Tiago.

Could you please email me the full error message?

Thank you,
Calin
 
Sorry Calin, I did not mean to be personal... I edited my post to avoid further confusion.

again, please accept my apologies...

Eric N.
indocti discant et ament meminisse periti
 
Very interesting this topic......

Could someone explain me what is the practical use for the Bounding Box?

Thanks!

CAD 2015
 
Useful for raw material order during design stage (especially for complex parts) can be also used during price quoting.

Regards,
Jenia Ladkov
 
This looks really handy.
Can it be run from a usb? I couldn't get it too but I'm probably doing something wrong.
As I work mainly on other companies pc's getting an exe on there systems is usually impossible.
You just end up having a load of IT guys moaning if you ask :(
Had one guy screaming at me once because I asked for notepad ++ :0
The you tube vid looks really good though, nice job.
 
Jenial,

Would the Bounding Box tool be used for packaging tasks as well?




CAD 2015
 
Thanks for the interest. Here is the updated version.

The most common use of bounding boxes is for NC machining (although, if you're using NC machining in CATIA there is an out-of-the-box tool to do that but it is not always the best bounding box being created), early raw material purchasing and for packaging.

@Eric: I know you are well intended and I surely understand your reluctance to run exe from unknown sources.

@all interested, the tool does the following (roughly):
- create a somehow arbitrary axis system;
- compute the extract of the body(ies);
- compute the extremums;
- compute the end-planes and offset them by the desired value;
- compute the intersection of the proper pair of planes;
- compute the intersection points between the intersections above;
- compute the contour and sweep it along the corresponding line: the result is a bounding box with respect to the initial Axis System;
- compute the three surfaces (there are 6 actually but they are in pairs) that make the bounding box and measure them;
- apply the theory from here to determine the minimum area for each of the three surfaces;
- create a body and Close Surface the final rotated surface from above;
- create the parameters and formulas if necessary;
- delete the axis system.

All steps except the "create" ones are done in memory without appending anything to the tree.

No tricks, no hacks, no rabbits in the hats.

Hope this helps,
Calin
 
Thanks for the info... I will try to bring that in 3DX with EKL

Eric N.
indocti discant et ament meminisse periti
 
This looks like a great tool, unfortunately it does not work for me either on R25. (Using the Updated version)

When I launch the .exe from my desktop, it brings up a Microsoft .NET Framework error box stating:
The server threw an exception. (Exception from HRESULT: 0X80010105 (RPC_E_SERVERFAULT)).

When I hit continue to ignore the error, the Body box did not select the PartBody and the Precision box is empty.
When I hit the select Icon next to the Body box, it throws up a different Microsoft .NET Framework error stating:
Object reference not set to an instance of an object.

How did you set it up to launch from a Catia icon?

 
Please post the full initial error message so I can debug it.

Thanks,
Calin
 
The first error details are:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Runtime.InteropServices.COMException (0x80010105): The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))
at INFITF.Application.set_HSOSynchronized(Boolean oHSOSynchronized)
at BoundingBox.BoundingBox.BoundingBox_Load(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2633.0 built by: NET471REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
BoundingBox
Assembly Version: 1.2.0.0
Win32 Version: 1.2.0.0
CodeBase: file://netapp2/Users/Redirection/jzecha/Desktop/BoundingBox.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 14.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2633.0 built by: NET471REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2612.0 built by: NET471REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
 
Hi Calin

R24 is giving below error, for R28 I have a problem to enroll the license, I have to call DS for support next week :) .
By the way, it would be better to have app "always on top"? The error is coming when I want to select PartBody and if I click on continue the app is disappearing.

Great the UI, let to choose what you need to see, good idea.

And another observation. How to handle this? Need a message to warn users that they have to select one of the default planes created by CATIA, normal on the first face selected.

Capture_n33xih.jpg


See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at BoundingBox.BoundingBox.cmdSelectBody_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2563.0 built by: NET471REL1
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
BoundingBox
Assembly Version: 1.2.0.0
Win32 Version: 1.2.0.0
CodeBase: file:///C:/Temp/BoundingBox.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 14.7.2558.0 built by: NET471REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2558.0 built by: NET471REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2563.0 built by: NET471REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2558.0 built by: NET471REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2558.0 built by: NET471REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2558.0 built by: NET471REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2612.0 built by: NET471REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2558.0 built by: NET471REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.




Regards
Fernando

- Romania
- EU
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top