Distorted "A" value
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-03-28 03:01 AM
2006-03-28
03:01 AM
I've tried commenting out all the other code (2D minus print code, 3D, Parameter script, Master) and the value keeps coming out the same. I tried copying and pasting into a new object and the same thing. Am I missing something here? Shouldn't "A" ALWAYS be the value of A? And if it's changed somewhere in the block (which I can't find), shouldn't it show as the changed value in the Parameters?
Anybody got any ideas of what's going on or what I should check?
7 REPLIES 7
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-03-28 03:40 AM
2006-03-28
03:40 AM
Sergio,
15.24 is in meters and is exactly equal to 50'-0" in imperial units.
When ever I use the "Print" command for verifying a length value
I have to remember to write print A*3.28084 to get A in feet because
AC works internally in meters.
If I want the value in inches I have to write print A*3.28084*12.
3.28084 is the conversion factor for meters to feet.
Peter Devlin
15.24 is in meters and is exactly equal to 50'-0" in imperial units.
When ever I use the "Print" command for verifying a length value
I have to remember to write print A*3.28084 to get A in feet because
AC works internally in meters.
If I want the value in inches I have to write print A*3.28084*12.
3.28084 is the conversion factor for meters to feet.
Peter Devlin
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-03-28 03:43 AM
2006-03-28
03:43 AM
Peter wrote:Thank you so much for your help. I know I've read this multiple times before, but never paid it much attention since I didn't have to deal with it until now. Now then, on to button up this object...
15.24 is in meters and is exactly equal to 50'-0" in imperial units.
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-03-28 03:49 AM
2006-03-28
03:49 AM
Sergio,
I rounded off this conversion factor.
The more pricise number is:
3.2808398950131
Peter Devlin
I rounded off this conversion factor.
The more pricise number is:
3.2808398950131
Peter Devlin
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-03-28 04:13 AM
2006-03-28
04:13 AM
Peter wrote:Got it. Thanks. Hard-coded it in there so I should be set from now on. Thank you again. Gotta love this forum and it's wonderful contributors...
The more pricise number is: 3.2808398950131

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-03-28 08:15 AM
2006-03-28
08:15 AM
Why don't you use the STR- or STR{2}-command. It converts the metric value in any fractional or decimal inch or feet value. e.g. PRINT STR("%ffi",15.24)
bim author since 1994 | bim manager since 2018 | author of selfGDL.de | openGDL | skewed archicad user hall of fame | author of bim-all-doors.gsm
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-03-28 07:04 PM
2006-03-28
07:04 PM
F. wrote:K, this is weird. I found it a little weird about the transformation, but was trying to get the object wrapped up to give it much more thought then. But the confusion persisted.
e.g. PRINT STR("%ffi",15.24)
So to see if I understand this correctly, it then appears that you give the object parameter an Imperial value (say 15'). AC works with it as an imperial value throughout the operations, but when you want to print it (to verify the vaule) the parameter gets changed into SI by default, and so you need to run it through the above "filters" to get the Imperial result.
Am I anywhere close with this (provided you understand my explanation)? Basically, I'm trying to find out where the change from Imperial to SI occurs in the object.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-03-28 10:45 PM
2006-03-28
10:45 PM
AFAIK AC works internal in decimal meters. All values entered ore assigned are translated immediatly into this form. Each comparation (e.g. IF a>49' THEN...) is transformed before the comparation is done. So you have to reformat the value to the unit you like, before you do the text2 or text command. You would have to, if you would like to print out mm in stead of m. This you can do with STR as you can do with a hard multiplication. I would prefer STR.
P.S. Alle numeric parameter are handled in the same way. You can change the working units as you like. The values keeps the same, just the unit display changes.
P.S. Alle numeric parameter are handled in the same way. You can change the working units as you like. The values keeps the same, just the unit display changes.
bim author since 1994 | bim manager since 2018 | author of selfGDL.de | openGDL | skewed archicad user hall of fame | author of bim-all-doors.gsm