cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Developer forum

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...

How to create new texture material

API_Attribute attrib; API_RGBColor rgbC; short ltypeIndex; GSErrCode err; BNZeroMemory (&attrib, sizeof (API_Attribute)); BNZeroMemory (&rgbC, sizeof (API_RGBColor)); attrib.header.typeID = API_MaterialID; rgbC.f_red = 1.0; rgbC.f_green = 0.0; rgbC.f...

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

[SOLVED] How to get the Reserved status of an Attribute

Hi - how can I cn the Reserve/Lock status of an Attribute (a Surface in particular). The following code only seems to work for Elements, not Attributes. API_LockableStatus lockableStatus = ACAPI_TeamworkControl_GetLockableStatus (attrib.header.guid);...

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

[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
  • 1631 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
  • 2810 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
  • 5909 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
  • 2008 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
  • 3180 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
  • 1602 Views
  • 2 replies
  • 0 likes