Drawing Scale to TITLE OBJECT

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2017-08-29 07:05 PM
‎2017-08-29
07:05 PM
AC_DrawingSCALE seems to be the STRING form, but I need the number form that will allow me to code my own GRAPHIC SCALE into a title object.
GLOB_SCALE is the scale of the TITLE OBJECT itself (1:1)
I see in GS's code for their graphic scale some gyrations of IF TextScale = 'X" then the the NumberScale = "Y"... really?
Anyone?
Duane
Visual Frontiers
AC25 :|: AC26 :|: AC27
:|: Enscape3.4:|:TwinMotion
DellXPS 4.7ghz i7:|: 8gb GPU 1070ti / Alienware M18 Laptop
Visual Frontiers
AC25 :|: AC26 :|: AC27
:|: Enscape3.4:|:TwinMotion
DellXPS 4.7ghz i7:|: 8gb GPU 1070ti / Alienware M18 Laptop
3 REPLIES 3
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2017-08-30 06:47 AM
‎2017-08-30
06:47 AM
hhhhhmmmm,
interesting problem
have you tried.....
Scale_Text_Line = AC_DrawingScale
nn = SPLIT (Scale_Text_Line, "%n:%n", num1, colon2,num3)
if nn > 0 then
text2 0,0, num3
if num3 > 50 then
text2 0,0.005, "Greater than 1 to 50"
endif
endif
interesting problem
have you tried.....
Scale_Text_Line = AC_DrawingScale
nn = SPLIT (Scale_Text_Line, "%n:%n", num1, colon2,num3)
if nn > 0 then
text2 0,0, num3
if num3 > 50 then
text2 0,0.005, "Greater than 1 to 50"
endif
endif

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2017-08-30 07:38 PM
‎2017-08-30
07:38 PM
So... I've wasted enough time on this... unfortunately the AC_drawingScale is formatted the same as the old <drawingscale>.. so it returns a value like...
1/4" = 1'-0"
Using an extrapolated version of your SPLIT, I can get the num1 to equal the 1/4", but can't use it in an equation (so I can't multiply it by metric conversion, etc)...
Also, If have a scale that's ENGINEERING, I have to reverse SPLIT and use the Num3...
Seems like ArchiCAD knows what this number is (as a pure multiplier (1:48))... so it just shouldn't be this tough...
Thanks for the direction... but I still can't make it work.
1/4" = 1'-0"
Using an extrapolated version of your SPLIT, I can get the num1 to equal the 1/4", but can't use it in an equation (so I can't multiply it by metric conversion, etc)...
Also, If have a scale that's ENGINEERING, I have to reverse SPLIT and use the Num3...
Seems like ArchiCAD knows what this number is (as a pure multiplier (1:48))... so it just shouldn't be this tough...
Thanks for the direction... but I still can't make it work.
Duane
Visual Frontiers
AC25 :|: AC26 :|: AC27
:|: Enscape3.4:|:TwinMotion
DellXPS 4.7ghz i7:|: 8gb GPU 1070ti / Alienware M18 Laptop
Visual Frontiers
AC25 :|: AC26 :|: AC27
:|: Enscape3.4:|:TwinMotion
DellXPS 4.7ghz i7:|: 8gb GPU 1070ti / Alienware M18 Laptop

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2017-08-30 07:39 PM
‎2017-08-30
07:39 PM
... so for now, i am just typing in the FACTOR (into a manual parameter) so it works, but potential for coordination looms large.
Duane
Visual Frontiers
AC25 :|: AC26 :|: AC27
:|: Enscape3.4:|:TwinMotion
DellXPS 4.7ghz i7:|: 8gb GPU 1070ti / Alienware M18 Laptop
Visual Frontiers
AC25 :|: AC26 :|: AC27
:|: Enscape3.4:|:TwinMotion
DellXPS 4.7ghz i7:|: 8gb GPU 1070ti / Alienware M18 Laptop