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:

pro

Verified Members
  • Posts

    21
  • Joined

  • Last visited

    Never

Everything posted by pro

  1. Thanks for help. Spasibo Winnie. I'll try to find some function on c-hook to diagnose such problems. Pro.
  2. Why your decide that generating curve have overlapping? Pro
  3. Thanks for all, This surfaces was translated from another cad system. I try to find way to check surface like that and repair it. Eeyore, Sorry, my English is not quite good. As I can see generating curve does not have self intersection, but revolved surface probably have overlap. What wrong with generating curve? Maybe I need change direction of generating curve or axis of revolution. What is "IOW"? Pro
  4. Eeyore, This error happen also on surface without border. Now I can't put this file on ftp, maybe tomorrow. Pro
  5. Eeyore, The problem is not in reverse normal direction. The Test Normals function analyzes the normal vector of selected surfaces and reports the number of bad surfaces whose normal vector reverses direction abruptly in one or more locations. Your are right about converting this surface to NURBS, NURBS surface have good normal. But I want get more complex information about reason of this error in revolved surface. Pro.
  6. When I create revolved surface, mastercam say that surface have bad normal. For check normal I use Analyse/surfaces/test-norm/All/Surfaces/Done. Probably problem is in generating curve of this surface, how can i get more complex error description? Dynamic analyze not enough.
  7. Hello, For creating set of drill operations I need set of drill tool with different diameters assigned to the operations. For finding tool in the tool_library I use code listed below, but when I change tool and call TLMGR_ADD tool slot number don't changed. How can I create set of tool with different slot numbers? code: void createDrillTool(D1 r, ulong& open_slot) { boolean ok; tl_list *tl_head, *tl; list_manager (TL_ID , tool_library, LSTMGR_GET, (void**)&tl_head); tl = tl_head; db_ptr_type ptr_tool; tl = tl_head; while (tl != NULL) { if(tl->tl.op.type == DRILL) { tl->tl.op.dia = r*2;// important, the drill diam must be the same as tool diam in op tool_manager (&tl->tl, TLMGR_ADD, &ptr_tool, &ok); open_slot = ok ? tl->tl.op.slot : 0; break; } tl = tl->next_ptr; } list_manager (TL_ID, "", LSTMGR_FREE, (void**)&tl_head); }
  8. Thanks for examples it help. The existing tool from tool_library don't connected correctlu with my operation because of tl_list tl->tl.op.dia was not equal operation op.tl.dia Now all ok and operation regerated from chook use nci_manager(, NCIMGR_REGEN_ALL,); There was one problem how to perform set drill direction easier, now I use modification of matrix in operation op.tpln.m.
  9. Yes I using this sample but there doesn't discribe how create operation without user interface. I will try to use TP_MANUAL_ENTRY instead of TP_DRILL.
  10. When I use existing tool from tool_library, tool also not defined but in operation parametrs icon with drill present. There simple version of code: list_manager list_manager (TL_ID , tool_library, LSTMGR_GET, (void**)&tl_head); tool_manager (&tl_head->tl, TLMGR_ADD, &ptr_tool, &ok); op.tl.slot = ptr_tool;
  11. Thanks for help, Now I can create arc and connect this arc with drill operation. drill depth defined in operation op.cmn.depth drill diameter defined in operation op.tl.dia drill direction defined in operation op.tpln.m But when I select mainmenu->toolpath->operation [RegenPath] occur error "Unable to calculate toolpath. Tool assigned to operation does not exist". Where can I set tool use c-hook?
  12. I need create feature described by arc and depth. As far as I understand this must be operation like this: op.opcode = TP_DRILL;.
  13. Hello, What functions I must use for create feature in mastercam? I need create hole described by arc and depth. Is it possible for not solid model? Probably I must use operation_manager() and store_ent_assoc() but I don't know right sequence. Pro
  14. Does anybody know how to change value of parameter "use group's color" with using c-hook? By default this parameter true and all entities in group have red color. I found such parameter in group_list, but how can I get this variable?
  15. What the function name for create solid from surface? I think in chook is the same name as in VB. Now I find only one way to create solid use chook function sld_import_solid. But for use this function I must create faces and edges before call.
  16. I need call creating a solid from surfaces use only chook not user interface. by the way, how can I check is this sheet-solid or closed-solid? PS sorry for my english.
  17. how create solid from surfaces use chook? This operation is possible from user interface, but I don't find same chook command.
  18. Documentation which delivered with c-hook not full. For example about loft_type they just copy-past text from m_vars.h. In this structure present such fields as short *s_ptr; /* pointer to data array */ What data were meant?
  19. Hello where can I find more c-hook documentation especially about creation new geometry object? For example, what data I must put to structure loft_type to create valid surface?

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