Title annotation in LPub3D


Title annotation in LPub3D
#1
Hi all,

A while ago I posted this thread:
https://forums.ldraw.org/thread-17401.html

Now I am struggling with the annotation for Technic Beams.

I haven't got a clue how to write a regular expression, so is there anyone here who can?

What I am aiming at is that the length of beams is annotated for beams of length 3 or longer and not the lift arms or bent beams.
[Edit]: and including the half or thin beams, but not the modified ones.

Thanks in advance!

[Edit]
Here is the list I want the length to be annotated:
32523.dat                  Technic Beam  3
32316.dat                  Technic Beam  5
32017.dat                  Technic Beam  5 x  0.5
32063.dat                  Technic Beam  6 x  0.5
32524.dat                  Technic Beam  7
32065.dat                  Technic Beam  7 x  0.5
40490.dat                  Technic Beam  9
32525.dat                  Technic Beam 11
41239.dat                  Technic Beam 13
32278.dat                  Technic Beam 15

No annotation needed for:

18654.dat                  Technic Beam  1
41672.dat                  Technic Beam  1 x  3 x  7 with 4 Axleholes and 3 Holes
41665.dat                  Technic Beam  1 x  4 x  7 with  5 Axleholes and  2 Holes and  1 Slot
43857.dat                  Technic Beam  2
60483.dat                  Technic Beam  2 Liftarm
50923.dat                  Technic Beam  2 Liftarm with Angled Ball Joint
64276.dat                  Technic Beam  2 Liftarm with Straight Ball Joint
85940.dat                  Technic Beam  2 with Angled Bar
41677.dat                  Technic Beam  2 x  0.5 Liftarm
32140.dat                  Technic Beam  2 x  4 Liftarm Bent 90
50904.dat                  Technic Beam  2 x  8 x  2 Double Liftarm with 2  1 x  3 Beams
98577.dat                  Technic Beam  3 with Integrated Ball Joint
61071.dat                  Technic Beam  3 with Panel Fairing Left
61070.dat                  Technic Beam  3 with Panel Fairing Right
44225.dat                  Technic Beam  3 with Rotation Joint 3 Pin
44224.dat                  Technic Beam  3 with Rotation Joint 3 Socket
6632.dat                   Technic Beam  3 x  0.5 Liftarm
33299.dat                  Technic Beam  3 x  0.5 Liftarm with Boss and Pin
60484.dat                  Technic Beam  3 x  3 T-shaped
32056.dat                  Technic Beam  3 x  3 x  0.5 Liftarm Bent 90
32249.dat                  Technic Beam  3 x  3 x  0.5 Liftarm Bent 90 Quarter Circle
32009.dat                  Technic Beam  3 x  3.8 x  7 Liftarm Bent 45 Double
32526.dat                  Technic Beam  3 x  5 Bent 90
32250.dat                  Technic Beam  3 x  5 x  0.5 Liftarm Bent 90 Quarter Ellipse
32271.dat                  Technic Beam  3 x  7 Liftarm Bent 53.13
45803.dat                  Technic Beam  3 x  7 x  3 Bent 90 Double Chamfered
41681.dat                  Technic Beam  3.8 x  1 Liftarm with Click Rotation Ring Socket
32449.dat                  Technic Beam  4 x  0.5 Liftarm
2825.dat                   Technic Beam  4 x  0.5 Liftarm with Boss
41679.dat                  Technic Beam  4 x  0.5 Liftarm with Click Rotation Hinge Half
43464.dat                  Technic Beam  4 x  3 Liftarm Triangle
32348.dat                  Technic Beam  4 x  4 Liftarm Bent 53.13
6629.dat                   Technic Beam  4 x  6 Liftarm Bent 53.13
11478.dat                  Technic Beam  5 x  0.5 Liftarm with Axle Holes at Both Ends
14720.dat                  Technic Beam  5 x  3 H-shaped
2905.dat                   Technic Beam  5 x  3 x  0.5 Liftarm Triangle
99773.dat                  Technic Beam  5 x  3 x  0.5 Liftarm Triangle Type 2
32251.dat                  Technic Beam  5 x  7 x  0.5 Liftarm Bent 90 Quarter Ellipse
32311.dat                  Technic Beam  7 Offset Liftarm with 24 Tooth Gears
32065.dat                  Technic Beam  7 x  0.5
32177.dat                  Technic Beam  7 x  1 Liftarm with Ribs and Fan
32308.dat                  Technic Beam  7 x  3 x  2 Liftarm Split
64179.dat                  Technic Beam  7 x  5 with Open Center  5 x  3
32079.dat                  Technic Beam  9 Liftarm Offset with Boss
64178.dat                  Technic Beam 11 x  5 with Open Center  5 x  3
Jaco van der Molen
lpub.binarybricks.nl
Reply
RE: Title annotation in LPub3D
#2
(2018-11-06, 19:57)Jaco van der Molen Wrote: Hi all,

A while ago I posted this thread:
https://forums.ldraw.org/thread-17401.html

Now I am struggling with the annotation for Technic Beams.

I haven't got a clue how to write a regular expression, so is there anyone here who can?

What I am aiming at is that the length of beams is annotated for beams of length 3 or longer and not the lift arms or bent beams.
[Edit]: and including the half or thin beams, but not the modified ones.

Thanks in advance!

[Edit]
Here is the list I want the length to be annotated:
32523.dat                  Technic Beam  3
32316.dat                  Technic Beam  5
32017.dat                  Technic Beam  5 x  0.5
32063.dat                  Technic Beam  6 x  0.5
32524.dat                  Technic Beam  7
32065.dat                  Technic Beam  7 x  0.5
40490.dat                  Technic Beam  9
32525.dat                  Technic Beam 11
41239.dat                  Technic Beam 13
32278.dat                  Technic Beam 15

No annotation needed for:

18654.dat                  Technic Beam  1
41672.dat                  Technic Beam  1 x  3 x  7 with 4 Axleholes and 3 Holes
41665.dat                  Technic Beam  1 x  4 x  7 with  5 Axleholes and  2 Holes and  1 Slot
43857.dat                  Technic Beam  2
60483.dat                  Technic Beam  2 Liftarm
50923.dat                  Technic Beam  2 Liftarm with Angled Ball Joint
64276.dat                  Technic Beam  2 Liftarm with Straight Ball Joint
85940.dat                  Technic Beam  2 with Angled Bar
41677.dat                  Technic Beam  2 x  0.5 Liftarm
32140.dat                  Technic Beam  2 x  4 Liftarm Bent 90
50904.dat                  Technic Beam  2 x  8 x  2 Double Liftarm with 2  1 x  3 Beams
98577.dat                  Technic Beam  3 with Integrated Ball Joint
61071.dat                  Technic Beam  3 with Panel Fairing Left
61070.dat                  Technic Beam  3 with Panel Fairing Right
44225.dat                  Technic Beam  3 with Rotation Joint 3 Pin
44224.dat                  Technic Beam  3 with Rotation Joint 3 Socket
6632.dat                   Technic Beam  3 x  0.5 Liftarm
33299.dat                  Technic Beam  3 x  0.5 Liftarm with Boss and Pin
60484.dat                  Technic Beam  3 x  3 T-shaped
32056.dat                  Technic Beam  3 x  3 x  0.5 Liftarm Bent 90
32249.dat                  Technic Beam  3 x  3 x  0.5 Liftarm Bent 90 Quarter Circle
32009.dat                  Technic Beam  3 x  3.8 x  7 Liftarm Bent 45 Double
32526.dat                  Technic Beam  3 x  5 Bent 90
32250.dat                  Technic Beam  3 x  5 x  0.5 Liftarm Bent 90 Quarter Ellipse
32271.dat                  Technic Beam  3 x  7 Liftarm Bent 53.13
45803.dat                  Technic Beam  3 x  7 x  3 Bent 90 Double Chamfered
41681.dat                  Technic Beam  3.8 x  1 Liftarm with Click Rotation Ring Socket
32449.dat                  Technic Beam  4 x  0.5 Liftarm
2825.dat                   Technic Beam  4 x  0.5 Liftarm with Boss
41679.dat                  Technic Beam  4 x  0.5 Liftarm with Click Rotation Hinge Half
43464.dat                  Technic Beam  4 x  3 Liftarm Triangle
32348.dat                  Technic Beam  4 x  4 Liftarm Bent 53.13
6629.dat                   Technic Beam  4 x  6 Liftarm Bent 53.13
11478.dat                  Technic Beam  5 x  0.5 Liftarm with Axle Holes at Both Ends
14720.dat                  Technic Beam  5 x  3 H-shaped
2905.dat                   Technic Beam  5 x  3 x  0.5 Liftarm Triangle
99773.dat                  Technic Beam  5 x  3 x  0.5 Liftarm Triangle Type 2
32251.dat                  Technic Beam  5 x  7 x  0.5 Liftarm Bent 90 Quarter Ellipse
32311.dat                  Technic Beam  7 Offset Liftarm with 24 Tooth Gears
32065.dat                  Technic Beam  7 x  0.5
32177.dat                  Technic Beam  7 x  1 Liftarm with Ribs and Fan
32308.dat                  Technic Beam  7 x  3 x  2 Liftarm Split
64179.dat                  Technic Beam  7 x  5 with Open Center  5 x  3
32079.dat                  Technic Beam  9 Liftarm Offset with Boss
64178.dat                  Technic Beam 11 x  5 with Open Center  5 x  3

OK, so I got a bit further using this website https://regex101.com/
I got all beams to show just the lengt, but also from those which I do not want, like the liftarms.

Now I have this: ^Technic Beam\s+(\d+\.*\d*)\s*.*$

Any thoughts on how to exclude all modified beams?
Jaco van der Molen
lpub.binarybricks.nl
Reply
RE: Title annotation in LPub3D
#3
(2018-11-07, 6:54)Jaco van der Molen Wrote:
(2018-11-06, 19:57)Jaco van der Molen Wrote: Hi all,

A while ago I posted this thread:
https://forums.ldraw.org/thread-17401.html

Now I am struggling with the annotation for Technic Beams.

I haven't got a clue how to write a regular expression, so is there anyone here who can?

What I am aiming at is that the length of beams is annotated for beams of length 3 or longer and not the lift arms or bent beams.
[Edit]: and including the half or thin beams, but not the modified ones.

Thanks in advance!

[Edit]
Here is the list I want the length to be annotated:
32523.dat                  Technic Beam  3
32316.dat                  Technic Beam  5
32017.dat                  Technic Beam  5 x  0.5
32063.dat                  Technic Beam  6 x  0.5
32524.dat                  Technic Beam  7
32065.dat                  Technic Beam  7 x  0.5
40490.dat                  Technic Beam  9
32525.dat                  Technic Beam 11
41239.dat                  Technic Beam 13
32278.dat                  Technic Beam 15

No annotation needed for:

18654.dat                  Technic Beam  1
41672.dat                  Technic Beam  1 x  3 x  7 with 4 Axleholes and 3 Holes
41665.dat                  Technic Beam  1 x  4 x  7 with  5 Axleholes and  2 Holes and  1 Slot
43857.dat                  Technic Beam  2
60483.dat                  Technic Beam  2 Liftarm
50923.dat                  Technic Beam  2 Liftarm with Angled Ball Joint
64276.dat                  Technic Beam  2 Liftarm with Straight Ball Joint
85940.dat                  Technic Beam  2 with Angled Bar
41677.dat                  Technic Beam  2 x  0.5 Liftarm
32140.dat                  Technic Beam  2 x  4 Liftarm Bent 90
50904.dat                  Technic Beam  2 x  8 x  2 Double Liftarm with 2  1 x  3 Beams
98577.dat                  Technic Beam  3 with Integrated Ball Joint
61071.dat                  Technic Beam  3 with Panel Fairing Left
61070.dat                  Technic Beam  3 with Panel Fairing Right
44225.dat                  Technic Beam  3 with Rotation Joint 3 Pin
44224.dat                  Technic Beam  3 with Rotation Joint 3 Socket
6632.dat                   Technic Beam  3 x  0.5 Liftarm
33299.dat                  Technic Beam  3 x  0.5 Liftarm with Boss and Pin
60484.dat                  Technic Beam  3 x  3 T-shaped
32056.dat                  Technic Beam  3 x  3 x  0.5 Liftarm Bent 90
32249.dat                  Technic Beam  3 x  3 x  0.5 Liftarm Bent 90 Quarter Circle
32009.dat                  Technic Beam  3 x  3.8 x  7 Liftarm Bent 45 Double
32526.dat                  Technic Beam  3 x  5 Bent 90
32250.dat                  Technic Beam  3 x  5 x  0.5 Liftarm Bent 90 Quarter Ellipse
32271.dat                  Technic Beam  3 x  7 Liftarm Bent 53.13
45803.dat                  Technic Beam  3 x  7 x  3 Bent 90 Double Chamfered
41681.dat                  Technic Beam  3.8 x  1 Liftarm with Click Rotation Ring Socket
32449.dat                  Technic Beam  4 x  0.5 Liftarm
2825.dat                   Technic Beam  4 x  0.5 Liftarm with Boss
41679.dat                  Technic Beam  4 x  0.5 Liftarm with Click Rotation Hinge Half
43464.dat                  Technic Beam  4 x  3 Liftarm Triangle
32348.dat                  Technic Beam  4 x  4 Liftarm Bent 53.13
6629.dat                   Technic Beam  4 x  6 Liftarm Bent 53.13
11478.dat                  Technic Beam  5 x  0.5 Liftarm with Axle Holes at Both Ends
14720.dat                  Technic Beam  5 x  3 H-shaped
2905.dat                   Technic Beam  5 x  3 x  0.5 Liftarm Triangle
99773.dat                  Technic Beam  5 x  3 x  0.5 Liftarm Triangle Type 2
32251.dat                  Technic Beam  5 x  7 x  0.5 Liftarm Bent 90 Quarter Ellipse
32311.dat                  Technic Beam  7 Offset Liftarm with 24 Tooth Gears
32065.dat                  Technic Beam  7 x  0.5
32177.dat                  Technic Beam  7 x  1 Liftarm with Ribs and Fan
32308.dat                  Technic Beam  7 x  3 x  2 Liftarm Split
64179.dat                  Technic Beam  7 x  5 with Open Center  5 x  3
32079.dat                  Technic Beam  9 Liftarm Offset with Boss
64178.dat                  Technic Beam 11 x  5 with Open Center  5 x  3

OK, so I got a bit further using this website https://regex101.com/
I got all beams to show just the lengt, but also from those which I do not want, like the liftarms.

Now I have this: ^Technic Beam\s+(\d+\.*\d*)\s*.*$

Any thoughts on how to exclude all modified beams?

Hi Jaco

I solved the problem with the freeform annotation.
I just added all the parts I wanted to display in the parameter file "Free Form PLI Annotation" and commented out the lines in the "Part Title PLI Annaotation" with #.


Attached Files Thumbnail(s)
   
If nothing goes right, go left.
Reply
RE: Title annotation in LPub3D
#4
(2018-11-07, 17:33)Johann Eisner Wrote:
(2018-11-07, 6:54)Jaco van der Molen Wrote: OK, so I got a bit further using this website https://regex101.com/
I got all beams to show just the lengt, but also from those which I do not want, like the liftarms.

Now I have this: ^Technic Beam\s+(\d+\.*\d*)\s*.*$

Any thoughts on how to exclude all modified beams?

Hi Jaco

I solved the problem with the freeform annotation.
I just added all the parts I wanted to display in the parameter file "Free Form PLI Annotation" and commented out the lines in the "Part Title PLI Annaotation" with #.

Ah, yes. I've thought of that too, but seems a lot of work to maintain.
But I could give that some more thought using an Excel sheet or something to fill the file.
Tnx!
Jaco van der Molen
lpub.binarybricks.nl
Reply
RE: Title annotation in LPub3D
#5
(2018-11-07, 19:02)Jaco van der Molen Wrote:
(2018-11-07, 17:33)Johann Eisner Wrote: Hi Jaco

I solved the problem with the freeform annotation.
I just added all the parts I wanted to display in the parameter file "Free Form PLI Annotation" and commented out the lines in the "Part Title PLI Annaotation" with #.

Ah, yes. I've thought of that too, but seems a lot of work to maintain.
But I could give that some more thought using an Excel sheet or something to fill the file.
Tnx!

Hi
It's only a bit of work once, but how many parts are there that you want. I already have the beams, the axles are working well original, and maybe a few parts of my own like pneumatic hoses.
If nothing goes right, go left.
Reply
RE: Title annotation in LPub3D
#6
(2018-11-07, 19:09)Johann Eisner Wrote:
(2018-11-07, 19:02)Jaco van der Molen Wrote: Ah, yes. I've thought of that too, but seems a lot of work to maintain.
But I could give that some more thought using an Excel sheet or something to fill the file.
Tnx!

Hi
It's only a bit of work once, but how many parts are there that you want. I already have the beams, the axles are working well original, and maybe a few parts of my own like pneumatic hoses.

True. I was looking for a more convenient way, but I guess working with Freeform is a better option and in the end faster.
Jaco van der Molen
lpub.binarybricks.nl
Reply
RE: Title annotation in LPub3D
#7
Hello everybody,

I'm not sure whther anybody still takes notice of this thread, but why not try?

I've been reading your thread https://forums.ldraw.org/thread-17401.html Jaco some days ago. And it solved one of my problems, concerning the question how to only show the length of certain bricks or plates.
What I found much more interesting was the second question you posted, concerning the requirement only to show the length of the longer bricks (10, 12, 14 ...). Unfortunately the thread ends without an answer.

Did you find a solution for this problem? 

Regards from Bremen Germany
Reply
RE: Title annotation in LPub3D
#8
(2023-01-24, 16:33)Andreas Hinz Wrote: Hello everybody,

I'm not sure whther anybody still takes notice of this thread, but why not try?

I've been reading your thread https://forums.ldraw.org/thread-17401.html Jaco some days ago. And it solved one of my problems, concerning the question how to only show the length of certain bricks or plates.
What I found much more interesting was the second question you posted, concerning the requirement only to show the length of the longer bricks (10, 12, 14 ...). Unfortunately the thread ends without an answer.

Did you find a solution for this problem? 

Regards from Bremen Germany

Hi Andreas,

Still reading.
At the time it was important for me to achieve certain things.
At the moment, I have no need for it, so I am no longer looking for a solution.

I know it it possible, but it is up to someone who is able to write a regular expression for it.

For now, I think Johann's answer is what you are looking for, though that is a bit of work: freeform annotation.

You could also ask the question at the Github pages for LPub3D and its support.

Jaco
Jaco van der Molen
lpub.binarybricks.nl
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 3 Guest(s)