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:

FLIP.zip


B747US
 Share

Recommended Posts

Hi There

 

1) Anybody knows why FLIP.zip under FTP/VB_script is not working the way it should?

2) Dose anybody know how to fix it?

3) Can this Script mirror NC files with I & J moves in them as well? if not:

4)how can mirror I & J moves properly?

 

 

Thanks

Link to comment
Share on other sites

Works well here, but using only R's. I think that's what Roger originally made it for.

 

But here is his note:

quote:

'// Description: "flips" a lathe NC file across the X axis

'//

'// Inverts the sign on ALL "X" coordinates

'// Inverts arc directions: G02<->G03 (also handles G2<->G3 format)

'// Inverts the sign on ALL "I" coordinates (only those in an Arc motion block)

'//

So maybe it should work with I's also...

Link to comment
Share on other sites

I saw this -> "I think that's what Roger originally made it for."

 

And investigated because I thought that Mark was confused, as I really don't do VBScripts.

So I downloaded FLIP.ZIP that lo and behold - my name is on it.

(Note in the version log - "Enhanced version of a original sample script that Mick did").

I unzipped FLIP.VBS and it runs fine for me (I only tried X2-MR2), but since the VBS is dated 2004, it must have run on earlier versions of X.

 

Sorry B747US, but I don't know why it errors for you.

 

You could try this...

 

Change this ->

code:

Set FSO = CreateObject("Scripting.FileSystemObject")

 

' -- Build path to the default NC folder

strSwitched = GetPathFromExtension("NC") + "*.NC"

To this ->

code:

Set FSO = CreateObject("Scripting.FileSystemObject")

 

' -- Build path to the default NC folder

' Comment out the GetPathFromExtension line

'strSwitched = GetPathFromExtension("NC") + "*.NC"

' Add new declaration for strSwitched

strSwitched = "*.NC"

It is very possible that this will just lead to to another Error message but it's worth a try.

Link to comment
Share on other sites

Mark

 

Do Developers have different FTP site? I like to try.

I’ll appreciate if you could mirror 4 files I have, these have “I & J” moves, does flip works on “I & J” as well? if you can do these where can I send the files, I will need them to be mirrored about both “X” and ”Y” axis.

Thanks a lot

Link to comment
Share on other sites

quote:

Do Developers have different FTP site?

They're a part of this forum, any one can post a question there.

 

Also, this vb only "flips" a lathe NC file across the X axis and NOT Y axis, sorry.

For a person good with vb, it should not be hard to make another one just for Y axis.

 

my email:

jmqminc at aol dot com

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