tzframpton Posted March 9, 2016 Posted March 9, 2016 Just as the title states. I'm wanting to avoid typing CEN+Enter every time I initiate a block from the Tool Palette. Thanks in advance! -TZ Quote
RobDraw Posted March 9, 2016 Posted March 9, 2016 You don't have it set as one of your running snaps? How about Shift+Rt click? Quote
tzframpton Posted March 9, 2016 Author Posted March 9, 2016 You don't have it set as one of your running snaps? How about Shift+Rt click? I do but I wanted only to isolate CEN snap on one particular block so I don't have to constantly toggle, type or right-click select. I just want this one particular block to always default to only a CEN snap. Quote
tzframpton Posted March 9, 2016 Author Posted March 9, 2016 No prob... thanks for the assistance. It helps narrow down the scenario for sure. Quote
steven-g Posted March 10, 2016 Posted March 10, 2016 How do you have your blocks entered into the toolpalette now? if you used drag and drop, or the design center to populate the toolpalette then I don't think it is possible to specify osnap settings for individual blocks. It might be possible with lisp to insert a block contained in a different drawing library. The way I would do it for a single block is to have that block saved as a seperate drawing, then use a macro in the toolpalette that uses the insert command and that way you can control the osnap for that individual block. The macro code here uses the full path for the block drawing but if the block is in the support path then just the blockname should work. This will allow you to pick the insertion point and uses a scale factor of "1" and a rotation of "0". ^C^C^Cinsert;C:/autocadsupport/blockname;cen;\;1;0; Quote
BIGAL Posted March 10, 2016 Posted March 10, 2016 Steven-g what about osmode do it as part of the macro ^C^C^COsmode;39,insert;C:/autocadsupport/blockname\;1;0;; But need a diesel to store current osmode and then reset back again. Quote
steven-g Posted March 10, 2016 Posted March 10, 2016 BIGAL - thats why I used the "cen" in the macro, that way there is no need to store the current osmode value, it just overides the current settings for the next input and then reverts back to the users current settings. In this case for a "one off" it offers the easiest option. Quote
SLW210 Posted March 10, 2016 Posted March 10, 2016 Did you try your Macro steven-g? I thought you need ^C^C^C-insert;"c:/myblocks/myblock1"[color="red"];-osmode[/color];cen; Or if the block is in the search path ^C^C^C-insert myblock1;-osmode;cen; Untested, but should work, might need tweeked. Quote
steven-g Posted March 10, 2016 Posted March 10, 2016 Yes tried and tested, the first three letter abbreviation for any of the osnaps works at any time that AutoCAD is expecting an input point, and it only works for the current input so any following input reverts back to the osmode setting in use, it is really handy when you are clicking on various places and suddenly find mid command that you really only want to use a specific snap to make your pick easier, I use it regularly on the fly or in macro's Quote
SLW210 Posted March 10, 2016 Posted March 10, 2016 I've always seen it with the -osmode, good info to know that it's not needed. Quote
Recommended Posts
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.