-
Posts
97 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Store
eMastercam Wiki
Blogs
Gallery
Events
Everything posted by PMDc
-
NETHook works in X5 but not X6
PMDc replied to PMDc's topic in Mastercam C-Hook, NET-Hook and VBScript Development
Well that was painful. The system I used for testing had Windows 7 64-bit, Mastercam X6 64-bit, and MS Office 32-bit. All was well until I tried to get my MS Access DB NETHook to run. I had to uninstall the 32-bit MS Office and 2007 Compatibility Pack and install the 64-bit version of Access DB Engine Redistributable. Now all is happy with the Platform set to Any CPU. My next step is to test the 64-bit OS with 32-bit X6 & the 32-bit Office. Doubt it will work but want to know. -
Mastercam Solids: Face-to-Face Fillets following an Angled Cylinder
PMDc replied to richbass's topic in Industrial Forum
If the walls of your model are wrong and need the cylinders to drive them the attached file is how I would do it. If the walls need to remain as they are but need a corner fillet that shares the same center line or outer profile as the cylinders, well that is a different method. MASTERCAM SOLID FILLET PROBLEM_PMDC.MCX -
NETHook works in X5 but not X6
PMDc replied to PMDc's topic in Mastercam C-Hook, NET-Hook and VBScript Development
I am running 64-bit MC. Sorry I didn't give you that information. I'm writing to an MS Access Database file. -
NETHook works in X5 but not X6
PMDc replied to PMDc's topic in Mastercam C-Hook, NET-Hook and VBScript Development
Ok, so with much trial and tribulation I finally found that my error message was from the Platform setting. Has to be x86 for the DB error to go away. So now I have my test project (VS project that runs without Mastercam) working fine for my X6 version. However, when I try to call it up in Mastercam I get Unknown File Type - Open Error. I changed the Framework as you described above for both projects. I'm going to keep trying but if you think of something that would cause this... oh and I also do not see my Icon in X6 even though the function table file is there. Is there something I need to update for the .ft file for X6? Thanks for all the help! -Pat -
I agree but glad we can at least do this. X7 finally has some modeling functions that have been in the Parasolid kernel for a few years, so I'm glad to see that. Drafting is another area on my wish list for Mastercam but I would rather they concentrate resources on toolpath development. My $0.02
-
K2, I apologize for not posting a video more relevant to your question. http://screencast.com/t/ceqv9Avl8do This one uses circular pattern instead of manual. -Pat
-
NETHook works in X5 but not X6
PMDc replied to PMDc's topic in Mastercam C-Hook, NET-Hook and VBScript Development
Thanks for the help Roger! I will let you know how it turns out. -Pat -
K2, I recommend building a library (as you go) of solids for Boolean operations for hole features. It saves time in my opinion. The screencast below shows how I do it. http://screencast.com/t/kaeVrNJB Hope this helps, -Pat
-
NETHook works in X5 but not X6
PMDc replied to PMDc's topic in Mastercam C-Hook, NET-Hook and VBScript Development
I think you just answered my question with your questions but due to my ignorance on many levels.... I have 15.0.4.3 installed. Is that 64-bit? Based on your questions, I evidently need an X6 version of my application? What do I do to upgrade an X5 solution to an X6? -
My project database NetHook works great in X5 but I get the following error in X6. "The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine." So I installed the "fix" for this... http://www.microsoft.com/en-us/download/details.aspx?id=13255 but this didn't work. This fix DID work for the X5 version on a machine that did not have Access loaded. Do I need to change something in the code settings for X6 and/or X7? Is the NetHook2_0.dll different in X6? Thanks, -Pat
-
Tab Index Not Working in Mastercam
PMDc replied to PMDc's topic in Mastercam C-Hook, NET-Hook and VBScript Development
Roger.... once again you are the "Shell Answer Man" The DialogResult was set to OK. Changed to none, all is happy again! Thank you very much!! -Pat -
Tab Index Not Working in Mastercam
PMDc replied to PMDc's topic in Mastercam C-Hook, NET-Hook and VBScript Development
Well I thought I fixed it.... The ShowDialog() actually closes my form when clicking my Apply button which does not contain a Close() command. I had to switch back to Show() so the button works correctly. I found the thread below discussing I think the same issue but I'm confused because it seems to describe the opposite behavior I am seeing. *Sigh* If anyone has figured this one out please let me know. Thanks, -Pat http://www.emastercam.com/board/index.php?showtopic=57332&hl=showdialog#entry641117 -
Tab Index Not Working in Mastercam
PMDc replied to PMDc's topic in Mastercam C-Hook, NET-Hook and VBScript Development
Mick, I found the issue. I was using frm.Show() instead of frm.ShowDialog(). All is well now. Thanks, -Pat -
Tab Index Not Working in Mastercam
PMDc replied to PMDc's topic in Mastercam C-Hook, NET-Hook and VBScript Development
I have a windows form with multiple data entry fields. While debugging I can tab through these fields as expected. Meaning; cursor on the field I want, enter the data, hit tab and the cursor moves to the next field. This is what I expect and how it works in VS debug. However, when the dll is launched in mastercam the tab key does nothing, well that's not true, I get the windows default beep sound. I can use my mouse to get to the next field but I expect it to advance to the next tab index like it does in debug. Thanks, -Pat -
Tab Index Not Working in Mastercam
PMDc replied to PMDc's topic in Mastercam C-Hook, NET-Hook and VBScript Development
Thanks Mick. I have the same result with this code as well. Scratching my head on this one. Frustrating gremlins. -Pat -
I have a form that tabs through the fields as expected while debugging. However, when the dll is called within Mastercam it does not work. The only differences in the code are shown below. string strMastercamfile = Path.GetFileName(Mastercam.IO.FileManager.CurrentFileName); //string strMastercamfile = "22499-PREP.MCX-5"; The above code runs in Mastercam. In order for the debug to test the string must be defined. Has anyone seen the Path.GetFilename mess up a Tab Index function? Thanks, -Pat
-
RunMastercamCommand Doing my Head in.
PMDc replied to mykul's topic in Mastercam C-Hook, NET-Hook and VBScript Development
Tim, I will contact you as soon as I have the release in hand. Should be in a few weeks. Thanks, -Pat -
Passing Data from Nethook to post?
PMDc replied to Zoffen's topic in Mastercam C-Hook, NET-Hook and VBScript Development
Roger you are awesome!!! Thank you very much! -Pat -
RunMastercamCommand Doing my Head in.
PMDc replied to mykul's topic in Mastercam C-Hook, NET-Hook and VBScript Development
Rocheey1, I have a working prototype of an Access database that allows the user to open a dialog with the Project Data entry. It stores information in the database based on Customer P/N so there can be multiple MCX and NC files listed under each P/N. I'm also working on a stripped down version that does not use a database but a .csv file for each NC file written that stores Customer info plus NC rev number. The data is not saved in the MCX but to an external file. I've got a small fortune wrapped up in this and have some help getting it to market. The intent being to offer to the small guys that don't need a PLM or MRP system but need document control and basic project information stored. -Pat -
Passing Data from Nethook to post?
PMDc replied to Zoffen's topic in Mastercam C-Hook, NET-Hook and VBScript Development
I have the PST->NETHook working, the problem is that its not passing the updated value back to the PST. I'm on X5 so not sure if that is the problem. -
Passing Data from Nethook to post?
PMDc replied to Zoffen's topic in Mastercam C-Hook, NET-Hook and VBScript Development
Roger, Thanks for the sample code. It's been a big help. I used this code to pass the NC-code revision to a .csv file to then be read, incremented, saved, then passed back to the PST. I have everything working except the passing back to the PST. I have the message box displaying the correct data before and after the "Mastercam.Posting.PostingManager.PostProcessorArguments = args;" yet the "sARG3 = ", sARG3, e$ is not updated in the PST. What am I doing wrong? Thanks, -Pat -
Thanks for the response. I didn't see it until after I posted mine. Just getting familiar with the process right now. I have the "project info" that I referred to in another post as well as NC code revision level but that one is proving to be quite the rabbit hole at this point. It's a simple concept until you have to capture all the NC code filename outputs available. Meaning the user can enter a unique NC filename and that makes it tougher to track from a database. But I'm just getting started. Thanks for the help!
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.