Service alert: BIMcloud SaaS disruption in the US Read more

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

Why Does DG::GetDialogFromId Return nullptr in ArchiCAD 27 C++ API?

nishida_jp
Booster
In the ArchiCAD 27 C++ API, the following function returns nullptr for some reason:

[cpp]
DG::Dialog *dlg = DG::GetDialogFromId(dialID);

How can I correctly obtain a pointer to the DG::Dialog class from dialID using this function?
1 REPLY 1
LChen
Graphisoft
Graphisoft

Hi, The dialID should be valid, you may use if (!DGIsDialogOpen (diallD) {} to check at first.

I noticed there are some places in API Examples code which using the same command DG::GetDialogFromId (), you can check whether it works on your pc.

HTH.