Acad (12 to 2005) : Inserting Blocks From Pull Down Menu
Page 1 of 1
Acad (12 to 2005) : Inserting Blocks From Pull Down Menu
Inserting blocks from a menu
Here is an example:
*^C^C-layer;s;yourlayername;;-insert;g:/drafting/blocks/yourblockname.dwg;\;;
You will have to specify what layer you would like the block to be inserted on and specify the block location and name of the block. The above line will insert your block (after you make your name adjustments) asking for an insertion point. Then it will bypass the scale, inserting your block 1:1 or what ever your defaults are set at. It will ask you for a rotation where you can enter an amount or pick on the screen. You can tweak these to you needs. By removing a semi colon here or a slash or inserting a colon or a slash, you can get different results. Remember, ; (colons) = "enter" and the \ (slash) is a pause for user imput, such as a click on the screen to select something or to point to an insertion point or rotation angle ... etc.
Note that the asterisk (*) before the line will cause the procedure to repeat in a loop until you hit enter. You can remove this if you want. For example. If you wanted to insert several copies of the same block, leave the asterisk. If you want to only insert 1 item then quit the command, remove the asterisk.
Here is an example:
*^C^C-layer;s;yourlayername;;-insert;g:/drafting/blocks/yourblockname.dwg;\;;
You will have to specify what layer you would like the block to be inserted on and specify the block location and name of the block. The above line will insert your block (after you make your name adjustments) asking for an insertion point. Then it will bypass the scale, inserting your block 1:1 or what ever your defaults are set at. It will ask you for a rotation where you can enter an amount or pick on the screen. You can tweak these to you needs. By removing a semi colon here or a slash or inserting a colon or a slash, you can get different results. Remember, ; (colons) = "enter" and the \ (slash) is a pause for user imput, such as a click on the screen to select something or to point to an insertion point or rotation angle ... etc.
Note that the asterisk (*) before the line will cause the procedure to repeat in a loop until you hit enter. You can remove this if you want. For example. If you wanted to insert several copies of the same block, leave the asterisk. If you want to only insert 1 item then quit the command, remove the asterisk.
architech- Admin
- Number of posts : 401
Age : 53
Location : East Coast
Registration date : 2008-11-07
Re: Acad (12 to 2005) : Inserting Blocks From Pull Down Menu
Attached are examples of menu that use the insertion code...
To see it action type
menuload
and browse to the file to load....
The menu won't work because the DWGs aren't there but the format will be visually there for you to see.
http://www.mediafire.com/file/j2vmg4wdjom/menus.zip
To see it action type
menuload
and browse to the file to load....
The menu won't work because the DWGs aren't there but the format will be visually there for you to see.
http://www.mediafire.com/file/j2vmg4wdjom/menus.zip
architech- Admin
- Number of posts : 401
Age : 53
Location : East Coast
Registration date : 2008-11-07
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum