Proper way of adding a property value to single attribute
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-06-02
03:55 PM
- last edited on
2022-12-06
02:06 PM
by
Daniel Kassai
2017-06-02
03:55 PM
Hello again,
I'm struggling with the following situation:
1. I create a new group and new string property which I will use to put website url in it.
2. I create a new building material and make the new property available for it.
3. ( This is the problem step ) I want to assign the url value to that new building material which I created.
I'm reading about the ACAPI_Element_SetProperties(), which sets the properties, but the first parameter is elemGuid, which is not the building material guid, because when I try to pass it I get this error:The passed identifier is not a valid one, or valid, but not proper for the given operation.
So what's the proper way to set the property value to a particular building material ?
Thanks in advance, Julian
I'm struggling with the following situation:
1. I create a new group and new string property which I will use to put website url in it.
2. I create a new building material and make the new property available for it.
3. ( This is the problem step ) I want to assign the url value to that new building material which I created.
I'm reading about the ACAPI_Element_SetProperties(), which sets the properties, but the first parameter is elemGuid, which is not the building material guid, because when I try to pass it I get this error:
So what's the proper way to set the property value to a particular building material ?
Thanks in advance, Julian
Labels:
- Labels:
-
Add-On (C++)
4 REPLIES 4
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-06-05 04:26 PM
2017-06-05
04:26 PM
As far as my understanding goes the new property is set for the whole group in which belongs the new attribute which I created. Is there any way that I could set a different default value for each new attribute, before the element is even created ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-06-06 12:31 PM
2017-06-06
12:31 PM
jcimentarov wrote:I might be misunderstanding, but are you trying to add properties to a building material? If so, that isn't currently supported – properties can only be assigned to elements (hence the command name
3. ( This is the problem step ) I want to assign the url value to that new building material which I created.
I'm reading about the ACAPI_Element_SetProperties(), which sets the properties, but the first parameter is elemGuid, which is not the building material guid, because when I try to pass it I get this error:The passed identifier is not a valid one, or valid, but not proper for the given operation.
Ralph Wessel BArch
Central Innovation
Central Innovation
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-06-09 04:54 AM
2017-06-09
04:54 AM
Ralph wrote:Ralph is right, properties are not available (yet
I might be misunderstanding, but are you trying to add properties to a building material? If so, that isn't currently supported – properties can only be assigned to elements (hence the command nameACAPI_Element_SetProperties).

You can solve this for the current version by adding your own data to the attributes (ACAPI_Attribute_SetUserData ()) and provide your own UI for that (ACAPI_Register_AttributePanel ()).
Best, Akos
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-10-02 09:12 PM
2018-10-02
09:12 PM
Akos wrote:Favorite teaser, really looking forward to properties on EVERYTHING, including stories, fills, pens and layouts. Basically replacing whatever scheme or text driven information field across ArchiCAD
Ralph is right, properties are not available (yet) for attributes.
