To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 12563
12562  |  12564
Subject: 
Re: Trouble creating building instructions using lpub and mpd file
Newsgroups: 
lugnet.cad, lugnet.cad.mlcad
Date: 
Wed, 6 Apr 2005 16:29:46 GMT
Viewed: 
9675 times
  
In lugnet.cad, Kevin L. Clague wrote:
   In lugnet.cad, Allan Bedford wrote:
   In lugnet.cad, Kevin L. Clague wrote:

   I’ll work on the blanks in filename problem in LPub.

That will be so nice. Thank you! That one caught me again just this afternoon. And I know better. However, I just forgot at one point, added a space to a file name and.... well you know the rest. :)

Anyway, glad to hear it’s fixable.

Best regards,
Allan B.
The LEGO Builder’s Guide

Hi Allan, In light of this article:

http://news.lugnet.com/cad/?n=12556

I now have a dilema on this topic. Add code that makes me compatible with MLCad but violating the specification, or leave it as is and explain to people that MLCad does allow blanks in file names, but that violates the spec.

I apologize in advance if this is a stupid solution but what about this:

Is there a way for you to check for spaces in the file name as lpub attempts to open it? If so, can you then abort the file open process and throw a pop-up message that says something like:

”You are attempting to open a file that contains spaces in the name. Please rename the file, without spaces, and try opening the file again.“

At the moment the biggest problem (as I see it) is the lack of error handling when lpub tries to handle a file with spaces. It returns all kinds of messages but is the real error listed there? If so, I didn’t see it last time it happened. It was only after manually looking at my filename that I realized what had happened. If lpub could simply be a bit more pro-active, I feel that would be the easiest solution to code and also keep you in line with the spec.

I hope that helps. Again, this is just my own opinion on the matter.

Best regards,
Allan B.



Message has 2 Replies:
  Re: Trouble creating building instructions using lpub and mpd file
 
(...) You are right, but the error handling problem is larget than just blanks in file names. All of this boils down to the wimpy method that LPub uses to parse LDraw files. If you type in a meta-command “0 LPUB PIL”, rather than “0 LPUB PLI”, lpub (...) (20 years ago, 6-Apr-05, to lugnet.cad, lugnet.cad.mlcad, FTX)
  Re: Trouble creating building instructions using lpub and mpd file
 
In lugnet.cad, Allan Bedford wrote: snip (...) snip (...) snip (...) Allan, Your opinions are valued. Thanks. I decided to take the pragmatic way out, and adjust my parsing to support file names with blanks. I think that warnings will lead to just (...) (20 years ago, 8-Apr-05, to lugnet.cad, lugnet.cad.mlcad, FTX)

Message is in Reply To:
  Re: Trouble creating building instructions using lpub and mpd file
 
(...) Hi Allan, In light of this article: (URL) I now have a dilema on this topic. Add code that makes me compatible with MLCad but violating the specification, or leave it as is and explain to people that MLCad does allow blanks in file names, but (...) (20 years ago, 6-Apr-05, to lugnet.cad, lugnet.cad.mlcad, FTX)

17 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