2009-09-18 06:56 AM
2009-09-18 07:42 AM
2009-09-18 07:48 AM
2009-09-18 08:02 AM
2009-09-18 08:20 AM
Barry wrote:Wow - brilliant! Can't believe it was so simple. That'll teach me to dive into GDL headfirst knowing nothing about it
Just looked at your script - I probably should have done that first!
You need to put quotes in front of the roomname variable when you use a variable for the paragraph text.
i.e.
"" + roomname
If you don't add the quotes then it is not recognised as text string.
As you found if you add your own static text (i.e. "LOUNGE ROOM" then it will work.
Thanks to who ever it was that mentioned it somewhere here on the forum before.
Barry.
2009-09-18 08:47 AM
2009-09-18 03:35 PM
Barry wrote:Hi Barry,
It will wrap the words unless the width you specify is too short and then it will have to break the word down as well.
What you have works just fine as you adjust the width.
You have set the width base on the "A" variable (A__=A*1000).
The default for "A" in your script is 1000 mm so the default width of you object text is 1,000,000 mm.
As you adjust the width of the object in the info box then all is good (as in the image below - width set to 80, 60 & 20).
As for the variables in the info box that is not possible unfortunately.
The only text variable you can use in the info box is the ID which you are already using any way.
Barry.
2009-09-18 03:38 PM
2009-09-24 09:48 AM
2009-09-25 02:32 AM
guitarchitect wrote:IMHO it's the best way to learn.
...That'll teach me to dive into GDL headfirst knowing nothing about it .