giuseppe,
OK, Take a look at the Wall Lamp 02 12 object. The steps to changing the text behavior here are as follows:
1. Select the object in your project.
2. With the object selected open the object. To do this go to File>Libraries and Objects>Open Object. This will open the GDL window.
3. Here look at the parameter table to find the parameter given to the text displayed (image 1).
4. Switch to the 2D script window - click where it says 2D script on the left hand side.
5. Do a Find and Replace to locate the text parameter (choose the whole word option here). Alternately you can do a Find and Replace for the command "text2" (without quotes).
(image 2)
6. This should take you to the following:
text2 txt_pos_x, txt_pos_y, txt
Change this bit of code to the following:
text2 0, 0, txt
(image 3)
7. Just before this line add the following:
ADD2 txt_pos_x, txt_pos_y
ROT2 rotation
(image 3)
8. Follow the text2 command line with the following:
DEL 2
(image 3)
9. Go back to the parameter table that the object first opened to. Here add the new parameter "rotation" (without quotes). To do this click the NEW button at the top of the GDL window. This will add a new parameter to the bottom of the parameter list. Overwrite the default parameter name with the name rotation.
(image 4)
10. Select the symbol in the TYPE column. You will notice that there is a flippy triangle now. If you click the symbol again you will get a popup chart of parameter types. Select the second symbol for the angle type.
(image 4)
11. Under the NAME column give this new parameter a name that will make sense to the user. This is what you will see when using the part.
(image 4)
12. Save the part under a new name and enjoy the new flexibility of the part.
Here is the first light done for you.
Erich
AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K