Divide by zero errors
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-05-28 05:46 PM
2004-05-28
05:46 PM
What exactly does this error mean and where should I be looking in my scripts?
6 REPLIES 6
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-05-28 11:57 PM
2004-05-28
11:57 PM
not a gdl expert but i'll have a go
'divide by zero error' means exactly what it says. the result is infinity which computers just don't like
i'd guess that you've got some parameter defaults set to zero. try changing the defaults to something appropriate (and setting a range delimiter in the gdl script so that they can't be set to zero)
bill
'divide by zero error' means exactly what it says. the result is infinity which computers just don't like
i'd guess that you've got some parameter defaults set to zero. try changing the defaults to something appropriate (and setting a range delimiter in the gdl script so that they can't be set to zero)
bill
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-06-09 06:23 PM
2004-06-09
06:23 PM
I wish it were that simple. If that were the case, you would think AC would have this problem too but it's ony the Object Explorer.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-06-09 10:02 PM
2004-06-09
10:02 PM
I have see this error before. The problem was as follows.
I had a user that had a curtin wall that was 22m long and 3.1m high.
They had vertical mullions at 3m intervals and a total of 10 mullions.
As you can see these numbers don't add up, so ArchiCAD was giving the same error message that you are getting.
To solve the problem was simple, I reduced the amount of mullions to the correct amount!
HTH.
Ben
I had a user that had a curtin wall that was 22m long and 3.1m high.
They had vertical mullions at 3m intervals and a total of 10 mullions.
As you can see these numbers don't add up, so ArchiCAD was giving the same error message that you are getting.
To solve the problem was simple, I reduced the amount of mullions to the correct amount!
HTH.
Ben

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-06-10 12:05 PM
2004-06-10
12:05 PM
Sean wrote:As I have no one of your library parts so I can guess only.
I'm using the Object Explorer to proof my libraries before running them through the web publisher and I'm getting these errors in every single object.
What exactly does this error mean and where should I be looking in my scripts?
May be the ObjectExplorer does not initialize some global variable which you use in your calculations at division like:
1000/A_ or other glob var. I think you should check up your calculations with division. Anyway you can use debug PRINTS or TEXT2 to localize the reasons.
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-06-10 04:32 PM
2004-06-10
04:32 PM
Oleg wrote:That global is exactly what the problem turned out to be. The text size of the object label in plan view is scale dependant and using that global, when I hardcode it (use 48 vs. A_) the errors are gone.
As I have no one of your library parts so I can guess only.
May be the ObjectExplorer does not initialize some global variable which you use in your calculations at division like:
1000/A_ or other glob var. I think you should check up your calculations with division. Anyway you can use debug PRINTS or TEXT2 to localize the reasons.
This creates a bit of an impracticality since now I'll have to create one library for displaying on the web and another for use in a model.
Oh well.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-06-10 04:56 PM
2004-06-10
04:56 PM
Sean wrote:I have no the ObjectExplorer installed right now, but AFAIR a library loaded in the OE have to contain MASTER_GDL file with initialization of global variables and materials. May be you need to create a special MASTER_GDL for OE which will have a line like A _ = 48
This creates a bit of an impracticality since now I'll have to create one library for displaying on the web and another for use in a model.
PS: BTW may be GLOB_SCALE initialized. Try for experiment A _ = GLOB_SCALE at start your script.
Just ideas.