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:

VBScript function: Net surface creation


Recommended Posts

Hi,

 

I would like to create surface Net with VBScript. I don't know how to do that.

 

To cretae this surface, I need to create first a rectangle. This is easy with VBScript but there is no function on VBScript showing how to create Net surface from rectangle.

 

So, how can I do that? Is there any VBScript function that permit NET Surface creation? Otherwise, is there any other way?

 

Thank you for your help.

 

Greeting

 

Jaouad

Link to comment
Share on other sites
  • 1 month later...

Hi Roger,

Jaouad already have the Chook SDK in his possession, one of the major problem he has and that we have trouble to help him out is to install properly the SDK into Visual studio. It looks like there are a lot of environment variable or parameters that are not well configured after the install. Could you or anybody help with this issues or tell us where to look at to find more information on this?

Thanks

Link to comment
Share on other sites

"Jaouad already have the Chook SDK.. "

 

What version of the SDK?

 

If you have the original X4-MU3 SDK,

you want to re-download it as that X4-MU3 SDK install had some "bad" files.

 

With the latest X4-MU3 SDK and VS2008 (Pro) it is just a matter running the install.

 

If when you start the CHookWizard you see this message ->

"Cannot find mastercam SDK install directory - possible registry error"

 

This sounds like an important error doesn't it?

Well it is not.

 

When you click 'OK' to dismiss this error message, does the CHookWizard dialog appear?

 

On the Step #2 (page) of the Wizard there are (2) path fields.

1> Path to Mastercam Startup Folder

2> Path to Mastercam C-Hook SDK

 

If you did get the "possible registry errors" message...

All this means is one or both of these paths is "empty"!

Just enter the path(s) everything should work fine.

Link to comment
Share on other sites

Hi Roger,

I have SDK 4 and Mastercam X4 MU3

 

I succeed to setup the visual studio 2008 with Mastercam. The environment variables are well configured.

 

But I couldn’t run the CHookWizard when trying to start with a new project from it. I got an error message:

 

Creating project “Project1”.....Project creation failed

 

 

Also, I didn’t find any NetHook Surface class that permits to create a Net Surface (creating surface from rectangle). Can you please give some help on that?

 

Thank you

 

Jaouad

Link to comment
Share on other sites

"I have SDK 4 and Mastercam X4 MU3"

 

SDK 4 ?

 

There are different SDKs for X4 and the for the X4-MU# versions.

If you are running Mastercam X4-MU3, you must install the X4-MU3 SDK.

 

After installing the SDK, the Wizard's files will be here:

 

1> In the "main" SDK install folder will be the ChookWizard.dll

 

2> In the Program FilesMicrosoft Visual Studio 9.0VCvxprojectsMFC folder will be (2) ChookWizard files.

If you open the CHookWizard.vsz file in Notepad, the important line to check is this ->

Wizard=VsWizard.VsWizardEngine.9.0

The number at the end must be "9.0"

 

3> And the 'template' files used by the Wizard will be here -

Program FilesMicrosoft Visual Studio 9.0VCVCWizardsCHookWizardchookwizardTemplates1033

 

I just uninstalled and reinstalled the X4-MU3 SDK

and the ChookWizard ran fine under Visual Studio 2008.

Link to comment
Share on other sites

I followed the instructions you gave me.

The wizard can run and asks to follow the 2 steps. But when clicking finish, I got the same message error.

 

Creating project “Project1”.....Project creation failed

 

Sometimes, Visual crushes.

 

Did I do something wrong?

 

you said later in the 3th step, the "template" file must here:

 

3> And the 'template' files used by the Wizard will be here:

 

Program FilesMicrosoft Visual Studio 9.0VCVCWizardsCHookWizardchookwizardTemplates1033

 

Or here:

 

Program FilesMicrosoft Visual Studio 9.0VCVCWizardschookwizardTemplates1033

 

You put the chookwizard folder twice.

 

Thanks Roger for your help.

Link to comment
Share on other sites

This is correct -- CHookWizardchookwizard

 

3> And the 'template' files used by the Wizard will be here -

Program FilesMicrosoft Visual Studio 9.0VCVCWizardsCHookWizardchookwizardTemplates1033

 

The only difference in the path would be if you are running a 64-bit OS, then the Program Files

part of the path would be Program Files (x86)

 

And the contents of the CHookWizard.vsz file is --

 

VSWizard 7.1

Wizard=VsWizard.VsWizardEngine.9.0

Param="WIZARD_NAME = CHookWizard"

Param="RELATIVE_PATH = VCWizardsCHookWizard"

Param="FALLBACK_LCID = 1033"

Param="WIZARD_UI = FALSE"

Param="SOURCE_FILTER = txt"

 

And you are running Visual Studio 2008 "Pro"

not and "Express" version of VS

Link to comment
Share on other sites

Hi Roger,

 

I tried what you advised me to do step by step. I’m still receiving the same error.

 

I suppose the Chook-SDK installation kit given to me is corrupted.

 

Could you please send me a new CHook-SDK development kit to try it?

 

Thanks

 

Jaouad

Link to comment
Share on other sites
  • 2 weeks later...

Hi Roger,

 

Could you please send me all files that you have inside the folder:

 

Program FilesMicrosoft Visual Studio 9.0VCVCWizardsCHookWizardchookwizardTemplates1033

 

I would like to try them into my wizard.

 

Thank you

 

Jaouad

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