Special:
|
[DAT] (requires LDraw-compatible viewer)
|
Subject:
|
L3P error fixing idea (this looks better in raw text, I think)
|
Newsgroups:
|
lugnet.cad.dev
|
Date:
|
Mon, 10 Jun 2002 19:59:40 GMT
|
Highlighted:
|
(details)
|
Viewed:
|
346 times
|
| |
| |
Some months back Lars was kind enough to email me about some errors he'd
noticed in a part that I posted to .cad.parts. Most were "bad vertex
sequence," but there were a few "identical line" errors and the like. At
first my heart dropped when I realized that my authoring method meant that
very nearly every singe linetype 4 that I'd written would contain "bad
vertex" errors, but I sort of accidentally hit on a solution. Thus I
provide it here in hope that others may benefit (though you'd have to be
pretty clueless to make the same mistake I did...)
For example:
0 TEST.DAT
4 16 100 0 100 100 0 -100 -100 0 100 -100 0 -100
0
STEP 1: Run L3P -check on the TEST.DAT file and make a note of the lines
that show the "BAD VERTEX SEQUENCE" error
STEP 2: Save a copy of your file, ie TEST.BAK or whatnot
STEP 3: Open the offending .dat file in MS Excel, and "delimit" the
document by "space." This will break the document into columns
(in the above case you'll have 15 columns: one for the "0 lines"
character, and 14 for the "4 line")like so:
A B C D E F G H I J K L M N O
1 0|TEST.DAT| | | | | | | | | | | | | |
2 | 4|16|100|0|100|100|0|-100|-100|0|100|-100|0|-100|
3 0| | | | | | | | | | | | | | |
STEP 4: Select the cells in the relevant rows in columns M, N,
and O, and CUT them
STEP 5: Insert columns M, N, and O before column J. This should remove
the majority of bad vertex sequences, but not all of them
STEP 6: Save the test.dat file in TXT-Delimited, but make sure you use
the .dat file extension
STEP 7: Open TEST.DAT in a DOS editor and strip out the weird
delimited-code characters. On my editor they look like little o's
STEP 8: Save TEST.DAT and exit your DOS editor
STEP 9: Run L3P-check again and see what you missed
STEP 10: Start again at STEP 2, if necessary
STEP 11: Remember that I disavow any responsibility for messed up DAT files
YMMV of course, but this method has helped and saved me a whole bunch of
wailing and gnashing of teeth.
Dave!
|
|
Message has 2 Replies:
3 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|