We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Archicad C++ API
About Archicad add-on development using the C++ API.
SOLVED!

Creating an Add-on for No. groups / SEO's

JGoode
Expert
Hello,

How difficult would it be to create an add-on that could calculate how many groups / SEO's there are in a project?

Thanks
ArchiCAD 23

Windows 10
15 REPLIES 15
JGoode
Expert
Well as a start, where do the files come from in the RFIX, RINT, Src folders? Like the GRC, rc2, cpp, h, hpp...etc?
Little things like how to get from the example project file to having the apx file would be a very useful thing to have somewhere.
Although I understand why people say if you don't know this or that then don't bother, it wouldn't hurt to have a few beginner help tips just to get started then we can research on our own to develop further.
Also, where to install the Add-on manager exactly, or where to save the database (I couldn't get it to work and it was just showing as red)

I hope this makes sense.

Thanks very much
ArchiCAD 23

Windows 10
Tibor Lorantfy
Graphisoft Alumni
Graphisoft Alumni
JGoode wrote:
Well as a start, where do the files come from in the RFIX, RINT, Src folders? Like the GRC, rc2, cpp, h, hpp...etc?
As you can read in the blog post, I wrote down how I created those files and why:
So I placed my SVG image here into the Images folder and created the HelloWorld_ExampleFix.grc for the non-localizable resources...
RINT folder contains the localizable resources (for example strings and dialogs). I created the HelloWorld_Example.grc into this folder with the following content...
Src is for the C++ source code. Main.cpp contains the 4 required functions of the Add-On...
JGoode wrote:
Little things like how to get from the example project file to having the apx file would be a very useful thing to have somewhere.
If you successfully installed the proper build environment (for example Visual Studio 2017) then you just have to open any of the example projects and execute the build command. The .apx file will be on the build output folder.
JGoode wrote:
Also, where to install the Add-on manager exactly, or where to save the database (I couldn't get it to work and it was just showing as red)
AddOnAdmin tool is inside the DevKit, you don't have to install it. Just execute it and use your Developer ID to generate new unique ID for your AddOns. You can save the database anywhere, it's just for you. Only the IDs are needed to be placed into the MDID resource in your Fix GRC.


It's true that at least a little software developer experience (especially C++ knowledge) is needed to get started and understand our blog posts and the API documentation.
But I will write a new much more detailed blog post for beginners.
JGoode
Expert
Thanks very much for taking the time to respond.

The one thing I'm not quite sure about is how you created the .grc etc, even after reading the blog post, do you create it inside Visual Studio? How do you save it as a .grc file type?

Sorry if you've explained it somewhere and I've missed it!
ArchiCAD 23

Windows 10
JGoode wrote:
Hello,

How difficult would it be to create an add-on that could calculate how many groups / SEO's there are in a project?

Thanks
Now that you have that all figured out You may not need an add-on for that. You can use the Element ID Manager to assign ID counters/text to elements or groups of elements, and you use an Interactive Schedule to see how many of each there is. Also, the Interactive Schedule is a great way to select and view things like that in 2D or 3D window.

ArchiCAD 25 7000 USA - Windows 10 Pro 64x - Dell 7720 64 GB 2400MHz ECC - Xeon E3 1535M v6 4.20GHz - (2) 1TB M.2 PCIe Class 50 SSD's - 17.3" UHD IPS (3840x2160) - Nvidia Quadro P5000 16GB GDDR5 - Maxwell Studio/Render 5.2.1.49- Multilight 2 - Adobe Acrobat Pro - ArchiCAD 6 -25

JGoode
Expert
Steve wrote:
JGoode wrote:
Hello,

How difficult would it be to create an add-on that could calculate how many groups / SEO's there are in a project?

Thanks
Now that you have that all figured out You may not need an add-on for that. You can use the Element ID Manager to assign ID counters/text to elements or groups of elements, and you use an Interactive Schedule to see how many of each there is. Also, the Interactive Schedule is a great way to select and view things like that in 2D or 3D window.
How would I assign ID counters to groups of elements?
ArchiCAD 23

Windows 10
JGoode wrote:
Steve wrote:
JGoode wrote:
Hello,

How difficult would it be to create an add-on that could calculate how many groups / SEO's there are in a project?

Thanks

Now that you have that all figured out You may not need an add-on for that. You can use the Element ID Manager to assign ID counters/text to elements or groups of elements, and you use an Interactive Schedule to see how many of each there is. Also, the Interactive Schedule is a great way to select and view things like that in 2D or 3D window.
How would I assign ID counters to groups of elements?
Assign the same ID to each element using Element ID Manager - for each set of Operators and in each set of Targets.
First set of Operators all have ID (001-OPERATOR). Second set of Operators all have ID (002-OPERATOR). First set of Targets all have ID (001-TARGET), Second set of Targets all have ID(002-TARGET) ....... in an Interactive Schedule, Merge Uniform Items and Flag Field to display a separate sum or quantity for each set/group of elements. Lots of variations on how to sort and schedule, merge uniform items, sum...
Perhaps all you need is to add a suffix to ID or Layer Extension. anything like that to add a O or T to elements that are Operators or Targets.
Just curious, but why do you want to know how many sets of Targets and/or Operators there are in a project?

ArchiCAD 25 7000 USA - Windows 10 Pro 64x - Dell 7720 64 GB 2400MHz ECC - Xeon E3 1535M v6 4.20GHz - (2) 1TB M.2 PCIe Class 50 SSD's - 17.3" UHD IPS (3840x2160) - Nvidia Quadro P5000 16GB GDDR5 - Maxwell Studio/Render 5.2.1.49- Multilight 2 - Adobe Acrobat Pro - ArchiCAD 6 -25