To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.dat.parts.primitivesOpen lugnet.cad.dat.parts.primitives in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / LDraw Files / Parts / Primitives / 482
481  |  483
Subject: 
Re: 11-16 primitives?
Newsgroups: 
lugnet.cad.dat.parts.primitives
Date: 
Fri, 25 Sep 2009 22:13:35 GMT
Viewed: 
14944 times
  
In lugnet.cad.dat.parts.primitives, Michael Heidemann wrote:
In lugnet.cad.dat.parts.primitives, Steve Bliss wrote:
In lugnet.cad.dat.parts.primitives, Travis Cobbs wrote:

When the LSC updated the spec to allow 21.3 filenames, I don't think any of us were aware that this would create a problem for PARTS.LST.

Were any other issues anticipated?

However, looking at the file, there's a chance that MLCAD will work
perfectly well with longer filenames inside it.

I did a short test of MLCAD with a modified PARTS.LST.  The results were mixed -
MLCAD seems OK using an altered-format PARTS.LST file, but re-generating
PARTS.LST from MLCAD results in an invalid file.

For the test, I copied 55706.dat to 55706longfile.dat, and changed the first
line of my PARTS.LST to:

55706longfile.dat Animal Bat Wing 9 x 9 with Axle

(trailing space chars trimmed for this post, but left in the test file)

MLCAD was perfectly happy to use this modified file, and seemed to work just
fine.  I examined the parts tree control, dragged the part into the edit panel,
etc.

However, MLCAD's "Scan Part" command did not work as well.  It generated a new
PARTS.LST, writing the new line as:

55706longfile.Animal Bat Wing 9 x 9 with Axle

When I exited and re-entered MLCAD, it seemed to ignore this entry -- the part
did not appear in the parts tree.

I also tried running mklist -- it crashed, hard,  on the long file name. :(

Steve

If I understand that, this would mean that we could use a new mklist tool and we
can start using that long filenames.
The possibility to use MLCad for generating PARTS.LST will be away, but this
only a little cut.

I could update the mklist sources to work handle filenames with 25 chars
I was going to add a quietmode commandline option this weekend anyhow.

Should I allow 25 chars as the default, and perhaps include an optional
command line arg to force/truncate it to 12 chars for backwards compatibility
with old programs?

Don
option to force/

Don



Message has 1 Reply:
  Re: 11-16 primitives?
 
(...) That would be good, I think. (...) Can you have two levels? Level One that still shows the warnings, but doesn't stop, and Level Two suppresses all warnings. (...) I'd keep the current line-format for all parts conforming to the 8.3 format, (...) (15 years ago, 27-Sep-09, to lugnet.cad.dat.parts.primitives)

Message is in Reply To:
  Re: 11-16 primitives?
 
(...) If I understand that, this would mean that we could use a new mklist tool and we can start using that long filenames. The possibility to use MLCad for generating PARTS.LST will be away, but this only a little cut. cu mikeheide (15 years ago, 25-Sep-09, to lugnet.cad.dat.parts.primitives)

22 Messages in This Thread:




Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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