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:

Takashi Sato from Ai Solutions.

Verified Members
  • Posts

    338
  • Joined

  • Last visited

Everything posted by Takashi Sato from Ai Solutions.

  1. I have the similar problem with some files.. I opened a dwg file with X2MR1 and save it as mcx, then re-open it, I get two message boxes. but after I save it again, the problem is gone anyway.. ------------------------------- Draft Message.. ------------------------------- ! Error loading TrueType® font [OK] ------------------------------- ------------------------------- Memory Table Message.. ------------------------------- ! Memory table item not found. (3922) [OK] -------------------------------
  2. Greg I have not got X2MR1 SDK yet, so please wait for a while. this is a quick fixed version for X2MR1(temporary fix) http://ai-sols.sytes.net/download/AI_Utility_X2_1_08_en.exe It seems some sdk functions look different between X2 and XR1, and after I get the newest SDK, I will post at my chook thread..
  3. yes I also tried CToolProp/CLToolProp class, but it crashed when I clicked OK... I think I'm missing some initialization...
  4. you have to use DllImpExp, because.. //this is for exporting the function from your chook dll DllExport MC_BYTE show_part_info = 0; //use the exported function from external dll or exe... DllImpExp MC_BYTE show_part_info; code: if(show_part_info) { show_part_info=0; //you have to repaint repaint_graphics(); } or,, if(show_part_info) { post_FT_command ("Mastercam","OnDisplayInfo"); //Run a Message Pump if you need it immidialtely... }
  5. it just works form me. This code exports the selected entities with the tolerance. code: FILE *fp=fopen("c:test.stl","wb"); if(fp) { wr_stl(0.02, fp, "", -1, FALSE, TRUE); fclose(fp); }
  6. arggg.. post_FT_command ("Mastercam","OnDisplayInfo"); edit: extern DllImpExp MC_BYTE show_part_info; [ 03-28-2007, 12:52 PM: Message edited by: Takashi Sato from Ai Solutions. ]
  7. I tried this in my chook. code: extern DllImpExp MC_BOOL vp_axes; extern "C" __declspec(dllexport) int m_main (int not_used) { if(vp_axes) { post_FT_command ("Mastercam","OnVPAxesToggle"); } return MC_NOERROR|MC_UNLOADAPP; }
  8. You can identify if the entity is selected. ent e; if(e.sel & SELECT_BIT) { //selected!!!! }
  9. Hi, We have also bought Vista and NVIDIA Quadro FX card and installed X2MR1. And we are having problems then tried.. 1. Vista default theme(Aero glass enabled) ====> messed up with flickering 2. Windows classic theme(Aero glass disabled) ====> looks better but it does not draw the Viewport XYZ axes and texts like "Gview:TOP WCS:TOP..". 3. copying old opengl32.dll and glu32.dll(from Windows NT?) to the X2 root folder... ====> maybe good?? but not much tested.. Does MastercamX use "Mixed GDI and OpenGL rendering" when displaying Viewport XYZ axes? when I read the latest driver release note from NVIDIA, it says "Mixed GDI and OpenGL rendering does not work." http://us.download.nvidia.com/Windows/100....lease_Notes.pdf
  10. Hi Can you try this code? it will work. code: group_list *machine=OMgetActiveMachineGroup(); if(machine)tl.op.machine_grp_idn=machine->grp_idn;
  11. Thank you for the well-documented great Samples and Examples!! I have no problem with NETHook2_0.dll from X2MR1
  12. Sorry Titus, I didnt answer your mail.. I did not have any idea of calling fseek(). I thought it would write the data at the position.. nci_manager (0, NCIMGR_WR, &nci_line, &fpos_prevpos, &succf); Thanks Pete!!!12
  13. a method I did is like below. but it may not be what you want.. http://www.emastercam.com/ubb/ultimatebb.p...4105;p=1#000020
  14. hi if there in not a function like nci_to_bnci() function, you may have to try methods like below.. http://www.emastercam.com/ubb/ultimatebb.p...c;f=13;t=000376 http://www.emastercam.com/ubb/ultimatebb.p...0327;p=1#000005
  15. maybe the same issue. http://www.emastercam.com/ubb/ultimatebb.p...0191;p=1#000024
  16. Thanks Pete, that cleared vague things in my head. Alex, I'm coding by myself anyway, in the sdk only some low-level functions are exposed, CArc,MCSurface.. claases are not avalable for chookers. So we have to make our own wrapper class library for low-level functions in the sdk for now..
  17. my code. code: extern "C" __declspec(dllexport) int m_main (int not_used) { AFX_MANAGE_STATE(AfxGetStaticModuleState()); MC_BOOL succf; DB_LIST_ENT_PTR e_ptr; surf_type surf; memset(&surf,0,sizeof(surf_type)); surf.s.type = TABCYL_SURF; ent e; memset(&e,0,sizeof(ent)); e.id=A_ID; e.u.ar.r=50.; e.u.ar.view=2; e.u.ar.sa=0; e.u.ar.sw=P5_PI; vec_3d (50., 0.0, 0.0, e.u.ar.ep1); vec_3d (0.0, 0.0, 50., e.u.ar.ep2); store_ent (&e, &surf.u.tabcyl.pcurve, ALIVE_BIT, main_color, main_level, main_attrib, &succf); vec_3d (0.0, 100.0, 0.0, surf.u.tabcyl.line); surf.u.tabcyl.l_sin_ang=0; memset(&e,0,sizeof(ent)); create_nurbsurf_from_surf(&surf, &e); store_ent (&e, &e_ptr, ALIVE_BIT, main_color, main_level, main_attrib, &succf); draw_ent(&e,e.color); return MC_NOERROR; } but it's not hilighted by mouseover.. I dont know why??
  18. hi I made a chook for switching cpus used by mastercam process. I dont sure if there is an adavantage from using it though.. http://ai-sols.sytes.net/download/ProcessPriority.zip red icon is to set the current process priority above normal, and set the other mastercam processs idle. green icon is to set all mastercam processes normal priority. 0 is CPU0,1 is CPU1 ,2 is CPU2 and 3 is CPU3,, if you have 4 cores. currently I only have 2 core PC, so I have not checked 3rd and 4th cores..
  19. good from help document.. Analyze- Solid (volume) properties dialog box Use this dialog box to view: 1. Solid volume and mass relative to a defined density 2. Center of gravity 3. Moment of inertia relative to a selected axis line
  20. I guess this func will do??? char sld_compute_props(int ,double * const,double (* const)[3],double *,double *) but I dont know the usage..
  21. Great So we can make a stand-alone utility application only for mastercam users.

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