Macro to insert file

Hi

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

any help please?

Thanks

Hi Mad3d - Something like this should work:

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

-Pascal

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?

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

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

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

Awesome, will try that. Thanks