Create library search button

unhandled

(Rubencarnoy) #1

Hi there

i want to create a button so that if i click the button i can chose a .3dm file in the right map.

For example i have a few standard doors. if i want to import a door i click on the button. then the button should me bring in the map “doors” in my library. So i can pick the right door.

i have tried this macro but it didn’t work.
! _-import
_browse “C:\Users\ruben\Documents\Doors”

Kind regrets
Ruben


#2

Hi,
As an efficient alternative, you could use the Libraries panel and set a new path to each one of your prefered folders.


(Pascal Golay) #3

Hi Ruben - try

! -SetWorkingFolder "C:\Users\ruben\Documents\Doors" Import

-Pascal


(Rubencarnoy) #4

Pascal

Rhino doesn’t recognize the command SetWorkingFolder.

Greetings


(Rubencarnoy) #5

Piem

It is indeed an efficient aternative. but i think creating a button is a little bit faster.

Greetings


#6

In Rhino 5 the command is -SetWorkingDirectory, for some reason in V6 it was changed to -SetWorkingFolder

Try this on your button if you are using Rhino 5:
! -SetWorkingDirectory "C:\Users\ruben\Documents\Doors" Import