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

How to update Drawing?

Anonymous
Not applicable
I want to save layoutbook as pdf after updating drawing that connected viewmap.

But, drawing is not update when I change window to layoutbook using APIDo_ChangeWindowID.

I get API_Element using API_DrawingID and change that.

Drawing is changed, but they are not updated.

Please let me know how to update drawing in layoutbook.
4 REPLIES 4

Anonymous
Not applicable
From what I understand this isn’t possible via API
I tried everything, including refreshing the dB and asking here. It seems to be impossible..

Anonymous
Not applicable
Tomer1 wrote:
From what I understand this isn’t possible via API
I tried everything, including refreshing the dB and asking here. It seems to be impossible..
Thank you for the reply.

I solved this problem by waiting for the automatic update from ArchiCAD through a timer.

Tibor Lorantfy
Graphisoft Alumni
Graphisoft Alumni
Hi,

In API_DrawingType structure there is a member named manualUpdate.
If you set that member to false (and change the drawing by using ACAPI_Element_Change), then the drawing will be automatically updated by Archicad.
Using APIDb_CheckDrawingStatusID you can check the status of the drawing. If it says the drawing is not up-to-date yet, then you can wait until the APIDb_CheckDrawingStatusID says it was updated.

Anonymous
Not applicable
Hi Tomer thanks for the help, was looking for similar solution.

Regards,
Kevin J. Hodge

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!