"Join Curves" macro?

There is a bug in Designer 2017 update 1 that does a join curves very slowly if the selection is displayed on screen. I want to work around this bug by writing a macro to change the view so the selection is not displayed and then run Join Cuves, and then return the view to the previous view. I cannot find documentation on how to run Join Curves in a macro. When recording it ignores that command. How do you call Join Curves in a macro?