Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

Recommended Posts

Been picking things up so wanted to share. Do not laugh.

 

code:

'////////////////////////////////////////////////////////////////////////////////

'//

'// Author: Ronald Branch

'// Date: 04/05/2004 07:26 AM

'// File Name: Boundbox

'//

'// Description: Mastercam VB Script

'//

'// Comments: Will make Bounding Box on Certain Level any Color you want

'// Use this at your own risk.

'//

'////////////////////////////////////////////////////////////////////////////////

Dim r 'Level in which to put Bounding Box

Dim s 'Color in which to make Bouning Box

'Dim t 'View in which to see part and bounding box

 

Call Main

 

 

Sub Main

If askNumber("What Level for Bounding Box" ,0 ,255, r) Then

If askNumber("What Color for Bounding Box" ,0 ,300, s) Then

' If askNumber("What View to Make Bounding Box 1:Top 2:Front 3:Back 4:Bottom 5:Right 6:Left 7:ISO" ,0 ,7 ,t) Then

' SetGViewNumber (t)

' End If

SetEntityColor (s)

End If

SetLevelByNumber ®

End If

RunMastercamCommand "makebbox"

SetGViewNumber (7) 'Just take out ' above and put here to have it end at a certain view

RunMastercamCommand "fit"

 

End Sub

Hope you like it and feel free to improve.

Link to comment
Share on other sites

Nice work ,Millman !

 

Yet I do not find it very useful ,IMHO,,especially if you use import named levels and EA.manager .

I use bbox a lot and like it !

but...

I want to hijack a thread a bit :

Mick ,what I really need and I think others too is sorta boundary form command .

What I do now is this :

I throw all my surfaces for milling on a separate level ,convert them to solid or if there is existing solid smile.gif I use it for a boundary box

After that I run solid->layout command and use a border contour for building boundary part form .

It is not an easy thing ,this boundary countour I must translate from one place to another and so on .

If it is possible to combine commands to make boundary form curves by one command it would be greate .

 

Teh hijacker .

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...