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:

Girus

Verified Members
  • Posts

    42
  • Joined

  • Last visited

    Never

Recent Profile Visitors

578 profile views

Girus's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi, it has been a while since I posted here. And I apreciate any help on this. TIA. I have a chook program in V9 and I used Visual C++ 6.0, and now I am interested in upgrading to X2 but would like to know what I need to do to get my V9 chook ported over to X2? Thanks, Girus
  2. Hi, I can do both .NET or C#. There is no real preference. However I would hope and wish that there is more examples and documentation. Please more examples! Currently it is hell getting started, or even just doning one thing. Thanks for asking. Girus
  3. Bryan, Thanks for pointing me in the right direction. code: tl_list *tl_head, *tl_move; db_ptr_type e_ptr; list_manager (TL_ID, tool_library, LSTMGR_GET, (void**)&tl_head); tl_move = tl_head; while (tl_move != NULL){ if (tl_move->tl.op.type == FACE_MILL && tl_move->tl.op.dia == 3.0 && !tl_move->tl.op.mm){ tool_manager (&tl_move->tl, TLMGR_ADD, &e_ptr, &succf); if (succf) break; } tl_move = tl_move->next_ptr; } /* free up memeory from tool library list */ list_manager (TL_ID, "", LSTMGR_FREE, (void**)&tl_head); This did the trick, and it all came from the "Testassc.c" example. Thanks to all for your help, lots of good ideas, and I learned several ways to accomplish the same thing. Girus.
  4. Pkrzic, Your method works as you say, the only thing is that NC code looks like this code: ( UNDEFINED TOOL - 1 DIA. OFF. - 1 LEN. - 1 DIA. - 3. ) And I really need for the tool name to show up. Girus
  5. Glenn, quote: Can you create a toolpath without defining a tool? If not, Nevermind. If so, what does the operation look like once it's done? I don't think you can do it. But I think the opposite is true that you can have a tool and operation without the chains? But I am still looking for a solution to setting a tool so that when a contour path is created the default tool comes up. This may be a lost cause and there is no solution out there and it may mean that I will need to add a dummy (tool path)/operation so that the tool shows up the next time, because it looks like once you have one operation the next one defaults to what the first one had. Then I will need to delete the dummy operation. ???? Any thoughts. Girus
  6. Ronald, Thanks for your suggestions, but I tried that and since I am only using one tool it becomes more work to load the library then select the tools. What I am really looking for is a method of setting a tool as default so that when I do a contour and click done it automatically has that tool already there. I am trying to avoid manually filtering the tool. Also since all of the geometry is being drawn by chooks it sometimes needs different sizes of tools and at that time is when I want to tool to be set as default. Therefore it will sometimes be a 3" tool but sometimes a 4" etc. This whole thing is part of a project I am working on to automate as much of the grunt work as possible so that all that is left is maybe a few chaining operations that are done manually. I want to do this programatically. I dont care how I do it but it needs to be done in chooks. I am guessing that since there is no way to do it manually then it goes to follow that there is no way to do it programatically but just in case it could be done I am asking for help here. Girus.
  7. I don't understand what you mean about the operation library since I only need the tool the path will be different every time, but the tool is always the same. I am doing the geometry in chooks and would like to do the tool as well. The path as of now needs to be done manually, but eventually I will know enough chook stuff to be able to do the whole thing. For now I just need to know if anyone knows how to pre-select a tool as a default so that when a chain is created it will atomatically have a tool pre selected. Similar to how it comes up for the second chain (where the tool is there from the previous operation). Girus
  8. Hi, I am interested in pre-setting a specific tool in chook. I want to have a tool always show up when a countouring operation is chained so I dont have to select the same tool every time. How do I do that with chooks. TIA. Girus.
  9. Bryan and Bullines, Thanks so much. This worked great! Girus.
  10. Bryan, code: calc_note(&entity, view, ref_pt, (byte*)text); Fixed with (byte*) cast?? Thanks alot this works great. Girus
  11. Bryan, I am getting this now. error C2664: 'unsigned char (ent *,short,double [],unsigned char *)' : cannot convert parameter 4 from 'char *' to 'unsigned char *' on the char*text have you ran into this? Girus.
  12. Hi, In trying to enter a note via chooks. I want to enter a note and I know that using v8_note is the way to do it, but I don't know how to do this. 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 am getting stuck when I run into this "ulong mtid; memory table index ", what is a mtid and how do I get one. I also found a bunch of memory table functions "mTable..." in "M_DRAFT.H", but there is no intuative way of using these. Does someone know how to make use of all this. I just want to enter a note in my draft. Girus.
  13. Thanks to Bullines and Bryan for your help on this. After much aggrivation I have finally achived what I was looking for. I am going to post it here for anyone who may need to do the same. code: // SetDestinationFilename // ====================== // Changes the destination NC file name. // an operation must exist in order for this to be // successful. // I - szFileName : the new complete path and filename. // must be valid. // Returns: true for success, false for fail. static boolean SetDestinationFilename( char *szFileName ){ boolean succf; operation op; db_ptr_type d_ptr; // clear the operation. memset( &op,0,sizeof(operation)); // get the first operation. operation_manager (&op,OPMGR_GET_FIRST_LIST,&d_ptr,&succf); if (succf){ // copy the filename strcpy (op.cmn.nci_name, szFileName); // change it! operation_manager (&op,OPMGR_REWRITE,&d_ptr,&succf); if(succf){ // regenerate the operations. operation_manager (&op,OPMGR_NCI_REGEN,&d_ptr,&succf); } else return false; }else return false; // return true! success! return true; } Enjoy! Girus

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