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:

bryan314

Verified Members
  • Posts

    706
  • Joined

  • Last visited

Everything posted by bryan314

  1. Anybody got an idea on how to set the previous views for cplane, tplane, or gview? Setting the 'current' view with named_view_manager, set_gview, set_gr_gview doesn't update the 'previous view' settings. I've tried playing with the hidden functions; set_prev_gview, set_prev_cview, set_prev_tview but I can't get them to work. Either I'm not using them right or they don't do what I think. The only 'trick' I've found so far is to call one of the 'previous' system calls OnPlanesLast, OnCPlaneLast, etc and then call named_view_manager. It works but seems like the wrong way to do it. Bryan
  2. Got it from my dealer a few days ago. (happy dance) Working around the new mr1 bugs now. Bryan
  3. I wish I could use DoFileOpen. I use it some other chooks. But one of the chooks I'm using it for is a custom Insert Pattern chook. I need the finer control merge_db has with levels, colors, etc. Unfortunately, this jumpiness totally craps out the chook. Bryan
  4. I haven't been able to get it to work ever but noticed yesterday when tracking down another problem it seems to be setting tplane. I'm at home so I don't access to my code but the function I've been using is set_gview. It just takes a view number. Bryan
  5. Can anyone confirm that calling named_view_manager() with VWMGR_GVIEW sets the tplane and not the gview? Here's some code that can be used to test it. code: view_ent ve; MC_BOOL succf; named_view_manager (&ve, VWMGR_SELECT, "", &succf);//prompt for a view named_view_manager (&ve, VWMGR_GVIEW, "", &succf); //set gview? sets to tplane named_view_manager (&ve, VWMGR_SELECT, "", &succf);//prompt for a view named_view_manager (&ve, VWMGR_CPLANE, "", &succf);//set cplane named_view_manager (&ve, VWMGR_SELECT, "", &succf);//prompt for a view named_view_manager (&ve, VWMGR_TPLANE, "", &succf); //set tplane Bryan
  6. I'm getting some odd results with the merge_db() function in x2-mr1. When I call the function my gview, tview, and cview are resetting themselves. The gview is resetting to Top view. tview and cplane, set via name_view_manager(), are jumping back to a view not set by name_view_manager. ie the view when the file was opened or set thru View Manager. gview resets no matter how it was set, a chook or thru mastercam. Bryan
  7. Has the sdk for x2mr1 been posted yet? Bryan
  8. Nooooooooooooooooooooooooo. A bug. kill it. kill it. ahem.... Ok. Thanks Pete. I'll try that. Bryan
  9. I'm playing around with the SaveFile function from MFile_CH.h and getting an odd result. I call the function with the second parameter TRUE to get the file name only. The problem is the first parameter variable isn't getting updated to the filename. Anybody got any ideas or is this a bug? The code isn't anymore complicated than code: char save_to_filename[FILENAME_MAX]; SaveFile(save_to_filename, TRUE); Bryan
  10. I'm trying to fix a minor annoyance but I'm not having much luck. I'm using set_gview to set the gview to a view number. That works fine, but the text in the graphics view says "(not saved)" and the Previous Views menu item doesn't work. The steps I'm using is feeding find_view_m() a new matrix to find or create a new view and then using that new view number in set_gview(). Anybody got any ideas on how to make everything kosher? I've tried using named_view_manager. It works for setting t/c plane but not gviews. Bryan
  11. sorry. I wish I could help out but, I don't know. The few times I tried playing with binary nci stuff I blew up the computer real good. Bryan
  12. no prob. the new chook is being used by our design dept so they shouldn't run into it. thanks again for all the help. Bryan
  13. Pete, It work worked great. Thanks again. One question, is there a way to turn off the "Save some saves only geometry. Associated toolpath entities will not be saved."? I tried using the CFile_DoFileSave/iges prompt trick put it didn't work. Bryan
  14. Thanks MasterShake. Unfortunately, saving to a temp database isn't really an option. I'm dealing with files in the 500MB or greater range, with hundreds maybe thousands of levels. Just loading it once is a major pain. Pete, Thank for the info I'll try it here soon. Actually, saving to just MCX is fine. The user can just run the appropriate converter on the directory themselves. My next step was going to try write_ent_to_disk. But since most entities rely on other info or entities in mastercam, I didn't know if it did all appropriate background work. ie An arc needs additional view info. A trimmed surf relies on a base surf. A solid is just referance number to a parasolid which the sdk doesn't have access too. Thanks everyone for your help. Bryan
  15. Does anybody know how to do a file-save-some via a chook? I don't want to mess around with writing an ent or raw ent since surfs or solids may have other associated ents. Which maybe blanked or on different levels, or both. What I looking for is 1) I set the select (.sel) for a series of ents. 2) then call a function with a filename that saves the selected ents (and any assoc or needed ents) to that file name. Bryan
  16. Pete, How do you turn that prompt off for iges? Bryan
  17. Looks like there might be a hidden bool. I haven't tried it but try adding: DllImpExp MC_BOOL prompt_for_descriptor; and set to false then call CFile_DoFileSave. Hopefully that will work. bryan
  18. On the Mastercam side: The tool_manager function can add a tool to the current session of mastercam. list_manager function can read the tool in the current session of Mastercam, tool library, or other Mastercam file. You would just need to add the proper values in the tp_tool stucture and call tool_manager to add the tool. Bryan
  19. Oops. Sorry, I did a quick search on extrude forgot it needed to be for a surf.
  20. I found this in SolidsExtrude_CH.h: sld_new_extrude and sld_extrude_from_chain. The file has more info on the params. Bryan
  21. The second double doesn't seem to be mass. Mass seems to be a calculated value on the dialog box. Mass = Volume * Density from the help) It might be Moment of inertia with the matrix being the axis line. I can't check my values to mastercams because everytime I try to select a line for mastercam to calc Moment of Inertia it crashes. Doh. But since I only needed volume, the function will work for me. Bryan
  22. The following works. Haven't been able to decipher all of it yet. extern DllExport MC_BOOL sld_compute_props(int tag_in, p_3d centerofgravity_out, matrix_33 unknown_matrix_out, double * volume_out, double * unknown_real_out);
  23. Anybody know the function to get the volume for a solid entity? Bryan
  24. Thanks Pete, doh! font_attr in 3dvars_ch.h had the 4 and 5 values that way. The 6 and 7 values seem to work better but I get some a spiraly type pattern. How do I get a result like the point/radius of create letter? It looks like the only thing that I sould have to set beyond calling init_attribs_note is the .path (6/7) and .center values. But I seem to be missing something. Bryan
  25. Pete, I'm trying to create the 'top of arc', 'bottom of arc', 'arc radius' of the create letters with drw_string. I tried setting the .path var of font_attr to 4 - arc cw, and 5 - arc ccw and (arc) .center, but it's not working. Do you know what the correct params are for setting this? Bryan

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