To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 7696
  DAT files: Do No Harm
 
What consideration should an editor program make for unfamiliar content or eccentric style when it loads and saves an LDRAW file with changes? I am implementing the following general ideas in BrickDraw3D, based on various situations in test files. (...) (22 years ago, 21-Aug-02, to lugnet.cad.dev)  
 
  Re: DAT files: Do No Harm
 
(...) These 2 are the 2 biggest problems I have with MLCAD. For some reason MLCad changes the filename in the NAME comment block to an .ldr extension even if the source file is .dat. As more of a part author than a model builder, this is very (...) (22 years ago, 22-Aug-02, to lugnet.cad.dev, lugnet.cad.mlcad)  
 
  Re: DAT files: Do No Harm
 
I don't have any comments, except to say that I agree with pretty much everything you wrote. And that I'd be very hard-pressed to actually implement some of it. And I didn't completely understand all of your points... (...) Yes! (...) Good idea, (...) (22 years ago, 22-Aug-02, to lugnet.cad.dev)
 
  Re: DAT files: Do No Harm
 
(...) This sounds counter-productive to me. Judging from the official LDraw files, it appears that many of the original files follow these guidelines with respect to indentation: o Comments are not indented o All other lines are indented by one (...) (22 years ago, 22-Aug-02, to lugnet.cad.dev, lugnet.cad.mlcad)
 
  Re: DAT files: Do No Harm
 
(...) I would go for this. If a line is indeed edited, then I would preserve it's indentation, but remove trailing decimal zeros, and possibly clean up other things, like changing "-0" to "0". If the file has any exponential notation, e.g, "2e1", (...) (22 years ago, 22-Aug-02, to lugnet.cad.dev)
 
  Re: DAT files: Do No Harm
 
(...) does this include "don't add any new lines unless they're intentional"? As in, a program shouldn't add (and forgive me if this is incorrect dat format): 0 edited by dan with DatZap on Tuesday :) Dan (22 years ago, 22-Aug-02, to lugnet.cad.dev)
 
  Re: DAT files: Do No Harm
 
(...) Yes, we seem to see a lot of this sort of thing these days. 0 ROTATION CENTER 0 0 0 1 "Custom" I'd say leave it out unless it's actually being used. My guess is most of the time it's not. Don (22 years ago, 22-Aug-02, to lugnet.cad.dev)
 
  Re: DAT files: Do No Harm
 
(...) What about program extensions that modify the DAT code in some way? Are you suggesting that the author of a plugin shouldn't credit himself in the form of a DAT Comment? -Orion (22 years ago, 22-Aug-02, to lugnet.cad.dev)
 
  Re: DAT files: Do No Harm
 
(...) I found some model which was (mostly) all 3001.dat, except only the first line gave the part number! All following lines were meant to be the same part (with different location.) I guess the author's viewer tolerates this? So, the rule would (...) (22 years ago, 22-Aug-02, to lugnet.cad.dev)
 
  Re: DAT files: Do No Harm
 
(...) Whoa. That's kinda bizarro. (...) I'd say the rule would be, don't fix invalid lines without the authors permission. ;) (...) I see your point, but I would expect most programs to choke (gracefully ;) on the line without part numbers. (...) (...) (22 years ago, 22-Aug-02, to lugnet.cad.dev)
 
  Re: DAT files: Do No Harm
 
(...) Not in my DAT files, they shouldn't. Especially not editing stuff. Truly generated code, maybe it's alright. It should always go at the top, where it can be easily deleted. Steve (22 years ago, 23-Aug-02, to lugnet.cad.dev)
 
  Re: DAT files: Do No Harm
 
(...) I was thinking more along the lines of the output of my fexible object Plugin for LDDesignPad. I add some informational comments and credit myself and Fredrik for the code generation. Is this undesired? If so, it can easily be modified to the (...) (22 years ago, 23-Aug-02, to lugnet.cad.dev)
 
  Re: DAT files: Do No Harm
 
(...) I haven't tried your plugin, so I can't really comment on the informational lines -- do they have to do with the data/code, or are they an "about the flexible object plugin" type of thing? Information about the data/code (how to use, source (...) (22 years ago, 23-Aug-02, to lugnet.cad.dev)
 
  Re: DAT files: Do No Harm
 
(...) Basically I do this: 0 Begin Curve <the applicable DAT code appears here> 0 <The next 3 lines list> 0 <control points and curve lengths> 0 <if recreation elsewhere is desired> 0 Hose generated by <plugin> authored by <person> 0 End Hose -Orion (22 years ago, 23-Aug-02, to lugnet.cad.dev)

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR