Jump to content

Recommended Posts

Posted

Can anyone help write this macro. I can't quite figure it out.

 

This what I want to do:

 

1) Select All (CTRL+A)

2) Deselect within a pick box window

3) Erase the remaining selected objects

4) Purge all

5) Save

 

My main problem is item #2, there's no real command for deselecting, is there?

 

Thanks,

Shaun

Posted

Yes, there is. Type R at the command line after you have selected stuff and you can remove items from the selection. so you macro would be something like

^c^c_erase;all;r;\;_purge;...

 

I'm shutting down for a reboot so I can't test any of that, but it should get you started.

 

Glen

Posted
Yes, there is. Type R at the command line after you have selected stuff and you can remove items from the selection. so you macro would be something like

^c^c_erase;all;r;\;_purge;...

 

I'm shutting down for a reboot so I can't test any of that, but it should get you started.

 

Glen

 

 

 

Thanks Glen. It looks like that will do the trick, but I'm having trouble after the remove objects command. After I select the two points to remove objects, the script ends and purge doesn't start up. I tried tweeking the script as follows and I can't get it to work.

 

^c^c_erase;all;r;\;_purge,all,*,no;

^c^c_erase;all;r;\ _purge,all,*,no;

^c^c_erase;all;r;\\;_purge,all,*,no;

^c^c_erase;all;r;\\ _purge,all,*,no;

 

Any ideas?

Posted

Remember that tHh semicolon is used for an enter, every time you hit the enter key at the keyboard, you need a ; in your macro.

 

^c^c_erase;all;r;\\;_purge;all;;no;

 

should be what you need.

 

The best way that I've found to create macros is to do it by keyboard and write down EVERYthing that you type or click.

 

Glen

Posted
Remember that tHh semicolon is used for an enter, every time you hit the enter key at the keyboard, you need a ; in your macro.

 

^c^c_erase;all;r;\\;_purge;all;;no;

 

should be what you need.

 

The best way that I've found to create macros is to do it by keyboard and write down EVERYthing that you type or click.

 

Glen

 

 

Perfect. Thanks Glen.

 

I tried doing as you suggested, do it by keyboard and write down EVERYthing that you type or click. So for kicks I ran the "purge" command, a box came up and I'm able to to type "A" to select all, but then a pop-up window appears asking me to select from three options (1) purge this object only, (2) purge all items or (3)...

 

I can't figure out when the "no" command should've been initiated. Any idea?

Posted

Type hyphen purge : -purge this runs the purge command as a command line only (no dialog box) function. Then you can record your keystrokes.

 

Glen

Posted
Type hyphen purge : -purge this runs the purge command as a command line only (no dialog box) function. Then you can record your keystrokes.

 

Glen

 

 

Oh, I see.

Glen, you rock!

Thanks Bud.

Posted

I Try To Use That Formula It I Dont Know How Can I Use It Can Any One Explain ?

Posted
I Try To Use That Formula It I Dont Know How Can I Use It Can Any One Explain ?

 

1) Go to View / Toolbars...

2) The "Customize User Interface" menu should pop-up.

3) Click on the "Create New Command" button. (looks like a star with a + sign)

4) Next to the "Help" button at the bottom of the menu should be an arrow button to expand the menu - click it so it`s maximized.

5) Enter a your own command name into the Name line.

6) Copy and paste "^c^c_erase;all;r;\\;_purge;all;;no;" into the Macro line (without the quotation marks).

7) Select an icon for the new command.

8) On the Right Hand side menu, select your new command and drag it to an existing toolbar so you can access it later.

9) Hit apply.

10) Test it out.

 

This is what it runs:

1) Erase All - with the remove items option invoked.

2) Requests you to create a window selection to remove items from the Erase all command (so everything within the selection window will not be erased).

3) Purge all

 

 

- Shaun

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...