Part annotation in LPub3D
2015-09-29, 10:12 (This post was last modified: 2016-01-22, 10:04 by Jaco van der Molen.)
2015-09-29, 10:12 (This post was last modified: 2016-01-22, 10:04 by Jaco van der Molen.)
Hi all,
Through regular expressions the part annotation can be extracted from the part description.
I'd like the annotation for Technic Bricks to be only the length (like beams).
The regex now is ^Technic Brick\s+(\d+\s+(x|X)\s+\d+\s*(x*|X*)\s*\d*\.*\d*)\s*.*$
This extracts the full size of the brick, ie. Technice Brick 1 x 16 gives "1 x 16".
What I'd like is only the 16.
How do I do that?
Thanks.
Through regular expressions the part annotation can be extracted from the part description.
I'd like the annotation for Technic Bricks to be only the length (like beams).
The regex now is ^Technic Brick\s+(\d+\s+(x|X)\s+\d+\s*(x*|X*)\s*\d*\.*\d*)\s*.*$
This extracts the full size of the brick, ie. Technice Brick 1 x 16 gives "1 x 16".
What I'd like is only the 16.
How do I do that?
Thanks.
Jaco van der Molen
lpub.binarybricks.nl
lpub.binarybricks.nl