LDraw.org Discussion Forums
[LDView] ldr to pov export error - Printable Version

+- LDraw.org Discussion Forums (https://forums.ldraw.org)
+-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html)
+--- Forum: LDraw Editors and Viewers (https://forums.ldraw.org/forum-11.html)
+--- Thread: [LDView] ldr to pov export error (/thread-24500.html)

Pages: 1 2 3


RE: ldr to pov export error - Chris Dee - 2021-04-06

(2021-04-06, 20:28)Travis Cobbs Wrote: Actually, if !HISTORY lines like the following are always present, LDView could be updated to automatically look for alternate names for a part to do this without any changes to LGEO.xml.

Code:
0 !HISTORY 2008-07-08 [PTadmin] Renamed from 193a (2006-04-13)

Chris Dee, are history lines like the one above auto-generated? And are they consistently present (with the exact "Renamed from x" text) in all parts updated within the last (say) 10 years?

Sorry, but no these HISTORY lines are not auto-generated, because it is not always that straightforward. Frankly it would be a poor design to rely on free-text comments for such relationships. The only foolproof way is to use the target of the type 1 line in the ~Moved to file (including any transformation matrix). Admittedly this provides a forward reference, rather than the backward reference you appear to be seelking.


RE: ldr to pov export error - Travis Cobbs - 2021-04-06

(2021-04-06, 20:41)Chris Dee Wrote: Sorry, but no these HISTORY lines are not auto-generated, because it is not always that straightforward. Frankly it would be a poor design to rely on free-text comments for such relationships. The only foolproof way is to use the target of the type 1 line in the ~Moved to file (including any transformation matrix). Admittedly this provides a forward reference, rather than the backward reference you appear to be seelking.

Thanks. I actually wanted to have references in both directions, so that I could automatically pick an LGEO part if it used either the old name or the new name. And I would have used the matrix in the type 1 line of the original ~Moved To file. Because there is no reliable backwards reference, I'm going to need to generate an actual list, and I think the best way to do that would be by me writing a program to do that.