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

Setting paths when inserting blocks

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

Setting paths when inserting blocks

Howdy --

I posted this message a while back on the "general" newsgroup and didn't get
a response -- thought I'd try it 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)

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 path:

c:\orlt\related\mapping\

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

QUESTION: is there a way to "customize" the Insert Block dialog box to open
in my
destination 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,

This works for me, you can create as many buttons as you may need for different file locations using this same routine.

;;; Create as many button as you may need.
;;; Typical macro for a button - (InsertFile "c:\\temp\\")
(defun InsertFile (a / b)
(setq b (getfiled "Select a File to Insert" a "dwg" 😎
)
(if b
(progn (prompt "\nSelect Insertion Point: ")
(command "insert" b pause "" "" "")
)
(princ "\n*** No File Selected ***")
)
(princ)
)


Jesse

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

Post to forums  

Autodesk Design & Make Report

”Boost