Welcome, Guest |
You have to register before you can post on our site.
|
Latest Threads |
The Emperor Zurg
Forum: Part Requests
Last Post: Julian Raymond Ruan
54 minutes ago
» Replies: 0
» Views: 25
|
Parts request
Forum: Part Requests
Last Post: Peter Grass
5 hours ago
» Replies: 1
» Views: 185
|
Batman Cowls
Forum: Part Requests
Last Post: Peter Grass
Today, 1:13
» Replies: 1
» Views: 217
|
A fresh list of "most com...
Forum: Part Requests
Last Post: tom alphin
Today, 0:11
» Replies: 7
» Views: 693
|
Transparent sticker colou...
Forum: General LDraw.org Discussion
Last Post: N. W. Perry
Yesterday, 19:12
» Replies: 1
» Views: 329
|
Fix for slightly incorrec...
Forum: Part Requests
Last Post: Huib Versteeg
Yesterday, 9:50
» Replies: 4
» Views: 867
|
Lego Town Racer 1996 - 63...
Forum: Official Models
Last Post: Chris Böhnke
2025-09-13, 23:39
» Replies: 14
» Views: 2,111
|
Eyesight on Linux
Forum: Rendering Techniques
Last Post: Orion Pobursky
2025-09-13, 18:56
» Replies: 12
» Views: 8,767
|
Another common varient: 1...
Forum: Part Requests
Last Post: Rene Rechthaler
2025-09-12, 14:51
» Replies: 8
» Views: 5,615
|
1Lx1Lx2L brick with studs...
Forum: Parts Authoring
Last Post: SNIPE
2025-09-12, 10:14
» Replies: 0
» Views: 793
|
|
|
3dxml2dat |
Posted by: Rolf Osterthun - 2011-10-26, 21:53 - Forum: Parts Author Tools
- Replies (3)
|
 |
Hey,
some time ago Philo described a method to convert LDD parts into LDraw parts (http://news.lugnet.com/cad/?n=17697). In the <VertexBuffer> section, Philo referred to, there is next to the <Positions> tag also a <Normals> tag. With these normals there is a calculable way to differ between normal lines (linetype 2) and optional lines (linetype 5).
I wrote a small console application based on .NET 3.5 that can make these calculations. The application is kind of simple and silly; but if you play it right it might help you a lot: you have to add the desired part in the LDD without rotating the view. Than take the 3D screenshot and extract the 3dxml file out of the 3dxml archive. Open the 3dxml file and search for the <VertexBuffer> section. Copy the <Positions> and <Normals> line into a new textfile and save it (e.g. file.txt). Call the new console application with the new file as argument and you will get an LDraw part with lines and optional lines.
Please remember: "Getting the shape is only the tip of the iceberg!". This tool is ment to help part authors to create parts. Please make them LDraw parts first before you add them to the parts tracker.
You can download the tool at http://digital-bricks.de/download/3dxml2dat.zip
The application can be downloaded as it is. I do not take charge for errors or any kind of damage to your system that is caused by this tool.
There are a few options you can play with:
Code: Usage: 3dxml2dat.exe [Options] <inputFileName>
Options:
[-scale <value>]: scale the mesh with factor <value> (default is 25)
[-out <outputFileName>]: write the result in <outputFileName> (default is <inputFileName>.dat)
[-optionalLines <true|false>]: draw optional lines (default is <true> )
[-normals <true|false>]: draw normals (default is <false> )
[-ymin <value>]: the lowest y will be at <value>
Rolf
|
|
|
I want to put .dat files into SolidWorks |
Posted by: Jason Bardis - 2011-10-24, 2:44 - Forum: LDraw File Processing and Conversion
- Replies (5)
|
 |
Hi-
I'm a die-hard SolidWorks user & wish to import LDraw .dat models into SolidWorks.
I'm having some trouble. Here's what I've tried:
I downloaded LDraw & the entire part library.
I downloaded, purchased, & registered 3DWin from TB Software.
3DWin can convert .dat files to .igs or .stl, both of which can be read by SolidWorks.
When I perform these file conversions, however, the files either won't load into SolidWorks, load but with errors/warnings & come up empty, or import and have just a few curves but no solids and the curves don't even look like the completely correct part.
I know that I'm starting with good .dat files, because MLCad opens up the .dat files just fine.
Does anybody have experience with this conversion? Or, is there already a library of parts models that can be imported into SolidWorks?
Thank you very much,
-Jason
PS--Here's a little more detail on some of the trials & tribulations, if some of you are familiar with the nitty gritty of this process.
1 - STL. After I have created an .STL file with 3DWin & I open the .STL file with SolidWorks, the file opens & is empty--there is no geometry. Tested this with 3001.dat & 3002.dat. When opening an .STL file generated from 1.dat, I get some thin geometry, but no solids, & it's incomplete.
2 - IGS. After I have created an .IGS file with 3DWin & I open the .IGS file with SolidWorks, I get one of the following errors:
a) "This file contains free curves/points which are not desired according to the import options. Do you wish to import them anyway? Yes/No" After I select "Yes", the file opens with a sort of a skeleton of imported curves, but no solid geometry, & the part looks incomplete. (I get these results with file 1.dat).
b) "Unable to read IGS file. File was truncated or contains invalid data. OK". I click "OK" & the box disappears & SolidWorks gives up on opening the file. (I get these results with files 3001.dat & 3002.
During my troubleshooting, I have tried parts 1.dat, 3001.dat, & 3002.dat. All of these open fine in MLCad, so I know that the source .DAT files are OK.
|
|
|
Looking for some Spyrius parts. |
Posted by: Jude Parrill - 2011-10-22, 9:56 - Forum: Parts Authoring
- No Replies
|
 |
I've been working on some Spyrius sets and was wondering if anybody has or could make the following parts for me:
3626bpx193 Minifig Head with Blue Headband, Red Hair and Eyebrows Pattern
3626bpx252 Minifig Head with Moustache Thin, Stubble and Sideburns Pattern
2446px14 Minifig Accessory Helmet Modern with Silver and Blue Vents Pattern
3039px2 Slope Brick 45 2 x 2 with Horizon Pattern
3039px32 Slope Brick 45 2 x 2 with Yellow Droid Outline on Screen Pattern
4346px15 Container Box 2 x 2 x 2 Door with Slot and Spyrius Pattern
I'd appreciate it.
|
|
|
|