Scripting text with intelligent lines
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2008-03-14 09:46 PM
‎2008-03-14
09:46 PM
Any thoughts would be appreciated.
Doug
4 REPLIES 4
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2008-03-14 11:28 PM
‎2008-03-14
11:28 PM
Hello, this might help.
!2D-code-----------------------------------------------
txt="Lorem ipsum"
define style "style01" "Arial", (2.5/A_)*A_, 5, 0
set style "style01"
length_txt=STW(txt)/1000*A_
text2 0, 0, txt
line2 -a/2, 0, -length_txt/2, 0
line2 a/2, 0, length_txt/2, 0
hotspot2 0, 0
hotspot2 -a/2, 0
hotspot2 a/2, 0
!-------------------------------------------------------
--
Regards, Juha
!2D-code-----------------------------------------------
txt="Lorem ipsum"
define style "style01" "Arial", (2.5/A_)*A_, 5, 0
set style "style01"
length_txt=STW(txt)/1000*A_
text2 0, 0, txt
line2 -a/2, 0, -length_txt/2, 0
line2 a/2, 0, length_txt/2, 0
hotspot2 0, 0
hotspot2 -a/2, 0
hotspot2 a/2, 0
!-------------------------------------------------------
--
Regards, Juha
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2008-03-14 11:40 PM
‎2008-03-14
11:40 PM
Thanks Juha,
I'm headed out for dinner but I will try it out as soon as I get home.
Doug
I'm headed out for dinner but I will try it out as soon as I get home.
Doug
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2008-03-16 07:11 PM
‎2008-03-16
07:11 PM
This is close to what I'm looking for. I'm in the process of tweaking it and I'll show you what I come up with when it's done. One other question that has arisen......Is it possible to suppress zero inches in the script? I'm using ffi to show a length. What I get is (eg. 10'-0"). What I'd like to see in this case is 10'. Any thoughts?
Thanks
Doug
Thanks
Doug

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2008-03-17 01:49 PM
‎2008-03-17
01:49 PM
Doug:
When formatting the string, try:
txt=str("%0.0df", your_parameter)
More information about formatting can be found on pages 203-205 of the AC11 GDL Reference Guide.
HTH
David
When formatting the string, try:
txt=str("%0.0df", your_parameter)
More information about formatting can be found on pages 203-205 of the AC11 GDL Reference Guide.
HTH
David
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC28 USA • Mac mini M4 Pro OSX15 | 64 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
www.davidmaudlin.com
Digital Architecture
AC28 USA • Mac mini M4 Pro OSX15 | 64 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14