| | DAT format question
|
|
Hello, I know that models can contain subassemblies (if MPD format), and primitives can contain subprimitives, but can parts contain subparts? I'm finalizing the object hierarchy for my Lego CAD program and need to know whether I should support this (...) (25 years ago, 19-Sep-99, to lugnet.cad.dev)
|
|
| | Re: DAT format question
|
|
Er, let me clarify that. Do any of the existing part files have references to external parts other than primitives? (25 years ago, 19-Sep-99, to lugnet.cad.dev)
|
|
| | Re: DAT format question
|
|
(...) Yes. -- Jonathan Wilson wilsonj@xoommail.com (URL) (25 years ago, 19-Sep-99, to lugnet.cad.dev)
|
|
| | Re: DAT format question
|
|
(...) Yes, for example, 4588.dat references 3062b.dat. I don't know of any others that reference other parts, but many parts reference sub-parts in the ldraw\parts\s\ directory. --Bram Bram Lambrecht / o o \ BramL@juno.com (...) (25 years ago, 19-Sep-99, to lugnet.cad.dev)
|
|
| | Re: DAT format question
|
|
Bram Lambrecht wrote in message <19990918.195309.509...no.com>... (...) This raises the question: What's the difference between a primitive and a sub-part, and should they be interpreted any differently? (25 years ago, 19-Sep-99, to lugnet.cad.dev)
|
|
| | Re: DAT format question
|
|
(...) A primitive is in the p\ directory, a sub-part is in parts\s\ As far as I understand, a primitive is a general purpose shape, usually with dimensions around 1x1x1 LDU for easy scaling. Sub-parts are usually used by only one part, or for many (...) (25 years ago, 19-Sep-99, to lugnet.cad.dev)
|
|
| | Re: DAT format question
|
|
(...) Bram is correct.. primatives are exactly what the name implies, general purpose "basic" shapes (spheres, cylinders, studs, etc) that are used by many of the LDraw elements in various ways, scaled to various dimensions... sub-parts are usually (...) (25 years ago, 20-Sep-99, to lugnet.cad.dev)
|
|
| | Re: DAT format question [DAT]
|
|
(...) I just remembered something else: Since LDraw doesn't specifically support the /s directory, parts which call subparts in the /s directory must include the directory information. For example: 0 Space Wheel Medium 0 Name: 2593.dat 0 Author: (...) (25 years ago, 20-Sep-99, to lugnet.cad.dev)
|
|
| | Re: DAT format question
|
|
(...) Check part 3149C01.DAT. This is a "compound" part, a part which is really available from TLG, but it is made up of several different parts which are also available (in LDraw) for use as separate parts. There are also files, which aren't parts (...) (25 years ago, 20-Sep-99, to lugnet.cad.dev)
|
|
| | Re: DAT format question
|
|
(...) Oops. One more thing: models can contain subassemblies, whether or not the author uses the MPD format. MPD is just a convenience for distributing multi-file models. Heck, I've got one model which uses about 85 sub-model files. Actually, the (...) (25 years ago, 20-Sep-99, to lugnet.cad.dev)
|
|
| | Re: DAT format question
|
|
Steve Bliss wrote in message <37e66009.245335149@...et.com>... (...) primitives (...) I was aware of this feature. I meant to say 'reference' instead of 'contain', and I shouldn't have mentioned MPD there. Sorry for the confusion. (...) I intend to (...) (25 years ago, 20-Sep-99, to lugnet.cad.dev)
|
|
| | Re: DAT format question
|
|
(...) and some red canoes, right? :) --Bram (25 years ago, 20-Sep-99, to lugnet.cad.dev)
|
|
| | Re: DAT format question
|
|
(...) I think those account for about a half-dozen of the files. Since they aren't inlined & cleaned up yet. And they're currently multi-colortural. :) Steve (25 years ago, 20-Sep-99, to lugnet.cad.dev)
|
|
| | Unsubscribing
|
|
How do I unsubscribe? Richard Laing Vancouver, CANADA rlaing@axionet.com rlaing@bigfoot.com (URL) may be made of a Scotchman if he be caught young." Samuel Johnson (1709-1784) ***...*** (25 years ago, 21-Sep-99, to lugnet.cad.dev)
|
|
| | Re: Unsubscribing
|
|
(...) If you signed up manually, go here: (URL) simply reverse what you did earlier. But if you transferred over by default from the former L-CAD mailing list, which it looks like you did, then drop me a note (just reply to this message) and I'll (...) (25 years ago, 21-Sep-99, to lugnet.cad.dev)
|
|
| | Re: DAT format question
|
|
My original plans called for my CAD package to distinguish among the various kinds of DAT file. This would allow the program to know when it was appropriate to enable certain editing features. For example, it shouldn't allow the user to add (...) (25 years ago, 21-Sep-99, to lugnet.cad.dev)
|
|
| | Re: DAT format question
|
|
(...) I don't see that as being that big a deal, really. And if you could have some kind of button on a toolbar for each of them, all the better. (25 years ago, 21-Sep-99, to lugnet.cad.dev)
|
|
| | Re: DAT format question
|
|
Gary Williams wrote in message ... (...) with. Doh', this wouldn't be a complete solution, either. If the user opens a model, I'd still have to determine which external references in it are parts and which are embedded models/subassemblies. And if (...) (25 years ago, 21-Sep-99, to lugnet.cad.dev)
|
|
| | Re: DAT format question
|
|
Would it be too restrictive of my CAD program to require that all parts (and nothing but parts) are stored in the parts and parts/s directories, and all primitives (and nothing but primitives) are stored in the p directory? Models could exist (...) (25 years ago, 21-Sep-99, to lugnet.cad.dev)
|
|
| | Re: DAT format question
|
|
(...) Why not? I've done this when a part didn't exist (I used a box.dat for the center of the 1x2x2 shock absorber) (...) Part developers often use different colors to make sure shapes are matching up correctly. Also, atterned parts and some other (...) (25 years ago, 22-Sep-99, to lugnet.cad.dev)
|
|
| | Re: DAT format question
|
|
(...) Probably too restrictive. Most (I think) part developers design their parts in the models directory to keep them separate from the official parts. Mock-ups and crude outlines of parts should also be kept out of the parts directory. I like the (...) (25 years ago, 22-Sep-99, to lugnet.cad.dev)
|
|
| | Re: DAT format question
|
|
Bram Lambrecht wrote in message <19990921.200045.509...no.com>... (...) My experience has been that as flexibility increases, complexity increases. I'm usually quite anal about coding objects to always behave in a very structured, predictable (...) (25 years ago, 22-Sep-99, to lugnet.cad.dev)
|
|
| | Re: DAT format question
|
|
Gary Williams: (...) This makes sense for the editor, but the renderer should consider any LDraw file equal wherever it resides. It it also worth remembering that some parts files actually uses specific colours (not only 16 and 24). Play well, Jacob (...) (25 years ago, 22-Sep-99, to lugnet.cad.dev)
|
|
| | Re: DAT format question
|
|
Gary Williams: (...) [...] (...) Then give the user a _choice_ of interface. (...) I would limit command types 2-5 to the "extended interface". (...) The selected object would of cause (imo) always be the level referred directly to by the root level (...) (25 years ago, 22-Sep-99, to lugnet.cad.dev)
|
|
| | Re: DAT format question
|
|
(...) For new files, LDAO allows the user to specify the type of the file, separate from its location. The type information is written to the file as part of the header lines. When a file is loaded, LDAO looks for the typing information. If the file (...) (25 years ago, 22-Sep-99, to lugnet.cad.dev)
|
|
| | Re: DAT format question
|
|
(...) Complexity also increases as over-specification increases. (...) Yes, polygons and lines should be allowed. Maybe that should be on the advanced interface, but it should be allowed. (...) Yes. (...) Exactly. And if you right-click an object, (...) (25 years ago, 22-Sep-99, to lugnet.cad.dev)
|
|
| | Re: DAT format question
|
|
Steve Bliss wrote in message <37e9033a.13891366@l...et.com>... (...) Yup. The simplified one I made last night is here: (URL) over-complicated one isn't on the server anymore. -Gary (25 years ago, 22-Sep-99, to lugnet.cad.dev)
|