Macro to insert file


#1

Hi

I want to create a simple macro to insert for example C:\Test.3dm

any help please?

Thanks


(Pascal Golay) #2

Hi Mad3d - Something like this should work:

! _-Insert "Path to file in double quotes" _Block _Pause 1 0 _Enter

-Pascal


#3

Thanks Pascal

I figured out myself, the code is a bit diferent but they both work the same I guess.

!-_Insert C:\D5.3dm _Group _Enter _Pause _Enter _Enter _SelNone

What does the 1 and 0 in your code?


#4

I see now, I did with enter and enter but I will change mine to 1 and 0 also, It´s safer :slight_smile:


#5

Hi, I have similar question… what if I want to insert it automatically to insertion point “0,0,0” ? Thank you


(Pascal Golay) #6

Hello -

! _-Insert "Block 01" _Block 0 1 0 _Enter
or
! _-Insert File=Yes "Path to file in double quotes" _Block 0 1 0 _Enter

-Pascal


#8

Awesome, will try that. Thanks