585,917 active members*
3,579 visitors online*
Register for free
Login
IndustryArena Forum > CAM Software > MadCAM > MC_Box command parameters for scripting?
Results 1 to 13 of 13
  1. #1
    Join Date
    Mar 2010
    Posts
    66

    MC_Box command parameters for scripting?

    I'm very excited to be working on a script that will automate my toolpath generation steps like the demonstration video:

    https://www.youtube.com/watch?v=7MoYV6Vfgg8

    For some reason the parameters for MC commands don't show up in my command history, just the command names.

    So I'm not able to figure out how to add the MC_Box command to a script with the parameters set to increase the XY size of the box by 0.0625.


    Can anyone show me how to make the command parameters show up in my Rhino command history like they are in the demo video?

    Or can anyone help me with the parameter format for the MC_Box command?


    Thanks

    Leo

  2. #2
    Join Date
    Mar 2010
    Posts
    66

    Re: MC_Box command parameters for scripting?

    Update:

    I've been able to figure out parameters for other toolpath commands, but not for MC_Box.

    Is MC_Box scriptable?

  3. #3
    Join Date
    Mar 2004
    Posts
    1661

    Re: MC_Box command parameters for scripting?

    I got curious and tried too and I couldn't figure it out. Not sure it is scriptable.

  4. #4
    Join Date
    Mar 2010
    Posts
    66

    Re: MC_Box command parameters for scripting?

    Thanks for trying it out svenakela.

    It would be fantastic if it could be made scriptable like the other commands.


    So far -MC_ProjectCurves and -MC_AlongCurves work perfectly in scripts, but -MC_Profiling is not generating a path when I script it, even though the same parameters work in the non-scripted dialogue box version of the MC_Profiling

    This is my script:

    -SelName Bass_End
    -MC_AxisMode a 1 _enter
    -MC_Profiling
    OnCurve=No _enter
    Direction=Climb _enter

    Stock_To_Leave 0 _enter
    MaterialTop 0
    MaterialBottom 0
    StepDown 0.1
    SkinCut 0
    BreakThrough 0 _enter

    Safe_Clearance 0.0625 _enter
    Radius 0.01
    Ramp_angle 0 _enter
    -SelNone


    Anyone with any thoughts as to errors I have made or if the scripting function is broken for this command would be much appreciated!

    Leo

  5. #5
    Join Date
    Mar 2010
    Posts
    66

    Re: MC_Box command parameters for scripting?

    Further update:

    I've now found that -MC_Profiling works when scripted with the OnCurve parameter set to Yes.

    It also works with OnCurve set to No and Direction=Conventional!

    It just doesn't work for me when I set Direction=Climb.

    It traverses the whole script in the command line as if everything is going well but at the end of the last parameter (Ramp_angle) it fails with an alert that says "madCAM error! Add toolpath to Rhino failed!"



    So the following script works perfectly:

    -MC_Profiling
    OnCurve=No _enter
    Direction=Conventional _enter
    Stock_To_Leave 0 _enter
    MaterialTop 0
    MaterialBottom 0
    StepDown 0.1
    SkinCut 0
    BreakThrough 0 _enter
    Safe_Clearance 0.0625 _enter
    Radius 0.01
    Ramp_angle 0 _enter


    But the same script with only the Direction parameter changed fails:

    -MC_Profiling
    OnCurve=No _enter
    Direction=Climb _enter
    Stock_To_Leave 0 _enter
    MaterialTop 0
    MaterialBottom 0
    StepDown 0.1
    SkinCut 0
    BreakThrough 0 _enter
    Safe_Clearance 0.0625 _enter
    Radius 0.01
    Ramp_angle 0 _enter
    -SelNone


    I'm thinking there must be some bug in the -MC_Profiling command?!?

    Or is one of my other parameters not compatible with the Climb direction somehow?
    That doesn't make sense to me as I've used the same parameters successfully in the dialogue box version of the command.


    This really has me stumped.
    Leo

  6. #6
    Join Date
    Mar 2010
    Posts
    66

    Re: MC_Box command parameters for scripting?

    Is there a bug reporting protocol for madCAM?

    I've tried emailing the company but no response so far.

  7. #7
    Join Date
    Mar 2004
    Posts
    1661

    Re: MC_Box command parameters for scripting?

    Quote Originally Posted by Corvus View Post
    Is there a bug reporting protocol for madCAM?

    I've tried emailing the company but no response so far.
    Consider that being a report.
    Mister JOM himself is always off the grid for a month (at least) every summer, he's probably out sailing during the sunny summer days.

  8. #8
    Join Date
    Mar 2010
    Posts
    66

    Re: MC_Box command parameters for scripting?

    Ah ok fair enough. Good on him for having a real holiday!

  9. #9
    Join Date
    Mar 2010
    Posts
    66

    Re: MC_Box command parameters for scripting?

    Bump.

    Hoping to have the problems with scripting MC_Box and MC_Profiling detailed in this thread looked at.


  10. #10
    Join Date
    Mar 2010
    Posts
    66

    Re: MC_Box command parameters for scripting?

    > 4 months have past with no response from MadCAM regarding these scripting issues.

    Surely the Climb bug in the -MCProfiling command is fixable?

  11. #11
    Join Date
    Mar 2004
    Posts
    1661

    Re: MC_Box command parameters for scripting?

    Patience my dear. Patience. There are very few software companies that spray releases all the time. There is a Service Release coming but I don't know when.

  12. #12
    Join Date
    Mar 2010
    Posts
    66

    Re: MC_Box command parameters for scripting?

    Just a friendly bump to try and keep this little bug on the radar.

    Again the two issues:

    1) There is a bug in scripted version of -MCProfiling when using climb cutting.

    2) Can't use scripted version of -MCBox command.

  13. #13
    Join Date
    Apr 2003
    Posts
    1357

    Re: MC_Box command parameters for scripting?

    I've noticed a couple of other things too. I've addressed them to Joakim, so hopefully these will get tweaked before the next service release.

    Dan
    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

Similar Threads

  1. Move command works until velocity command issued
    By madprinter in forum Dynomotion/Kflop/Kanalog
    Replies: 1
    Last Post: 06-30-2015, 01:06 AM
  2. Scripting
    By Koblenzer in forum BobCad-Cam
    Replies: 1
    Last Post: 12-07-2011, 03:01 PM
  3. V21 scripting help
    By ammfg in forum BobCad-Cam
    Replies: 3
    Last Post: 06-11-2010, 01:29 PM
  4. VB Scripting 101
    By UKRobotics in forum Screen Layouts, Post Processors & Misc
    Replies: 12
    Last Post: 05-18-2009, 12:04 PM
  5. Scripting
    By Klox in forum BobCad-Cam
    Replies: 29
    Last Post: 10-03-2003, 04:11 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •