cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
nishida_jp
Booster

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

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

 

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!