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

Forum Posts

Inserting file types into DG::FileDialog::Save

Hi, I'm trying to insert file types into the selector at the bottom of the save dialog, but as far as I can tell I need the ID number for each file type? Here's what I've got so far: FTM::GeneralID png; png.Load(5); UIndex i = dialog.AddFilter(png); ...

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

How to deal with string array parameters?

Hey everyone, i am trying to wrap my head arround how to handle string arrays in memo params. Example: UInt32 totalParams = BMGetHandleSize((GSConstHandle)memo.params) / sizeof(API_AddParType); for (int i=0; i conditions = {"param1" ,"param2"}; if (c...

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

Resolved! Type conversion GS::Unistring to GS::uchar_t[]

Hey everyone, i need to set a GDL param value from my addon and i struggle to define my new value with the correct type. UInt32 totalParams = BMGetHandleSize((GSConstHandle)memo.params) / sizeof(API_AddParType); for (int i=0; i

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

PYTHON API

The download link seems to be broken (W10 and macOS) isn't it ? https://beta.graphisoft.com/#/products/home?product=Python%20API%20for%20ARCHICAD%2022

Update layouts / drawings?

Hello, I want to update my layouts by code. Tried checking rebuildcurrentdatabase but didn’t get anything. How can I make the “update” action to be called by code? Thanks!

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

Resolved! How to get Sun Guid?

Hi. I'm trying to figure out how do I get the guid of the sun ( if this is even possible ? ). All that I've found is API_SunInfo which is not helpful for me, the 2nd approach is returning empty GS::Array. Thanks for your assistance. API_SunInfo sunIn...

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