(2016-08-10, 18:22)Roland Melkert Wrote: Trevor would it be interesting if I added substitute information to LDCad's generated content. That way LPub3D could do auto substituting without the user having to surround the generated part with pli meta's.
I could add something to the 'GENERATED' meta, maybe something like...
for a tread:
Code:0 !LDCAD GENERATED [generator=LDCad 1.6] [substRef=3827.dat] [substCnt=40]
or for a shock:
Code:0 !LDCAD GENERATED [generator=LDCad 1.6] [substRef=73129.dat] [substCol=16]
Or for things like strings, hoses etc (would need unofficial parts though at least until official ones are available.) :
Code:0 !LDCAD GENERATED [generator=LDCad 1.6] [substRef=foo.dat] [substCol=16] [substLen=500mm]
What do you think?
Roland - This would be a good attribute to add especially if the user also has the ability to set it from the template GUI. This way, the user would have the ability to choose whatever representation s/he wanted to display in the PLI.
In LPub3D, as you said, the advantage is the ability to fully automate the substitution process. A disadvantage would be to not have the ability to choose your substitute representation. However, I can work around this by first checking for entries in the substitute list then the LPub meta and finally LDCad.
Cheers,