LDraw.org Discussion Forums
Import/insert ldr/dat file in LDCad - Printable Version

+- LDraw.org Discussion Forums (https://forums.ldraw.org)
+-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html)
+--- Forum: LDraw Editors and Viewers (https://forums.ldraw.org/forum-11.html)
+--- Thread: Import/insert ldr/dat file in LDCad (/thread-22406.html)



Import/insert ldr/dat file in LDCad - Jaco van der Molen - 2017-10-06

Hi all,

Perhaps a silly question from a meanwhile die-hard LDCad user ;-)

Is it possible to import or insert an LDraw model file (.ldr or .dat for that matter) like in good-old MLCad Import submodel?


Thanks.

Jaco


RE: Import/insert ldr/dat file in LDCad - Philippe Hurbain - 2017-10-06

One thing that mostly works is to drag/drop wheelchair.ldr onto ldcad screen, and choose "use file by reference". "Mostly", because there seems to be a problem finding the wheelholder file, even if I put model, wheelchair.ldr and wheelholder.dat in the same folder. But if I put everything in the same fordel and inline wheelchair.ldr, the wheelholder does appear...
Edit: OK, dunno what I did wrong before, now I see the wheelholder, no matter where I put wheelchair and wheelholder
Now this uses file as reference. To put the wheelchair in the mpd itself, right click on it, reorganize -> embed unofficial content.


RE: Import/insert ldr/dat file in LDCad - Jaco van der Molen - 2017-10-07

(2017-10-06, 12:22)Philippe Hurbain Wrote: One thing that mostly works is to drag/drop wheelchair.ldr onto ldcad screen, and choose "use file by reference". "Mostly", because there seems to be a problem finding the wheelholder file, even if I put model, wheelchair.ldr and wheelholder.dat in the same folder. But if I put everything in the same fordel and inline wheelchair.ldr, the wheelholder does appear...
Edit: OK, dunno what I did wrong before, now I see the wheelholder, no matter where I put wheelchair and wheelholder
Now this uses file as reference. To put the wheelchair in the mpd itself, right click on it, reorganize -> embed unofficial content.

Ok gonna give this a try. I have a few minifigs generated by MLCad that need to go in a models. 
Of course I can put them in manually too in the mpd, but doing it in LDCad is faster this way.


RE: Import/insert ldr/dat file in LDCad - Jaco van der Molen - 2017-10-07

(2017-10-07, 7:21)Jaco van der Molen Wrote:
(2017-10-06, 12:22)Philippe Hurbain Wrote: One thing that mostly works is to drag/drop wheelchair.ldr onto ldcad screen, and choose "use file by reference". "Mostly", because there seems to be a problem finding the wheelholder file, even if I put model, wheelchair.ldr and wheelholder.dat in the same folder. But if I put everything in the same fordel and inline wheelchair.ldr, the wheelholder does appear...
Edit: OK, dunno what I did wrong before, now I see the wheelholder, no matter where I put wheelchair and wheelholder
Now this uses file as reference. To put the wheelchair in the mpd itself, right click on it, reorganize -> embed unofficial content.

Ok gonna give this a try. I have a few minifigs generated by MLCad that need to go in a models. 
Of course I can put them in manually too in the mpd, but doing it in LDCad is faster this way.

So I dragged my minifig models in the main file. This works.
But what I meant was actually that the file itself was imported in the model as a submodel in the MPD structure.
This way I can only inline and have to create a submodel yet again.

What I would like is the same feature like MLCad's Import Submodel.


RE: Import/insert ldr/dat file in LDCad - Roland Melkert - 2017-10-07

(2017-10-07, 18:27)Jaco van der Molen Wrote: So I dragged my minifig models in the main file. This works.
But what I meant was actually that the file itself was imported in the model as a submodel in the MPD structure.
This way I can only inline and have to create a submodel yet again.

What I would like is the same feature like MLCad's Import Submodel.

Embed unofficial content is the same as 'import model'.

Do note: There is a small bug (or rather an overview on my side) concerning doing that with a mpd, it will only embed its main model I'll fix that for 1.6b but embedding a single ldr should work like you want.


RE: Import/insert ldr/dat file in LDCad - Milan Vančura - 2017-10-09

(2017-10-07, 18:27)Jaco van der Molen Wrote: What I would like is the same feature like MLCad's Import Submodel.

I know about this simple way: while you have the main file open in LDCad, open the submodel file as another one, then go back to the main session (a hotkey "End") and find "all open models" section in the PartBin. This way you can add (reference) the submodel easily.

I know about that because this is what I'm careful about, NOT to do that Smile (accidentally) because surprises know to be very bad then. But if you know what you are doing, go ahead. One idea: if you want to have something like your own library of submodels, wouldn't be possible to add that directory as a source of unofficial "parts" and have them accessible directly at each LDCad run, automatically? (I didn't test this, just an idea.)


RE: Import/insert ldr/dat file in LDCad - Jaco van der Molen - 2017-10-09

(2017-10-07, 21:10)Roland Melkert Wrote:
(2017-10-07, 18:27)Jaco van der Molen Wrote: So I dragged my minifig models in the main file. This works.
But what I meant was actually that the file itself was imported in the model as a submodel in the MPD structure.
This way I can only inline and have to create a submodel yet again.

What I would like is the same feature like MLCad's Import Submodel.

Embed unofficial content is the same as 'import model'.

Do note: There is a small bug (or rather an overview on my side) concerning doing that with a mpd, it will only embed its main model I'll fix that for 1.6b but embedding a single ldr should work like you want.

Ah, OK. I see.


RE: Import/insert ldr/dat file in LDCad - Jaco van der Molen - 2017-10-09

(2017-10-09, 7:53)Milan Vančura Wrote:
(2017-10-07, 18:27)Jaco van der Molen Wrote: What I would like is the same feature like MLCad's Import Submodel.

I know about this simple way: while you have the main file open in LDCad, open the submodel file as another one, then go back to the main session (a hotkey "End") and find "all open models" section in the PartBin. This way you can add (reference) the submodel easily.

I know about that because this is what I'm careful about, NOT to do that Smile (accidentally) because surprises know to be very bad then. But if you know what you are doing, go ahead. One idea: if you want to have something like your own library of submodels, wouldn't be possible to add that directory as a source of unofficial "parts" and have them accessible directly at each LDCad run, automatically? (I didn't test this, just an idea.)

Good point Milan! Thanks.