Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Set default path to blocks?

1 REPLY 1
Reply
Message 1 of 2
Anonymous
215 Views, 1 Reply

Set default path to blocks?

I originally posted this question on the AutoCAD General newsgroup, but
didn't receive any response -- so I'll try here!

--------------------------------------------------

When I click the toolbar button for "insert block", a block named "North1"
is visible (there are 2 others below it in the drop-down list) and the
"Path:" line in the dialog box is blank.

To find the blocks I use, I have to [ Browse... ] to the path where I keep
all my blocks:

The [ Browse... ] opens in C:\ORLT\

I then have to browse further to eventually get to my real path:

C:\ORLT\RELATED\MAPPING\

Finally, I get the list of blocks to select from!

QUESTION: is there a way to have the Insert Block dialog box *open* in my
real path *and* have all my regular block names (about 15) appear in this
initial dropdown list?

Thanks


John

)))))))
(o)-(o)
-----oo0---(_)---0oo-----------------------------------

John Cutler
GIS Director, Ozark Regional Land Trust
(Ozark Bioregion - MO/AR/KS/OK)
2435 Sweetwater Lane
Mansfield MO 65704
(417) 741-7363 jcutler@getgoin.net
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

John,
I believe the insert command looks in the current directory as the default and then
in the directory last browsed to.
A solution that don't require programming:

1. Add your block folder to your favorites. In that case you could press
browse and then favorites and then choose your directory.

Use the getfiled function to preset the directory location and obtain a filename.
(getfiled title default ext flags)

;to display the file dialog at the block directory and return a fully qualified name
(setq fn (getfiled "Insert" "yourblockpath" "dwg" 0))
;to insert the block
(command "insert" fn)

Doug

"John Cutler" wrote in message
news:58166EBEFD9477D77582BE4F2D4546F8@in.WebX.maYIadrTaRb...
> I originally posted this question on the AutoCAD General newsgroup, but
> didn't receive any response -- so I'll try here!
>
> --------------------------------------------------
>
> When I click the toolbar button for "insert block", a block named "North1"
> is visible (there are 2 others below it in the drop-down list) and the
> "Path:" line in the dialog box is blank.
>
> To find the blocks I use, I have to [ Browse... ] to the path where I keep
> all my blocks:
>
> The [ Browse... ] opens in C:\ORLT\
>
> I then have to browse further to eventually get to my real path:
>
> C:\ORLT\RELATED\MAPPING\
>
> Finally, I get the list of blocks to select from!
>
> QUESTION: is there a way to have the Insert Block dialog box *open* in my
> real path *and* have all my regular block names (about 15) appear in this
> initial dropdown list?
>
> Thanks
>
>
> John
>
> )))))))
> (o)-(o)
> -----oo0---(_)---0oo-----------------------------------
>
> John Cutler
> GIS Director, Ozark Regional Land Trust
> (Ozark Bioregion - MO/AR/KS/OK)
> 2435 Sweetwater Lane
> Mansfield MO 65704
> (417) 741-7363 jcutler@getgoin.net
>
>
>
>
>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost