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:

MRB

Verified Members
  • Posts

    22
  • Joined

  • Last visited

    Never

MRB's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Thanks, John. That works. (btw, I have been opening Mastercam with the proper icon, and doing a File->Merge as a work around the problem) This might also be the answer to other issues I have been having regarding 5-axis toolpaths - I was not able to regenerate the Curve 5-axis toolpath after selecting other Tool Axis Control lines. Thanks, MRB
  2. I'm getting a warning "Five-axis option not available. Contact your Mastercam dealer" when I try to select any of the 5-axis Mill Toolpaths. First I made a couple 5-axis Curve toolpaths sucessfully. I then saved and closed out of Mastercam session. When I opened the same file again, and clicked on Toolpaths->Multiaxis->Curve to start a 3rd toolpath in the same 'Toolpath Group' I got the above warning and was not able to proceed. Any ideas on what causes this error and how to get around it? Thanks in advance for your help. MRB
  3. We've been developing chooks, and there were compatibility issues with some of them. I regenerated all the chooks again, and now everything works fine. Thanks.
  4. When I try to open Mastercam X by double-clicking on the icon it crashes with no errors. It seemed to work fine for me until last week. I've not changed any settings or anything else since last use. Any ideas ?? Thanks in advance. MRB
  5. I'm trying to write a chook that would select a line and modify its endpoint dynamically, or by sketching/selecting a point in graphics space. This functionality would be similar to Mastercam's 'Edit->Modify NURBS' functionality. I'm searching for chook functions that would help me do this. Currently, I'm using point_proc(), and it doesn't sketch a point in desired 3d space. The point_proc() method gives a point that is lying in a plane normal to the selected original line. ------------------------------------------- //Select the line select_ent("Select a line to modify", &oEntity, &oDBEntity, oPtSelect, dTParam, ALIVE_BIT, ALL_ENTITIES_MASK, select_color, &bSuccess); // Get the curve endpoints p_3d aStartPoint, aEndPoint; curve_endpoints(&oEntity, aStartPoint, aEndPoint); // Ask for new point while(true) { ent oLineVector; DB_LIST_ENT_PTR d_ptr; char Option; p_3d oNewSelectedPoint; Point_proc ("Select new position, Escape to finish", &Option, oNewSelectedPoint, &bSuccess); if(!bSuccess) break; oLineVector.id = L_ID; vec_3d(aStartPoint[X], aStartPoint[Y], aStartPoint[Z], oLineVector.u.li.e1); vec_3d(oNewSelectedPoint[X], oNewSelectedPoint[Y], oNewSelectedPoint[Z], oLineVector.u.li.e2); store_ent(&oLineVector, &d_ptr, 0, main_color, main_level, main_attrib, &bSuccess); repaint_graphics(); } ----------------------------------------- Thanks in advance for any help.
  6. I'm moving this question the Developer's forum
  7. Thanks for replying, Pete. It's good to know that there's a now a Developer's forum. I should have pasted my entire code before. I did make a line using oNewSelectedPoint, but the point is not in the desired 3d space. Let's say I was to tweak the endpoint such that the new line is only 5 degrees from the original line. The point_proc() method is giving me a point which is lying in a plane normal to the selected original line. ------------------------------------------- //Select the line select_ent("Select a line to modify", &oEntity, &oDBEntity, oPtSelect, dTParam, ALIVE_BIT, ALL_ENTITIES_MASK, select_color, &bSuccess); // Get the curve endpoints p_3d aStartPoint, aEndPoint; curve_endpoints(&oEntity, aStartPoint, aEndPoint); // Ask for new point while(true) { ent oLineVector; DB_LIST_ENT_PTR d_ptr; char Option; p_3d oNewSelectedPoint; oint_proc ("Select new position, Escape to finish", &Option, oNewSelectedPoint, &bSuccess); if(!bSuccess) break; oLineVector.id = L_ID; vec_3d(aStartPoint[X], aStartPoint[Y], aStartPoint[Z], oLineVector.u.li.e1); vec_3d(oNewSelectedPoint[X], oNewSelectedPoint[Y], oNewSelectedPoint[Z], oLineVector.u.li.e2); store_ent(&oLineVector, &d_ptr, 0, main_color, main_level, main_attrib, &bSuccess); repaint_graphics(); } --------------------------------------- Should I be converting the new point to View or World coordinates, or is there a different method that needs to be used. Is there a way to do this dynamically? Thanks again Pete.
  8. I want to write a chook that would select a line and modify its endpoint in real time, or by sketching/selecting a point in graphics space. This functionality would be similar to Mastercam's 'Edit->Modify NURBS' functionality. I'm searching for chook functions that would help me do this. Currently, I'm using point_proc(), and it doesn't sketch a point in desired 3d space. Please let me know how I can do this. Thanks very much. ------------------------------------------- Code so far select_ent("Select a line", &oEntity, .....); p_3d aStartPoint, aEndPoint; curve_endpoints(&oEntity, aStartPoint, aEndPoint); while(true) { p_3d oNewSelectedPoint; point_proc ("Pick new position, Escape to finish", &Option, oNewSelectedPoint, &bSuccess); //Make and store new line using above point } ---------------------------------
  9. Thanks Mick. I'm finding now that the line does get deleted, but the image still remains on the graphics screen. Repaint and Clear screen functions doesn't quite clean up that line. Also, at this point the "Screen statistics" gives incorrect info. But when I change to a different level and switch back to the original one, the line gets erased and screen statistics icon works fine. ------------------------------------- Sub Main() Dim objLineVector Dim intLineVectorPtr Set objLineVector = New McLn With objLineVector .X1 = 0 .Y1 = 0 .Z1 = 0 .X2 = 0 .Y2 = 0 .Z2 = 1 End With intLineVectorPtr = CreateLine(objLineVector, mcCONSTRUCTION_COLOR_CURRENT, mcCONSTRUCTION_LEVEL_CURRENT) SetCPlaneNumber(0) ' Set CPlane = 3D to work in coordinate system's 3D space ' -- Clean up DeleteEntity(intLineVectorPtr) End Sub _________________________________________
  10. Yes, a line does get created and has a valid pointer. But it doesn't get deleted. I'll try updating to 10.0.14.31. The script works fine in V9. Thanks!
  11. Hi, I'm currently working on SP1 10.0.14.19 version. Is the vbscript DeleteEntity() function working properly? When I create a Line and delete it, the line doesn't get deleted. Also, Mastercam "screen statistics" function gives incorrect number of entities after running the following code: intNewLineVectorPtr = CreateLine(objNewLineVector, mcCONSTRUCTION_COLOR_CURRENT, mcCONSTRUCTION_LEVEL_CURRENT) DeleteEntity(intNewLineVectorPtr) Please let me know. Thanks!
  12. When using 5-axis multisurface toolpath in version X the "Simulate Rotary Axis" function doesn't rotate the part about the C (or any) axis, instead the tool moves around the part. Looks like a bug that needs fixing. Thanks Greg and Dacey.
  13. Hello All, It seems to me the "Simulate rotary axis" function is not working while backplotting. This used to work in V9. I'm not sure if I'm missing something. Thanks!
  14. I appreciate your prompt reply. Thanks a lot!! So in general, are all VBS commands supported in X (and may be in the future)? Would you recommend Nethook or VBS to make simpler programs?

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