Macro stalls on unsuccessful command

Good Afternoon All,

I am making a macro to create a surface from a cloud of points. The points occur in discrete layers established in the x and z directions. The issue I am having is that if my commands do not select any points, the Macro stops working, where ideally it would just move on to the next SelBox being checked for points. The Macros commands are set up as below:

_SelBox -8.5,-1,-99 -7.5,-1,-99 -7.5,99,-99 -7.5,99,99
_CurveThroughPt _Enter
_SelNone

_SelBox -7.5,-1,-99 -6.5,-1,-99 -6.5,99,-99 -6.5,99,99
_CurveThroughPt _Enter
_SelNone

_SelBox -6.5,-1,-99 -5.5,-1,-99 -5.5,99,-99 -5.5,99,99
_CurveThroughPt _Enter
_SelNone

In this scenario, no points exist in the middle SelBox and the macro stops working. I’ve tried _EnterEnd and _Cancel with no luck.

Thank you for any insight.

Hello - it will be well worth the effort to do this in a python script rather than trying to push a macro this far. Scripting allows you to check for success and follow different paths according to the result.

How are you getting the initial boxes, are these just known and you use them all the time?

-Pascal

Good Afternoon Pascal,

Thank you for the quick reply. I thought that might be the case.

Guess its time to start educating myself on scripting.

Respectfully,
-Daniel

Hi Daniel - here’s a crude example with your selection boxes hard coded so to speak, as in the macro. The thing expects you to select a point cloud.

test points in boxes.py (1.4 KB)

-Pascal