cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Developer forum
GDL coding questions, Python and add-on development using the API Dev Kit.

Forum Posts

Using the Development Kit with Visual Studio 2022

Hi everyone, In the last couple of weeks we got several questions regarding Visual Studio 2022 and the API DevKit. If you try to use VS 2022 to build your AddOns, you have to keep in mind a few things. First, Archicad 25 and Archicad 26 is built with...

[SOLVED] Guid array

for (GS::Array::ConstIterator it = elements.Enumerate (); it != NULL; ++it) { BNZeroMemory (&element, sizeof (API_Element)); element.header.guid = *it; I have specified witch guid to get. And i need to store them in array. I guess i'm doing something...

Anonymous by Not applicable
  • 1635 Views
  • 1 replies
  • 0 likes

[SOLVED] ACAPI_KeepInMemory problem

Hi I have a dialog which inherits from DG::Palette class. Here is my dialog's header class class IssuesDialog : public DG::Palette, public DG::ButtonItemObserver, public DG::ListViewObserver { private: DG::LeftText m_textViewGuid; DG::LeftText m_text...

Anonymous by Not applicable
  • 2826 Views
  • 6 replies
  • 0 likes

Get Camera FOV from a Rendering addin

Hi How can I get the camera Field Of View from a rendering addin pls? I use the following code to get the camera position and target - but cannot find a way to get the FOV. GSModeler::Vertex targetPoint = camera->GetTargetPoint (); GSModeler::Vertex ...

Anonymous by Not applicable
  • 5921 Views
  • 9 replies
  • 0 likes

[SOLVED] How to select an element by C++ code

My goal is to select an element by C++ code. I have a modal dialog and I have elements GUIDs in current document, I want to select an element on dialog's button click. Is there a way to do that ? Thanks in advance!

Anonymous by Not applicable
  • 2011 Views
  • 3 replies
  • 0 likes

[SOLVED] How to find element by IFC Guid

Hi My goal is to find element by IFC Guid I have no choice to find by TagID because I'm getting IfcGUID from webAPI and I have to search by IFC GUID. Is there any way to do that ? Thanks in advance!

ifcguid.png
Anonymous by Not applicable
  • 3190 Views
  • 2 replies
  • 0 likes

[SOLVED] Rotate placement

This will be hard to explain, hope it makes sense. When i place object it has defined x, y, z position. So when i need to place in different angle. For example if i rotate 90° i need y= to be x and x= to be y. It get's even more complicated when i ne...

Anonymous by Not applicable
  • 1610 Views
  • 2 replies
  • 0 likes

Parameter bug?

I have parameter which i used as x coord when i use it in addon it returns "0" If i assign this parameter to new made then ir returns right value. For example I have x = 1234 Addon returns "0" I make new parameter to test xtest = x Addon return "1234...

Anonymous by Not applicable
  • 1001 Views
  • 0 replies
  • 0 likes

How to use ChangeDefaultsExt to MyDoor Object

I would like to ChangeDefaults Door and Window(Change Object). Ex. - I have 2 door object [MyDoor1.gsm , MyDoor2.gsm]. - And "MyDoor1" is Defaults object then i would like change to "MyDoor2" object.

Anonymous by Not applicable
  • 2970 Views
  • 5 replies
  • 0 likes

[SOLVED] Changing a Modal Dialog size

Hi I have a modal dialog defined in a GRC file with a fixed width/height. This dialog has been unchanged for 12 months, however now I need to add 5 fields to it - so the height needs to be increased. But when I increase the height in the GRC file it ...

Anonymous by Not applicable
  • 2218 Views
  • 4 replies
  • 0 likes