The Global ARCHICAD Community

Stay informed. Get help. Share your knowledge.

Discussions about using GRAPHISOFT's tools (API DevKit) for independent software developers

Moderators: Barry Kelly, Karl Ottenstein, LaszloNagy, ejrolon, gkmethy, Tibor Lorántfy, MOREH Tamas, Akos Somorjai, Ed Brown, Mihály Palenik

#284755
Hello,

I have some issues with the german version of AC22 and the property test add-on.

The problem is that when a draw a basic wall, then select it and try test -> properties -> define string custom property for selected element ( none of the first three options work ! ) i get the error from the screenshot ( see below )

On the Archicad 22 INT version i do the same steps and the property is set to the element without any error.

I would be thankful if you could explain why this happens :)
Attachments
Screen Shot 2018-08-08 at 16.20.39.png
#284931
Hi,

Each kind of property is available for only elements with a specific classifications.
In Property Manager if you select a Property, then you can check the list "Availability for Classifications".
Therefore an unclassified element cannot have properties. I bet your wall is unclassified and that causes the issue.

Property Test Add-On function tries to create a new property and makes it available for the classifications of the selected element. But if your element is unclassified, then the created property will be available for none and cannot be set for the selected element. The error code APIERR_BADPROPERTYFORELEMENT suggests this.

PropertyAvailabilityForClassifications.png
UnclassifiedWall.png
#285740
Hi Tibor

I am also having issues with the Property Test Addon.
But I can't get it to do anything. Not one of the functions will work for me. !! (They show in the test menu)
I have successfully compiled other addons for 22 without issue.
I have tried the default template, checked my classifications, checked the property types etc etc but still nothing. I don't even get error messages...

Any help greatly appreciated :)

I am using Xcode 9.4 on High Sierra. AC 22.
#285745
Hi Ben,

I made a short video to present the first few functions of the Property Test AddOn: https://lorantfyt.tinytake.com/sf/Mjg3NTc0Ml84NjMxMjQ0
  1. I drew a wall and opened it's settings. I can see that it has a classification ('Wall' in my case) and has properties ('Fire Resistance Rating' in my case).
  2. I selected my wall and used the first function of the Property Test Add-On from the 'Test/Properties/Define a new bool custom property for the selected element' menu.
  3. I opened the settings dialog again and I realized that a new group of properties was added to my element and there is one property inside it with 'Property_Test Add-On Definition ...' name and it's value is 'True'.
Could you repeat these steps please using your project and tell me which step works differently for you?
(For example at first step your wall doesn't have any classification or property.)

Regards,
Tibor
#285748
Hi Tibor

Thanks for the prompt reply...
My addon will not do any of that.
It seems that something is missing in the build that is totally preventing it from working.
I have created a screen recording here

https://www.dropbox.com/s/2q8c0ai8t3xvk ... e.mov?dl=0

This API has so much potential.. I really want it to start working :)
#285809
Hi Tibor

OK.. I downloaded your project and compiled.. still wouldn't work.
So I copied over the entire examples folder from the devkit and bingo!! started working.

The only thing I had changed was the MDIDs_APICD.h (of course)... maybe I need to resave this file as it has been untouched for years..
Also, strange that my other project compiled without issue?.

Thanks so much for your time on this mate... really appreciated :)