An embedded and charset-unspecified text was scrubbed...
Name: not available
Url: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20051028/567ea074/attachment.txt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20051028/567ea074/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: load.JPG
Type: image/pjpeg
Size: 20719 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20051028/567ea074/attachment.bin
[GiDlist] Draw the assigned names of a combobox
Moderator: GiD Team
[GiDlist] Draw the assigned names of a combobox
I don't understand well what do you want, but you can't easily modify a condition to work like a material.
I will explain the GiD material/condition philosophy:
Internally, the gid entities points to a material (and only one), and you can modify some material property.
you can create a new material, derivated from another material, but with different field values.
The conditions are not pointed by entities. You create new instances of a template condition with his own values (it's like a new material), and this instance points to a list of entities. Then you can´t modify the values of an applied condition, because the conditions window show the condition template, not each instance that have different values. An instance of a condition has not an identifier to be modified, you only can delete instances applied to some entities, and create again.
It seems that you try to set for an condition instance, an identifier (the values that you store in ProblemTypePriv(pointnames)), and try to use this identifier to draw, modify, etc this instance.
Usually do you have few materials, but maybe a lot of different condition instances
(it's a bad design to show a combobox with 300.000 identifier entries!!)
How do you define in the .cnd file the PointLoad condition?
Maybe you need to add a field to be used as identifier.
- You want to draw by color a field condition (the identifier field),.
- You must also control that when you create a new condition instance (when assign), the identifier
is not repeated with other different field values.
- To simulate that you modify a condition instance, you must unassign this condition of his entities, and assign again to the same entities with the new values
Note: currently is not possible to unassign the condition with an specified field value of some entities, you unassign the contition to some entities without any control over the field values. This feature will be implemented for next beta versions.
Regards
Enrique
----- Original Message -----
From: ascosta at portugalmail.pt
To: gidlist at gid.cimne.upc.es
Sent: Friday, October 28, 2005 3:01 PM
Subject: [GiDlist] Draw the assigned names of a combobox
Hi Enrique.
Thanks for your help, it's now possible associate the point load's name of the combobox ProblemTypePriv(pointcombo) to the values X, Y,...
I introduce the combobox ProblemTypePriv(pointcombo), because in conditions menu's we don't have the possibility of create a new condition (in my case a new point load) or delete it. Therefore, i can create new point loads, rename or delete them from my combobox ProblemTypePriv(pointcombo) and save this names in the array ProblemTypePriv(pointnames).
Now, i assign the point loads names to points. After that i try draw, but don't draw the point loads of the combobox. Just draw "Point Load" (the BOOK of conditions file).
But now i can't assign the names ProblemTypePriv(pointnames) to points. When i draw the points assigned, this are related with "Point Load" (the name in combobox intoduced automatic in conditions menu). But should be related with my points names ProblemTypePriv(pointnames).
It's necessary to make diferent procedures DWPostDrawCond and DWDrawConds?
What i can do? Could you helpe me?
Best regards.
------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20051103/e896fdd5/attachment.htm
I will explain the GiD material/condition philosophy:
Internally, the gid entities points to a material (and only one), and you can modify some material property.
you can create a new material, derivated from another material, but with different field values.
The conditions are not pointed by entities. You create new instances of a template condition with his own values (it's like a new material), and this instance points to a list of entities. Then you can´t modify the values of an applied condition, because the conditions window show the condition template, not each instance that have different values. An instance of a condition has not an identifier to be modified, you only can delete instances applied to some entities, and create again.
It seems that you try to set for an condition instance, an identifier (the values that you store in ProblemTypePriv(pointnames)), and try to use this identifier to draw, modify, etc this instance.
Usually do you have few materials, but maybe a lot of different condition instances
(it's a bad design to show a combobox with 300.000 identifier entries!!)
How do you define in the .cnd file the PointLoad condition?
Maybe you need to add a field to be used as identifier.
- You want to draw by color a field condition (the identifier field),.
- You must also control that when you create a new condition instance (when assign), the identifier
is not repeated with other different field values.
- To simulate that you modify a condition instance, you must unassign this condition of his entities, and assign again to the same entities with the new values
Note: currently is not possible to unassign the condition with an specified field value of some entities, you unassign the contition to some entities without any control over the field values. This feature will be implemented for next beta versions.
Regards
Enrique
----- Original Message -----
From: ascosta at portugalmail.pt
To: gidlist at gid.cimne.upc.es
Sent: Friday, October 28, 2005 3:01 PM
Subject: [GiDlist] Draw the assigned names of a combobox
Hi Enrique.
Thanks for your help, it's now possible associate the point load's name of the combobox ProblemTypePriv(pointcombo) to the values X, Y,...
I introduce the combobox ProblemTypePriv(pointcombo), because in conditions menu's we don't have the possibility of create a new condition (in my case a new point load) or delete it. Therefore, i can create new point loads, rename or delete them from my combobox ProblemTypePriv(pointcombo) and save this names in the array ProblemTypePriv(pointnames).
Now, i assign the point loads names to points. After that i try draw, but don't draw the point loads of the combobox. Just draw "Point Load" (the BOOK of conditions file).
But now i can't assign the names ProblemTypePriv(pointnames) to points. When i draw the points assigned, this are related with "Point Load" (the name in combobox intoduced automatic in conditions menu). But should be related with my points names ProblemTypePriv(pointnames).
It's necessary to make diferent procedures DWPostDrawCond and DWDrawConds?
What i can do? Could you helpe me?
Best regards.
------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20051103/e896fdd5/attachment.htm