How to update Drawing?
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-08-14
02:08 AM
- last edited on
2021-09-15
09:54 AM
by
Noemi Balogh
2020-08-14
02:08 AM
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.
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.
Labels:
- Labels:
-
Add-On (C++)
4 REPLIES 4
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-08-17 10:42 AM
2020-08-17
10:42 AM
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..

I tried everything, including refreshing the dB and asking here. It seems to be impossible..
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-08-19 07:33 AM
2020-08-19
07:33 AM
Tomer1 wrote:Thank you for the reply.
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..
I solved this problem by waiting for the automatic update from ArchiCAD through a timer.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-08-19 10:41 AM
2020-08-19
10:41 AM
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.
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-09-28 08:43 AM
2020-09-28
08:43 AM
Hi Tomer thanks for the help, was looking for similar solution.
Regards,
Kevin J. Hodge
Regards,
Kevin J. Hodge