[gme-users] How SetAttribute may fail
Jane Lin
liny at cis.uab.edu
Fri Jan 6 09:54:50 CST 2006
Thanks. But the reason on my side is the attribute name, which I just found
out. The attribute name shown in the model open in GME is a prompt name, not
exactly the name defined in its meta-model. When I wrote the interpreter, I
should have used the attribute name defined in its meta-model instead of its
prompt name.
It took me some time to debug this because the meta-model is defined by
others and BON didn't give very helpful error message.
Jane
---------------------------------------------------------------------------------
Yuehua (Jane) Lin
Department of Computer and Information Sciences
University of Alabama at Birmingham
liny at cis.uab.edu
http://www.cis.uab.edu/liny
----- Original Message -----
From: "Cong Zhang" <czhanga at gmail.com>
To: "A list for GME users to share thoughts and discuss bugs and fixes."
<gme-users at list.isis.vanderbilt.edu>
Sent: Thursday, January 05, 2006 6:15 PM
Subject: Re: [gme-users] How SetAttribute may fail
> Try the code like in the following:(suppose you want to set an
> attribute called "rate")
>
> CString attrname("rate");
> model->SetAttribute(attrname, "something");
>
> It seems that I failed if I used
> model->SetAttribute("rate", "something");
>
> On 1/5/06, Jane Lin <liny at cis.uab.edu> wrote:
>> Hi,
>>
>> In my GME plug-in component written with BON1, I tried to called the
>> SetAttribute method of the CBuilderObject class to set a value to an
>> attribute of a model, which type is string. But it failed. I could see
>> the
>> return result of this method call was false. What does this mean
>> possibly?
>> How can I debug this?
>>
>> Thanks,
>>
>> Jane
>> ---------------------------------------------------------------------------------
>> Yuehua (Jane) Lin
>> Department of Computer and Information Sciences
>> University of Alabama at Birmingham
>> liny at cis.uab.edu
>> http://www.cis.uab.edu/liny
>>
>>
>> _______________________________________________
>> gme-users mailing list
>> gme-users at list.isis.vanderbilt.edu
>> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
>>
>>
>>
> _______________________________________________
> gme-users mailing list
> gme-users at list.isis.vanderbilt.edu
> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
More information about the gme-users
mailing list