Sign in to follow this  
Followers 0
Plastic Nurak

A question about .lcd files

12 posts in this topic

Well, I was making official sets out of Leocad, but sincerely I don't know how to "find" the cad of the files :blush: .

At the moment, I'm building just ancient school sets.

Old files created using previous versions of Leocad between 2009 and early 2011, now are lost.

Edited by Plastic Nurak

Share this post


Link to post
Share on other sites

First try searching for the file name or 'lcd' in search.

If that does not work try the following:

1) Open Leo cad and add a few bricks in a new file.

2) Save the file but pay close attention on were the file is going to be saved.

3) assuming that you save all of the files in the same place you should now be able to find the folder with all of the Leo-cad files.

Edited by Alasdair Ryan

Share this post


Link to post
Share on other sites

I know the directory where the files are saved! I mean, when the cad file is uploaded I open it and I have the "code" that can be turned into a virtual model. For example, a L3B file:

0 Assembly 1
0 ROTATION CENTER 0 0 0 1 "Custom"
0 ROTATION CONFIG 0 0
1 4 -6 0 -1 0.707107 0 -0.707107 0 1 0 0.707107 0 0.707107 3815.dat
0 Assembly 1
1 0 -6 12 -1 0.707107 0 -0.707107 0 1 0 0.707107 0 0.707107 3816.dat
0 Assembly 1
1 0 -6 12 -1 0.707107 0 -0.707107 0 1 0 0.707107 0 0.707107 3817.dat
0 Assembly 3
1 4 39.255 0 44.255 0.707107 0 -0.707107 0 1 0 0.707107 0 0.707107 3815.dat
0 Assembly 3
1 7 39.255 12 44.255 0.707107 0 -0.707107 0 1 0 0.707107 0 0.707107 3816.dat
0 Assembly 3
1 7 39.255 12 44.255 0.707107 0 -0.707107 0 1 0 0.707107 0 0.707107 3817.dat
1 4 39.255 -32 44.255 0.707107 0 -0.707107 0 1 0 0.707107 0 0.707107 973p47.dat
1 0 -6 -32 -1 0.707107 0 -0.707107 0 1 0 0.707107 0 0.707107 973p4t.dat
1 4 5.031 -23.036 10.031 0.696364 0.122791 -0.707107 -0.173652 0.984807 0 0.696364 0.122791 0.707107 3819.dat
1 4 -17.031 -23.036 -12.031 0.696364 -0.12279 -0.707107 0.173652 0.984807 0 0.696364 -0.12279 0.707107 3818.dat
1 7 28.224 -23.036 33.224 0.696364 0.392442 -0.600888 0.173652 0.720242 0.671637 0.696364 -0.572049 0.433403 3818.dat
1 7 50.286 -23.036 55.286 0.696364 0.183952 -0.693714 -0.173652 0.981059 0.0858316 0.696364 0.0606949 0.715118 3819.dat
1 14 38.108 -16.94 14.64 0.428854 -0.568095 -0.702391 0.776755 0.628865 -0.0343694 0.461234 -0.530846 0.710961 3820.dat
1 14 64.112 -6.212 52.836 0.586532 -0.520414 -0.620603 0.0169104 0.773949 -0.633022 0.809749 0.360793 0.462747 3820.dat
1 14 17.834 -5.291 8.834 0.573588 -0.571518 -0.586826 0.00265797 0.717684 -0.696364 0.81914 0.397866 0.413174 3820.dat
1 14 -15.834 -5.291 -24.834 0.849477 -0.328141 -0.413174 -0.0625228 0.71496 -0.696364 0.523908 0.617378 0.586826 3820.dat
1 14 -6 -56 -1 0.707107 0 -0.707107 0 1 0 0.707107 0 0.707107 3626bp01.dat
1 14 39.255 -56 44.255 0.707107 0 -0.707107 0 1 0 0.707107 0 0.707107 3626bp01.dat
1 7 39.255 -56 44.255 0.707107 0 -0.707107 0 1 0 0.707107 0 0.707107 3844.dat
1 4 -6 -56 -1 0.707107 0 -0.707107 0 1 0 0.707107 0 0.707107 3842b.dat
1 0 -6 -50.5 -1 0.707107 0.525483 -0.473147 0 0.669131 0.743145 0.707107 -0.525483 0.473147 3843.DAT
1 0 -52.669 12 -49.083 0.707107 0 -0.707107 0 1 0 0.707107 0 0.707107 3816.dat
1 4 -52.669 0 -49.083 0.707107 0 -0.707107 0 1 0 0.707107 0 0.707107 3815.dat
1 0 -52.669 -32 -49.083 0.707107 0 -0.707107 0 1 0 0.707107 0 0.707107 973p4t.dat
1 14 -52.669 -56 -49.083 0.707107 0 -0.707107 0 1 0 0.707107 0 0.707107 3626bp01.dat
1 4 -52.669 -56 -49.083 0.707107 0 -0.707107 0 1 0 0.707107 0 0.707107 3842b.dat
1 0 -52.669 12 -49.083 0.707107 0 -0.707107 0 1 0 0.707107 0 0.707107 3817.dat
1 4 -41.638 -23.036 -38.052 0.696364 0.122791 -0.707107 -0.173652 0.984807 0 0.696364 0.122791 0.707107 3819.dat
1 4 -63.7 -23.036 -60.114 0.696364 0.392442 -0.600888 0.173652 0.720242 0.671637 0.696364 -0.572049 0.433403 3818.dat
1 0 -52.669 -50.5 -49.083 0.707107 0 -0.707107 0 1 0 0.707107 0 0.707107 3843.DAT
1 14 -28.835 -5.291 -39.25 0.573588 -0.571518 -0.586826 0.00265797 0.717684 -0.696364 0.81914 0.397866 0.413174 3820.dat
1 14 -53.816 -16.94 -78.698 0.709136 -0.0614292 -0.70239 0.0524127 0.998034 -0.0343694 0.703121 -0.0124415 0.710961 3820.dat
1 7 83.129 12.492 90.768 0.707107 0 -0.707107 0 1 0 0.707107 0 0.707107 3816.dat
1 4 83.129 0.492 90.768 0.707107 0 -0.707107 0 1 0 0.707107 0 0.707107 3815.dat
1 4 83.129 -31.508 90.768 0.707107 0 -0.707107 0 1 0 0.707107 0 0.707107 973p47.dat
1 14 83.129 -55.508 90.768 0.707107 0 -0.707107 0 1 0 0.707107 0 0.707107 3626bp01.dat
1 7 83.129 -55.508 90.768 0.707107 0 -0.707107 0 1 0 0.707107 0 0.707107 3844.dat
1 7 83.129 12.492 90.768 0.707107 0 -0.707107 0 1 0 0.707107 0 0.707107 3817.dat
1 7 94.16 -22.544 101.799 0.696364 0.122791 -0.707107 -0.173652 0.984807 0 0.696364 0.122791 0.707107 3819.dat
1 7 72.098 -22.544 79.737 0.696364 0.651232 -0.301619 0.173652 0.254887 0.951251 0.696364 -0.714793 0.0644065 3818.dat
1 14 106.962 -4.799 100.601 0.573588 -0.571518 -0.586826 0.00265796 0.717684 -0.696364 0.81914 0.397866 0.413174 3820.dat
1 14 83.91 -28.011 62.108 0.449378 0.586598 -0.673767 -0.318869 0.809853 0.492403 0.834495 -0.0064317 0.550977 3820.dat
1 7 -46.399 -19.154 -86.014 -0.967996 -0.23534 0.0871525 -0.215637 0.957636 0.190871 -0.12838 0.165969 -0.977738 3848.dat
1 7 -3.981 -8.22 -44.402 0.849476 -0.42114 -0.317851 -0.0625229 0.517826 -0.853197 0.523908 0.744643 0.413551 3835.dat
1 7 86.17 -42.444 55.376 0.763217 0.39921 -0.508062 -0.408481 0.907345 0.099322 0.500638 0.131729 0.855573 3847.dat
1 7 52.636 -23.006 11.345 0.631124 -0.725866 -0.273492 0.775376 0.600227 0.196257 0.0217009 -0.335922 0.941638 3846.dat
0 WORLD -17.58764 24.9887 -96.54775 0.9737176 0.01210546 0.2274236 0.05633951 0.9547448 -0.2920404 -0.2206686 0.2971757 0.928975
0 CENTRE 58 -22 -1
0 LOOKAT 0 0 0
0 ZOOM 50
0 ROTANGLE 0
0

Now, I've got the files, I don't find the "code" to post it.

Edited by Plastic Nurak

Share this post


Link to post
Share on other sites

Ok all of that dat should be placed into a notepad file and saved,then if you right click and open it with Leo-cad,does that work for you?

I see some figures....

th_leocad.png

Edited by Alasdair Ryan

Share this post


Link to post
Share on other sites

I'm NOT interested to convert a code in images (a thing tha I've already done in the past of course), my interest is converting a model into code.

When I open a .lcd file with the notepad I've not the ordinate source code but this:

LeoCAD 0.7 Project FILE 33³?ÿÿÿ < €?

k ÌÌÜ@ )\? €?Ïï³B p=Ú@ ÍÌŒ@ €?[ñ³B36 ÿ ÿÿTyre Large #05ÿÿÿÿ p=Ú@ )\? €?[ñ³B ™™™@áz4À333@ €? 35 ÿ ÿÿ +Wheel 8 x 35 with 12 Spokes (Complete) #05ÿÿÿÿ ™™™@™™9@ëQ8¿ €? 4C ™™™@áz4@®G@ €? 4C36 ÿ ÿÿ Tyre Large #04ÿÿÿÿ 33³À™™9@ëQ8¿ €? 4C 33³Àáz4@®G@ €? 4C36 ÿ ÿÿ Tyre Large #03ÿÿÿÿ ™™™@™™9ÀëQ8¿ €? ™™™@áz4À®G@ €? 36 ÿ ÿÿ Tyre Large #02ÿÿÿÿ 33³À™™9ÀëQ8¿ €? 33³Àáz4À®G@ €? 36 ÿ ÿÿ Tyre Large #01ÿÿÿÿ ™™™@áz4@ëQ8¿ €? 4C 33³Àáz4@®‡@ €? 4C35 ÿ ÿÿ +Wheel 8 x 35 with 12 Spokes (Complete) #04ÿÿÿÿ 33³Àáz4@ëQ8¿ €? 4C 33³Àáz4À333@ €? 35 ÿ ÿÿ +Wheel 8 x 35 with 12 Spokes (Complete) #03ÿÿÿÿ ™™™@áz4ÀëQ8¿ €? À@ÌÌL?

×£@ €?±ý³B35 ÿ ÿÿ +Wheel 8 x 35 with 12 Spokes (Complete) #01ÿÿÿÿ ÀÀ ¬Ga@ €?ù³B ÀÀÌÌL¿­Ga@ €?œú³B3023 ÿ ÿÿ Plate 1 x 2 #31ÿÿÿÿ 33ó@ ·…@ €?ù³B ffæ@™™™?·…@ €?œú³B3023 ÿ ÿÿ Plate 1 x 2 #30ÿÿÿÿ 33ó@ÌÌÌ¿·…@ €?ù³B ffæ@™™™¿·…@ €?œú³B3023 ÿ ÿÿ Plate 1 x 2 #29ÿÿÿÿ 33ó@ÌÌÌ?·…@ €?ù³B ffæ@™™™?·…@ €?œú³B3023 ÿ ÿÿ Plate 1 x 2 #28ÿÿÿÿ ÌÌÌ@ @·…@ €? 33³@ @·…@ €? 3023 ÿ ÿÿ Plate 1 x 2 #27ÿÿÿÿ ÌÌÌ@ À·…@ €? 33³@ À·…@ €? 3023 ÿ ÿÿ Plate 1 x 2 #26ÿÿÿÿ À ™™™@ €?œú³B À ™™™@ €?'ü³B3009 / ÿ ÿÿ Brick 1 x 6 #06ÿÿÿÿ €À ÌÌL@ €? ÌÌÌ@ÌÌL¿

Share this post


Link to post
Share on other sites

Have you tried to export the file in a dat file and then opened it with notepad?

Correct me if I am wrong but you want to read all of the parts separately in a text file format like this?:

1 7 -3.981 -8.22 -44.402 0.849476 -0.42114 -0.317851 -0.0625229 0.517826 -0.853197 0.523908 0.744643 0.413551 3835.dat
1 7 86.17 -42.444 55.376 0.763217 0.39921 -0.508062 -0.408481 0.907345 0.099322 0.500638 0.131729 0.855573 3847.dat

Edited by Alasdair Ryan

Share this post


Link to post
Share on other sites

This was a problem that more people asked. The solution was to export to .dat files. I think this is something to put into the section index. :classic:

Or maybe someone can write a short FAQ about LeoCad?

Share this post


Link to post
Share on other sites

I use it, but only occasionally (I better use LDD and SR3D) so I don't think to be the right guy to write a FAQ.

I was mainly interested to use Leocad on Ubuntu, but yesterday I had a lot of problem while configuring the program from the folder via shell, so I did prefer download the Windows version.

(previously I had an old Leocad release working on Ubuntu in my old PC, but it had a lot of lacking features that made creating something complex very difficult)

Edited by Plastic Nurak

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.