2 weeks ago
In AC28.
File -> Interoperability -> Merge -> Merge from File...
File -> Interoperability -> Import Point Clouds...
I want to catch event when merge file or import point clouds.
Is there any ACAPI_Notification function to catch that?
If it is impossible, how can I merge file and point cloud using api?
I need element guids when file merged.
Solved! Go to Solution.
2 weeks ago
I've found something for merging:
Maybe ACAPI_ProjectOperation_CatchProjectEvent with APINotify_ChangeProjectDB could work.
According to the APIProjectEventHandlerProc documentation, it has a parameter which indicates a Merge for APINotify_ChangeProjectDB.
Haven't tested it, but could be a good direction to investigate.
Hope that helps,
Bernd
2 weeks ago
Hi!
I'm not sure but it might be possible to catch the point cloud as a new element on import. I don't have time to test so I can only give you the link to the command to try for yourself: https://graphisoft.github.io/archicad-api-devkit/group___element.html#gaa640b4d073a2e78c2eb83fe351de...
Maybe that could help.
For catching merged files I don't have an idea right now.
Best,
Bernd
2 weeks ago
I've found something for merging:
Maybe ACAPI_ProjectOperation_CatchProjectEvent with APINotify_ChangeProjectDB could work.
According to the APIProjectEventHandlerProc documentation, it has a parameter which indicates a Merge for APINotify_ChangeProjectDB.
Haven't tested it, but could be a good direction to investigate.
Hope that helps,
Bernd
Monday
Thanks for your help.
I was able to catch the events related to File merge.
However, for point cloud, I can catch the APINotify_ChangeLibrary and APINotifyElement_New events.
It seems that there is no way to distinguish between events that occur when loading a library or creating an element.
Monday
If I understand you correctly you get both notifications APINotify_ChangeLibrary and APINotifyElement_New when you are loading a point cloud?
Maybe you can check which libraries are loaded or what the specific object is created (e.g. library item id or object sub type) to differentiate from other created elements.