LDraw.org Discussion Forums
Inline Comments in LDRAW - Printable Version

+- LDraw.org Discussion Forums (https://forums.ldraw.org)
+-- Forum: General (https://forums.ldraw.org/forum-12.html)
+--- Forum: Official File Specifications/Standards (https://forums.ldraw.org/forum-32.html)
+--- Thread: Inline Comments in LDRAW (/thread-27229.html)



Inline Comments in LDRAW - SNIPE - 2023-03-27

Hi,

Quick question, doesn't matter so much if it isn't possible I guess but,

Is it possible to add a comment on the same line as a file reference in LDRAW but always after the file name?

I tried:

Code:
1 0 0 0 0 1 0 0 0 1 0 0 0 1 3024.dat //P1

But I think it thought the file was called '3024.dat //P1'

I have never seen a common windows file extension that contained a space Tongue but computers will be computers I guess

I'm probably going to assume that there is no way to do it therefore, but maybe I'm wrong.

Regards, SNIPE


RE: Inline Comments in LDRAW - Orion Pobursky - 2023-03-27

Nope. 
From the spec:
"An LDraw file consists of one command per line."

Comments are "0" commands.


RE: Inline Comments in LDRAW - Philippe Hurbain - 2023-03-27

(2023-03-27, 1:02)SNIPE Wrote: But I think it thought the file was called '3024.dat //P1'

I have never seen a common windows file extension that contained a space Tongue but computers will be computers I guess
On Windows, you can name a file 
blahblah.blehbleh blah.yyy.dat 
Go parse that if there's no quote marks...