PRINT Command...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2003-12-29 07:43 PM
PRINT "Error, check the value"
do nothing...
The manual writes that it should appear a dialog with my "string"....
Thank you in advance.
Regards
PWD

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2003-12-30 12:09 AM
Architectural Technology Specialist
a r c h i S O L U T I O N S
WIN7-10/ OSX 10.15.7
AC 5.1-25 USA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2003-12-30 09:25 AM
AC8 recognizes it as an error not as code (that is ok) but at execution time...It give me the message: "Danger, you encountered problem during the last operation".
After that all is ok.
It's strange.

Thank you
PWD

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2003-12-30 11:42 AM
if the user enters bad parameters, you can use the 2D symbol to flash up "Bad parameter!"
Best method of all is to use the Master script to correct the error to the nearest valid value, eg all values less than one can be equal to one, and then use the PARAMETERS command to push the correct value to the visible parameters table.
e.g.
IF len<=1.0 THEN len=1.0
PARAMETERS len=len
PWD wrote:
I placed the PRINT command in the "root" as you advise me to do, but it does not work...
AC8 recognizes it as an error not as code (that is ok) but at execution time...It give me the message: "Danger, you encountered problem during the last operation".
After that all is ok.
It's strange.![]()
Thank you
PWD
http://sustainabletallbuildings.blogspot.com
http://chargingtheearth.blogspot.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2003-12-30 12:13 PM
You should not use the Print command except for debugging your scriptOK David,
but PRINT does not work in debugging mode, too.
I can't use it neither for my uses...
I agree that It's annoying for the user...

Thank you
PWD

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2003-12-30 12:17 PM
PWD wrote:If you posted the offending part of the script here, it would be easier to help?You should not use the Print command except for debugging your scriptOK David,
but PRINT does not work in debugging mode, too.
I can't use it neither for my uses...
I agree that It's annoying for the user...![]()

ArchiCAD since 4.55 ... 1995
HP Omen

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2003-12-30 01:24 PM
PWD wrote:I normally make it a policy not to reply to people who use anonymous handles, but will do because you are from Parma, and your football team and town are in trouble, and you need help from anyone who can provide it.You should not use the Print command except for debugging your scriptbut PRINT does not work in debugging mode, too.
I can't use it neither for my uses...
I agree that It's annoying for the user...![]()
PRINT is Extremely useful for debugging, eg, if a script persistently refuses to work, you can PRINT the parameters that you are getting from your calculation only to discover that the angles were allways coming out as infinity or zero or whatever. then you repair the calculation.
If its not working for you either, when debugging, then you have to check your Options>preferences>Imaging settings to check the box to allow you to see error messages. It illustrates what i meant when i said Print is weak for informing the user.
I havent used PRINT for notifying the user since about the 2nd week after learning GDL, realising how unreliable it could be. Master Script, master Script, master Script...... thats where you can solve errors.
(retires now, with flak helmet, to await reprimand from Djordje.)
http://sustainabletallbuildings.blogspot.com
http://chargingtheearth.blogspot.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2003-12-30 03:27 PM
but will do because you are from Parma, and your football team and town are in trouble, and you need help from anyone who can provide it.Not only my football team, but PARMALAT also...

I use this handle now cause I used this since 7years an so this is my name for all... for my friend also.
In any case you know my real name...: I'm from Parma and I received your cookbook about 1month ago, I paid using a bank tranfer


Bye...
PWD

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2003-12-30 04:53 PM
I have forgotten your original question.... oh yes, about printing.
PWD wrote:but will do because you are from Parma, and your football team and town are in trouble, and you need help from anyone who can provide it.Not only my football team, but PARMALAT also...![]()
I use this handle now cause I used this since 7years an so this is my name for all... for my friend also.
In any case you know my real name...: I'm from Parma and I received your cookbook about 1month ago, I paid using a bank tranfer![]()
Do you remember?
http://sustainabletallbuildings.blogspot.com
http://chargingtheearth.blogspot.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2003-12-30 05:03 PM

My original question...about printing a message or a variable using PRINT.
Now I' trying to put it into the MASTER_GDL.
Bye
Marco