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:

MCHulk

Verified Members
  • Posts

    19
  • Joined

  • Last visited

    Never

Everything posted by MCHulk

  1. Thank you N.Dalhoff, work's fine. (Hätt ich auch selber drauf kommen müssen. Aber manchmal sieht man den Wald vor lauter Bäumen nicht.)
  2. Hi folks, I'm trying to retrieve the text from the notes or labels of the actual loaded MC-Model via a chook. To get the notes/labels is easy, but how to convert the pointer mtid from the structure v8_note to the text. code: typedef struct /* structure for notes */ { byte type; /* 0=witness, 1=leader, 2=label, 3=note */ p_3d ref_pt; /* reference point (text in view) (Z=depth) */ short view; /* view number that note was created in */ real scale; /* internal scale for detail view */ font_attr params; /* font attributes */ ulong mtid; /* memory table index (allocated string) */ v8_wit_ldr ldr; /* leader/witness associated with entity */ eptr_type xptr; /* conversion pointer: note (always null_eptr) */ boolean assoc; /* this entity uses associativity */ p_3d txtpos; /* incremental position used to regenerate note */ short ldr_count; /* number of leaders */ byte pad[2]; /* pad to 8 bytes "none" */ } v8_note; I dont know, how to convert back the memory table record to the desired text. Does someone know how to do this. Thanks in advance, MCHulk
  3. $5.9 per gallon for unleaded in Germany. Right after the USA annexed the Iraq the price falls down to $3.5 per Gallon but nowadays the price climbs an climbs. But why, Whats wrong?
  4. Me too, after installing SP1 to MC9.1 most of the fine surface calculations crashed. Same after installing SP2. Back to V9.1 without SP? MCHulk
  5. Thank you Bullines, if i convert VC-6.0-C-projects to .NET-C++ projects everything went good, and it will compile and link to the chook-dll i expect. But that works only with code without the MFC. The EXPORT-warning is not the only one. Some errors C2143:Syntaxerror:Missing } before constant in M_ACONST.H: Line 33... My intention is, that something with the defines is not correct. But which one?
  6. Hello MS-Visual-Studio- and Mastercam-Cracks, is it possible to develop CHooks with the MSVS.Net C++. I tried to build a MFC-DLL-Project just like the "shapes"-project described in INTRO.DOC? Compiling it, i get warnings and errors like "C4005: EXPORT:Makro redefinition" in M_VARS.H etc (I added the definitions _MSVC_ and MSWINDOWS). What's the trick? Thanks in advance, MCHulk [ 11-17-2003, 07:44 AM: Message edited by: MCHulk ]
  7. Does anybody here know, how to post automaticly every selected operation in the operation manager to a unique NC-file? For example, if i have 10 operations in the operation-manager, i need 10 NC-files. How should i modify my post, so that i get the files? Thanks in advance, MCHulk
  8. But what should i do, if the operation order no. is needed in my post? What variable can i use therefor?
  9. Bullines, quote: That's for diesel, right? no, thats for unleaded. For diesel its about 4.05 USD/gallon. MCHulk
  10. In Germany you pay 1.10 Euro/Liter, thats ca. 4.5 USD/gallon. Nice price? MCHulk
  11. Bryan314, thank you very much. It works fine. Thanks, MCHulk
  12. Bryan314, thanks for your answer. I tried both variants. It didn't work. Any other idea? MCHulk [ 12-26-2002, 11:38 AM: Message edited by: MCHulk ]
  13. I've compiled the example 1 of chapter24 "CBACKS" with the ch_repaint_function(): code: extern boolean CH_ENTRY ch_repaint_on=FALSE; extern void CH_ENTRY ch_repaint_function(void) { p_3d pointToDraw; pointToDraw[0]=pointToDraw[1]=pointToDraw[2]= 0.0; draw_3d_point(pointToDraw, YELLOW); } It compiled without errors, but it didn't work. I think MC doesn't recognize the ch_repaint_function as the callback-function. What's wrong? Please help. Thanks in advance, MCHulk [ 12-26-2002, 07:39 AM: Message edited by: MCHulk ]
  14. Hi HEAVY METAL, maybe the diskspace of the partition, where Mastercam is installed, is to small to fit for all the temporary files Mastercam is creating during calculation. Try to delete all NCI files you don't need and/or enlarge the partition size. CU MCHulk
  15. Hi Ying Jiang, unfortunately not, but thank you anyway. If i follow your suggestion, i always have to call my chook by clicking the menu-items "File, Next, Gear". My chook should be present with two buttons. Lets say "Save" and "Save as" wich are visible every time, indifferent if i am in the File-menu or in any submenu else. Look at the color-button, this button is every time present and visible. My assumption is, that this has to be programmed in the chook itself. But how? CU, MCHulk ;-)
  16. Hi mold100, thank you for your immediate answer. But it is not exactly what i mean. Look at the Project-Manager-chook and you see that this chook has several buttons at the left side of the frame. That chook is permanently running and if the window of that chook is not active, you can use every Mastercam menu-funtion. My question is, how can i program this "button-behavior" (severall buttons in left side of the frame window) in my own chook. Thx in advance, MCHulk ;-)
  17. Hi, i'm from Germany and a CNC-programmer in a company. About four Mastercam-Mill installations help us since 2000 creating CNC-programms for milling molds and dies. If beside is time i try to programm C-Hooks. CU, MCHulk [ 06-08-2002, 11:48 AM: Message edited by: MCHulk ]
  18. Hi CHook-Developers, how can i stick a button, for calling the hook, in the frame of Mastercam like the Project-Manager of CAMAIX does. Background is, that i want to call my chook only with a mousepick, even if i am in a deep menu. Thx in advance, MCHulk [ 06-08-2002, 11:21 AM: Message edited by: MCHulk ]

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