Simon_FR Posted November 19, 2010 Posted November 19, 2010 Hi Guys, Been flicking onto here for a couple of years now picking tips up but now i'm needing some serious help. Basically i'd like to make a toolbar of which i can click and simply insert blocks from a location on a works server (if this is possible?) I've read up about the long string editor etc and made little sense of it I've tried using this code ^C^C-insert;P:/York/M&E/CAD_Details/Tool_Palette/Block;\\;0;explode;last; and i get this in return.... Command: -insert Enter block name or [?]: P:/York/M&E/CAD_Details/Tool_Palette/Block "Block.dwg": Can't find file in search path: H:\My Documents\ (current directory) P:\York\M&E\CAD Details\Tool Palette\ C:\Documents and Settings\Sblades\Application Data\Autodesk\AutoCAD 2008\R17.1\enu\support\ C:\Program Files\AutoCAD 2008\support\ C:\Program Files\AutoCAD 2008\fonts\ C:\Program Files\AutoCAD 2008\help\ C:\Program Files\AutoCAD 2008\Express\ C:\Program Files\AutoCAD 2008\support\color\ C:\Program Files\AutoCAD 2008\drv\ C:\Program Files\AutoCAD 2008\ *Invalid* I have added the full location of the folder path to the support file search path and has made no difference so if anyone could shed some light onto my problem i would really appreciate it. Thanks Simon Quote
pBe Posted November 19, 2010 Posted November 19, 2010 (edited) I've tried using this code ^C^C-insert;P:/York/M&E/CAD_Details/Tool_Palette/Block;\\;0;explode;last; ^C^C_.insert;[color=sienna]"[/color][color=sienna]*[/color]P:/York/M&E/CAD_Details/Tool_Palette/Block.[color=sienna]dwg[/color][color=sienna]"[/color]; The * will insert the block already exploded, put the .DWG or not it doesnt really matter Besides, use Tool Palettes.. its a lot convenient than customizing every button in a toolbar Ctrl+2.. browse for the folder with the blocks... right click.. select 'Create tool palette of blocks" Ctrl+3 is tool palettes.... and you're ready to go Edited November 19, 2010 by pBe Typo Error Quote
BlackBox Posted November 19, 2010 Posted November 19, 2010 I have added the full location of the folder path to the support file search path and has made no difference so if anyone could shed some light onto my problem i would really appreciate it. ^C^C_.insert;[color=sienna]"[/color][color=sienna]*[/color]P:/York/M&E/CAD_Details/Tool_Palette/Block.[color=sienna]dwg[/color][color=sienna]"[/color]; The * will insert the block already exploded, put the .DWG or not it doesnt really matter Given that the block's file path is already added to the Support Files Search Path, then :wink:: ^C^C^P._[color=red][b]-[/b][/color]insert;"*Block";\\;0; Besides, use Tool Palettes.. its a lot convenient than customizing every button in a toolbar Ctrl+2.. browse for the folder with the blocks... right click.. select 'Create tool palette of blocks" Ctrl+3 is tool palettes.... and you're ready to go Agreed. This method also provides layer checking, and a whole host of features that an error prone macro will not (unless the macro calls a LISP routine). Hope this helps! Quote
pBe Posted November 19, 2010 Posted November 19, 2010 Given that the block's file path is already added to the Support Files Search Path, then :wink:: ^C^C^P._[color=red][b]-[/b][/color]insert;"*Block";\\;0; Yup! Quote
Simon_FR Posted November 19, 2010 Author Posted November 19, 2010 Thanks guys, it's worked! Just a shame i have quite a few different blocks but i'm creating them for the use at work where then people have a central point of blocks rather than using slightly different ones or their own. Cheers guys! Quote
pBe Posted November 19, 2010 Posted November 19, 2010 (edited) Thanks guys, it's worked!Just a shame i have quite a few different blocks but i'm creating them for the use at work where then people have a central point of blocks rather than using slightly different ones or their own. Cheers guys! No problem "Tool Palettes" You can export/import these... (Not the blocks but the LINK to the blocks) , which i assume you sotre on the server "central point of blocks"... Exactly!! and yeah... Welcome to the Fourm Edited November 19, 2010 by pBe added greeting Quote
BIGAL Posted November 23, 2010 Posted November 23, 2010 Its good practice to have your blocks in one location only then they dont get changed or saved over. Set them to read only then you can not accidently overwrite them. Quote
Simon_FR Posted November 23, 2010 Author Posted November 23, 2010 Yeah we have just been bought by another company so now our systems are full operational i've decided to start compiling all of them into one location so keep consistency on all drawings Quote
Simon_FR Posted November 24, 2010 Author Posted November 24, 2010 Any idea on how i can just click the link so it doesnt ask about a scale and just ask's for an insertion point where i can click to insert it? Thanks Quote
alanjt Posted November 24, 2010 Posted November 24, 2010 Any idea on how i can just click the link so it doesnt ask about a scale and just ask's for an insertion point where i can click to insert it? Thanks Just specify it before picking the insertion point.eg. Command: in -INSERT Enter block name or [?] <p6>: Specify insertion point or [basepoint/Scale/X/Y/Z/Rotate]: s Specify scale factor for XYZ axes <1>: 1 Specify insertion point or [basepoint/Scale/X/Y/Z/Rotate]: r Specify rotation angle <0d0'0">: 0 Specify insertion point or [basepoint/Scale/X/Y/Z/Rotate]: Quote
pBe Posted November 25, 2010 Posted November 25, 2010 Any idea on how i can just click the link so it doesnt ask about a scale and just ask's for an insertion point where i can click to insert it? Thanks You mean from Tool Palettes? Right click on the icon,There's options for Scale/Auxilliary scale.. play with it. If you're using 2008 and above consider creating blocks wiht Annotative Behavior. Quote
BIGAL Posted November 26, 2010 Posted November 26, 2010 Something like ^c^cINSERT blockname DRAG \1;;DRAG 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.