We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2009-01-04 01:29 PM
2009-01-04 08:33 PM
2009-01-04 09:27 PM
select flc.parameters.name, flc.parameters.value from flat(objects,parameters) as flc where (library_part_name='Armchair 01 12') and (flc.parameters.variable_name = 'A' )I tried using the parameter value ('value')in the where clause, but it is of type 'gdlvariant' (permitting text, integer, floating point, etc) - and the only way to get a valid comparison is to use a type coercion function ... and I could not find any that were accepted by the interpreter. If you happen to figure that out, please post.
2009-01-04 09:36 PM
laszlonagy wrote:From his example that calls the flattened table 'XX', it is likely that Joachim was working from those pages...
Check the section on SQL on Page 52 in the 04 AC 12 Calculation Guide.pdf file in the Documentation folder within the ArchiCAD folder.
It will give you some additional info that may help.
2009-01-04 10:05 PM
2009-01-04 10:14 PM
2009-01-04 10:17 PM
Karl wrote:I originally wrote this short introduction for Graphisoft for AC9 and it has not changed since. As stated there, there is a lot more that can be done with SQL than is described in those few pages.laszlonagy wrote:From his example that calls the flattened table 'XX', it is likely that Joachim was working from those pages...
Check the section on SQL on Page 52 in the 04 AC 12 Calculation Guide.pdf file in the Documentation folder within the ArchiCAD folder.
It will give you some additional info that may help.
But, thanks, Laszlo for pointing out this reference! The 5 pages there are an excellent tutorial for the SQL feature which was introduced in ArchiCAD 8.0 with no documentation at that time. I did not realize that something had finally been written up since then...and I see these same pages in the AC 10 and AC 11 Calculation Guide. So, good news!🙂
Cheers,
Karl
2009-01-04 11:04 PM
laszlonagy wrote:I'm glad that they had you do that! (And, sorry I had not noticed it! I was so used to the Calculate Guide getting no improvements, that I stopped looking closely at it!)
I originally wrote this short introduction for Graphisoft for AC9 and it has not changed since.
2009-01-05 12:35 PM
Karl wrote:ODBC manual (odbc.chm) describes GDLVARIANT as totally unconvertable (Graphisoft SQL Language Reference->Data Type Conversion chapter). May be you can use "GDL Helper Object" trick as a workaround.
I tried using the parameter value ('value')in the where clause, but it is of type 'gdlvariant' (permitting text, integer, floating point, etc) - and the only way to get a valid comparison is to use a type coercion function ... and I could not find any that were accepted by the interpreter. If you happen to figure that out, please post.
2009-01-05 06:42 PM