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:

maxs24

Resellers
  • Posts

    17
  • Joined

  • Last visited

    Never

maxs24's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Roger, I don't need screen info, so nethook should be a good solution. The best solution (for me) would be usign vb script function (DoBitmapfile) or a chook similar function... The picture size is not relevant. thanks
  2. Hello guys, I need to capture current graphic window, so I tried some vb functions to do it, but I bumped into some troubles: How can I toggle screen information (such as view names, coordinate axes, scaling information, and so on) using "DoBitmapfile" vb function? I've also tried to use runMastercamCommand(CLIP_BOARD) instead of DoBitmapfile, but I don't want to sketch a window or press ESC key. Any suggestion? To me is fine using chook function as well; so If you have a chook solution to capture graphic screen (without having to press any key) it would be good anyway! Thanks PS: I'm testing it on X3
  3. Hello, How can I get current NC file name using VBScrip? Thanks
  4. Hello guys, Please I need help about creating loft surface using chooks api. How can I create loft having 2 line ents? Thanks
  5. Hello, I've a problem rotating point entity using "rotate_silent" function. I'm not able to get xformed XYZ coordinates even if I used "rewrite_ent" function! Below is the code I used: code: ... store_ent(&ppp,&punt,0,13,main_level,main_attrib,&succf); DB_LIST_ENT_PTR punt2 = ppp.eptr; rotate_silent(&punt2, true, false, punto, ang,v.view_n, &succf2); rewrite_ent(&ppp); copy_p_3d(p_out,ppp.u.pt); ... The point entity seems to be stored correctly, in fact I can see the rotated point on screen, but I can't get its coordinates!!! I tried to use "copy_p_3d" and "get_ent_from_eptr" but the result is always the same! Is there a way to get the xformed coordinates? Thanks Andrea Mastercam X2 MR2 SP1
  6. Hello, I've a problem adding mirror xform operation using "operation_manager". I've set "xf_type" value to 1 (MIRROR) but in the end I always get Translate type. So I've debugged "xf_type" value from an existing operation and "xf_type" was set to: •16 for translate •13 for rotate •8 for mirror So I've forced "xf_type" value to 8, but the result is the same!!! I've another question: how can I transform just the selected operation (I mean without manually selecting it)? I've tried to set "v7_op_start" and "v7_op_end", but I got no positive result Here is my sample code... code: op2.opcode = TP_XFORM; op2.u.prm_xf.xf_type=1; //or 8?!?! operation_manager (&op2, OPMGR_INIT_ADD , &eptr, &succf); op2.u.prm_xf.v7_op_start=1; op2.u.prm_xf.v7_op_end=1; op2.u.prm_xf.use_coord=TRUE; op2.u.prm_xf.make_ops=TRUE; op2.u.prm_xf.keep_xf=FALSE; op2.u.prm_xf.u.mir.pt_type=1; op2.u.prm_xf.u.mir.use_view=TRUE; operation_manager (&op2, OPMGR_REWRITE , &eptr, &succf); Thanx
  7. Hello everyone, I need to run a VBscript file during post processing . Any suggestions? Thanx
  8. Hello guys, I need help about open, modify and post NCI file. I've used "post_dlg_settings" to generate NCI file without any problem, but I'm not able to post NCI files!!! I've tried to use "run_post_exe_dll" but I get this error code: "error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl run_post_exe_dll(char * const,char * const,char * const,char * const)" (__imp_?run_post_exe_dll@@YAXQAD000@Z)" I've included "PostDllImpExp.h" and "Post_CH.h" and all LIB files...any suggestions? Is it possible to get the NCI file name (and path) of NCI file generated using "post_dlg_settings", otherwise should I necessarily scan the intere operation db to get it? Thanks... I'm paying a beer for the best answerer
  9. Has anybody worked with chooks created op with TP_CHOOK id? I'd like to know the corect procedure to create, add a tool and ( Most important!) add a whatsoever movement with nci_manager!
  10. Hello everyone, I need to get lathe tool geometry endpoint coordinate to be exported to Camaix Machine Simulation (for turning simulation). Is there a struct (for X2 SDK) which contains lathe tool geometries or chains? thanks
  11. Has anyone already tried to use the new release of Machsim which supports both milling and turnig? I've tried to use Integrex machine using simple lathe operation, but the problem is I'm not able to set and make the turning tool visible during simulation... http://www.camaix.intrameld.net/downloads/...hSimCCVX2_1.exe
  12. I have already seen the .timed and .dayleft value are correct, but I rather need the .maintExpirationDate value because I have to develop an "Update Manager" application based on maintenance expiration date... I'll be waiting for your information. thank you Pete Bye
  13. PS: I've noriced the forum replay has sobstituted the pointer to mcInfo sim variable with this "~" simbol on memset and GetSimInfo!!!
  14. Hi Pete, I've tried your simacces H and LIB files, but on timed (temporary) sim the "getsiminfo" function always outputs an invalid date for start date, end date and maintenance expiration date. On the contrary, using an "unlimited" sim the output is correct! I need to get the Maintenance expiration date both on timed and "unlimited" sim. Here is the code I wrote to get this information: FILE *ff; mcInfo sim; memset(∼,0,sizeof(mcInfo)); GetSimInfo(false,∼); ff=fopen("AAAAAAAA.txt","w"); fprintf(ff, "serialNumber %dn", sim.serialNumber); fprintf(ff, "timed %dn", sim.timed); fprintf(ff, "timedStartDate %sn", sim.timedStartDate); fprintf(ff, "timedEndDate %sn", sim.timedEndDate); fprintf(ff, "userType %dn", sim.userType); fprintf(ff, "maintenance %dn", sim.maintenance); fprintf(ff, "maintDaysLeft %dn", sim.maintDaysLeft); fprintf(ff, "maintDateOK %dn", sim.maintDateOK); fprintf(ff, "maintExpirationDate %sn", sim.maintExpirationDate); fclose(ff); Thanks

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