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:
I also have a question.
I made a chook with STRINGTABLE ID=5092’TEST STRING',
and made a .ft file for it.
When I was playing with solid and clicked undo button, Messagebox of ’TEST STRING' poped up.
MCCoreRes.dll
STRINGTABLE
5092, "Geometry is used in a solid. Are you sure?"
Is it better not to use STRINGTABLE ID=5092?
Yes, I use the converter made by me
I converted zbrush's .obj to 4000000+ polys STL.
Anyway, Blender should support common file formats.
it is free!
http://www.blender.org/download/get-blender/
We have to rename group_list to op_group.
code:
extern DllImpExp TpGrpMgr TpMainGrpMgr;
op_group *glist=NULL;
for(int i=0;i<TpMainGrpMgr.m_MainGrpList.GetSize();i++)
{
glist=TpMainGrpMgr.m_MainGrpList.GetAt(i);
}
I think you need these...
code:
AfxMessageBox(op.cmn.nci_name);
AfxMessageBox(post_args[2]);
Still you don't have the nci output as a text file.
You have to use the postOps funtion or the nci_manager function..
quote:
By the way, anybody... I have the Mastercam V9 SDK document only, it has some demo codes..
but the X sdk header files are well commented, so it is good to code a chook.
X3?
Mastercam X3 API - Whats New.doc
quote:
The Mastercam APIs are undergoing drastic changes for the Mastercam X3 release later this year.
Hi,
if you want to run your post dll by pressing the post (G1) button.
You need "PostMain" function exported in your dll, put it in c:mcamxapps,
and set post excutable dll in the current control definition.
sigmawave,
if you just need a nci data as text, postOps function will do it.
http://www.emastercam.com/cgi-bin/ultimate...c;f=13;t=000198
or if you process a binary nci data, use nci_manager function.
ok.
how about this method.
1, add a dummy menu by using insetthirdpartymenu()
2, get a menu from the main window and remove it by using GetSubMenu()and RemoveMenu()
3, popup your menu (pMenu->TrackPopupMenu())
I dont have X3 and the sdk yet,
but there should be a function to register AppPreTranslateMessage() function..
if it does not exist, try subclassing the main window..
You can popup your menu,
CMenu YourMenu;
///load a menu from resource ,etc
YourMenu.TrackPopupMenu( TPM_LEFTALIGN|TPM_LEFTBUTTON, pos.x, pos.y, get_MainFrame());
and read/process messages around here.
code:
static BOOL AppPreTranslateMessage(MSG* pMsg)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState())
if(pMsg->message==WM_COMMAND&&(UINT)pMsg->wParam==IDR_MENU1_ITEM1)
{
// do something;
return true;
}
return theApp.PreTranslateMessage(pMsg);
}
Thanks,
That robot with the lizard head originally looked like "Robot Paruta" from NHK.
(we chaned his head because of copyright restriction).
http://www.youtube.com/watch?v=lwF2xHkgjy0
I made a chook for you.
http://ai-sols.sytes.net/download/UpdatePlaneToggle.zip
It was easy to make.
code:
extern "C" __declspec(dllexport) int m_main (int not_used)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
cplane_equals_gview=!cplane_equals_gview;
set_FT_item_checked ("UpdatePlaneToggle","m_main",cplane_equals_gview);
return MC_NOERROR;
}
OK.
I think I fixed the issue.
http://ai-sols.sytes.net/download/SwapMachines.zip
When you run this chook with control key pressed,
it will only swap the current active machine.
This is a chook file.Please send me your bitmap images, I can add them.
quote:
.. but not X3. It looks there are lots of changes between X2 and X3. I have a lot of things to do!
Hi
It was national holidays in my country
Anyway, I just made a chook that calls the function 'SelectTpGroupMachineDef()' for each machine groups.
http://ai-sols.sytes.net/download/SwapMachines.dll
let me know if it works or does not..
you mean this icon?
quote:
Toolpath NCI not restored - The NCI file has not been restored (via a toolpath regeneration) since the file was opened with the "restore NCI" option deselected (icon is light blue).
Note: Click the Options button in the upper right corner of Mastercam's Open dialog box to set this restore NCI option.
Ai Utility version 1.2 is downloadable now.
I added some new features to Ai Utility chooks.
http://www.ai-sols.co.jp/eng/product/eng_aiutility.htm
(we have to add more details to English pages..)
New features..
+ Drag and Drop from Explorer.
You can open/merge files by drag'n dropping from expolrer window.
+ Customizable menu.(third party menu)
You can add FT commands by editing *.menu files..
and the main menu file is Ai_ChookMenu.main.
+Auto hide operation manager.(only for X2MR2)
I recommend to undock OPmanager when this feature is ON.
+Increment/decrement levels/colors with mouse wheel.
Please let me know if you have suggestions or find a bug..
Previous thread..
http://www.emastercam.com/cgi-bin/ultimate...ic;f=1;t=027797
Merry Christmas and Happy New Year To All.
Hi
Unfortunately, I've removed freehand.zip from our website, because that chook is not a freeware anymore..(my boss's order! )
I'm sorry.
But, if you already have it, you can use it freely.
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.