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 / 15075
15074  |  15076
Subject: 
Re: can LPUB PLI BEGIN ... sections be nested?
Newsgroups: 
lugnet.cad
Date: 
Tue, 5 Feb 2008 18:53:32 GMT
Viewed: 
3825 times
  
In lugnet.cad, Steve Putz wrote:
Can LPUB PLI BEGIN sections be nested?

I did not have this problem until I started using lsynthcp version 3.0 (which I
probably got directly from Kevin).  This version of LSynth automatically inserts
LPUB parts list directives to substitute the appropriate part for SYNTH
sections.

Which is great, except I have some models that use "plist ignore" sections that
contain SYNTH sections.  Something like this:

0 LPUB PLI BEGIN IGN
...
0 SYNTH BEGIN RCX_CABLE_17CM 0
...
0 SYNTH END
...
0 LPUB PLI END

Which LSynth turns into this:

0 LPUB PLI BEGIN IGN
...
0 LPUB PLI BEGIN SUB 5306C02.dat 0
0 SYNTH BEGIN RCX_CABLE_17CM 0
...
0 SYNTH END
0 LPUB PLI END
...
0 LPUB PLI END

It appears LPub does not handle nested PLI BEGIN sections since the result is
any parts after the first SYNTH END are NOT ignored from the parts list.

Am I understanding this correctly?  The only workaround I can think of is to add
extra END and BEGIN lines after each SYNTH END in the ignored section, like
this:

0 LPUB PLI BEGIN IGN
...
0 SYNTH BEGIN RCX_CABLE_17CM 0
...
0 SYNTH END
0 LPUB PLI END
0 LPUB PLI BEGIN IGN
...
0 LPUB PLI END


Steve Putz
www.RoboticsLearning.com


Hi Steve,

  LPub cannot (and should not) support any nested META commands, except for the
nesting implied by use of sub-models.

  I think the mistake you are making is to synthesize actual lego products,
rather than by hose/cable type.

  The purpose of synthesizing by a product made by LEGO, is so that known LEGO
part can have an official LDraw part that represents it in its completely
assembled state, and that LSynth can substitute your synthesized results for the
official part in the PLI.

  I recommend you do not synthesize by product (cables/hoses of known length),
and instead synthesize the way you have always done, by hose/cable type.  This
will not produce the LPUB PLI SUB meta commands, and do just what you want (just
like it always has).

Kevin



Message is in Reply To:
  can LPUB PLI BEGIN ... sections be nested?
 
Can LPUB PLI BEGIN sections be nested? I did not have this problem until I started using lsynthcp version 3.0 (which I probably got directly from Kevin). This version of LSynth automatically inserts LPUB parts list directives to substitute the (...) (16 years ago, 4-Feb-08, to lugnet.cad)

2 Messages in This Thread:

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

Custom Search

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