LDraw Part Author
Registered: 3 years ago Posts: 169
I was just diving a bit into the code of LPUB for some other things and I found in the "pli.cpp" the following entries associated with the annotations:
titles << "^Technic Axle\\s+(\\d+)\\s*.*$";
titles << "^Technic Axle Flexible\\s+(\\d+)\\s*$";
titles << "^Technic Beam\\s+(\\d+)\\s*$";
titles << "^Electric Cable NXT\\s+([0-9].*)$";
titles << "^Electric Cable RCX\\s+([0-9].*)$";
My guess is that all parts starting with those strings will be highlighted with their respective length.
I can confirm this, as the current NXT cables are called "Electric mindstorms NXT..." and I renamed the parts to fit the LPUB convention and LPUB shows me now the length of the cables in the part lists.
To add now the technic bricks in the current version a line in the code unfortunately would be necessary. May be LPUB should read where to display further info from a settings file?
LDraw.org Forums are hosted by P-Sky Software powered by Phorum. LDraw.org Forum template designed by Scriptmonkeys, modified by LDraw.org LEGO® is a registered trademark of the LEGO Group, which does not sponsor, endorse, or authorize this site.
Visit the official Lego website at http://www.lego.com. LDraw is a completely unofficial, community run free CAD system which represents official parts produced by the LEGO company.