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:

filename? using nethook


Recommended Posts

Is there a way to get just the filename in a nethook.

whatever the current mcx file that's open. how would we reference its filename?

 

any ideas.

 

there's a lot of get current paths

but not too much about current file

 

headscratch.gif

Link to comment
Share on other sites

Well As much as I really do appreciate the reply. it sure didn't do the trick.

 

actually if there were a

mastercam.mcfile.getcurrentfilename

that'd be it, buuuuut. I guess they forgot it.

 

*shrug* seems pretty simple though.

 

this programming stuff is probably onea the biggest headaches. Ya know, I mean a filename?

 

I mean come on man. Here we are 2006

and we still aint got it right.

5 years of development????

 

I'm a second generation user of mcam

started with version 6

my dad started with it at 3!

And all the times we've went up to bat for mcam with the bigger companys and all the xxxxia lovers.

alllll this time and we're still in the dark ages of information hiding.

sure am disappointed.

Its just that development could go soooo much faster if things were just out in the open.

 

cus honostly you could put it out there in plain english... spelled out and people wouldn't know what to do with it.

And those who got the ideas of what to do with it could really get things going.

 

I dont know. oh well. onea these days I guess.

 

thanks for the reply. have a good one.

they really outa bring back the mutant league football. that was a bad a-- game!! smile.gif

Link to comment
Share on other sites

quote:

I mean come on man. Here we are 2006

and we still aint got it right.

5 years of development????


The .NET API is an on going project and as such will be improved and enhanced as we move forward. With X2 we are already re-organizing the classes in the API and adding new functionality to them.

 

If there is specific functionality that is lacking that you need to make use of please feel free to create a thread here listing that functionality that you need as we do use customer feed back as one medium that helps us to prioritize our API.

Link to comment
Share on other sites

You may already know this, but just in case...

 

Select the NETHOOK.DLL (in the References branch) in your NETHook Project and right click on it and select 'View in Object Browser'.

Expand the {} Mastercam branch and drill down from there into the namespace to see what is there.

 

I see a GetCurrentFileName() member of 'MCFIle'

 

What version of X are you running ?

You can also select 'Properties' on the same right click menu and an check the version of the NetHook.DLL. On my system (for X-MR2) it reports Version "1.0.2321.15439"

Link to comment
Share on other sites

I get a version # of

 

1.0.2014.17549 ?

 

there's also a runtime version

 

1.1.4322

 

and under the object browser. the only gets I have is:

 

getpathfrom and

getpathof

 

but no getcurrentfilename

 

looking at the version #'s, looks like mines not up to date.

 

hm. dagnabit.

 

is there a way you could send me an updated sdk?

 

whenever I contact the reseller, he talks like he dont know whats going on smile.gif

 

and the X version is x-mr2.

 

actually if I make a c-hook. and run it in X

it tells me that my c-hook isn't the right version.

pops up and tells me I gotta do something and recompile.

Link to comment
Share on other sites

the ol man was tellin me about how they have an intranet thing, that the dealer was talking about being able to log on to, to get the latest and greatest.

 

they never did give us a login. but we are registered. so if this maybe resolved by being able to get out there on the intranet thing.

 

my sims is

 

or whatever else may need to be done, can uh just email me at the [email protected]

 

sure do appreciate the help

 

Link to comment
Share on other sites

wait a minute.......

 

I may have to take back somea what I said.

 

I have an mr2 folder. and I know I double clicked the setup.exe the other week. and waited for something to setup.

 

but we have different dates on our nethook.dll

 

I'll do an update and see how this goes.

 

and here I've been bad mouthin the X

smile.gif

 

may even hear the pop from there smile.gif

Link to comment
Share on other sites
  • 10 years later...

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