2019-01-27 03:26 PM - last edited on 2022-10-04 04:42 PM by Daniel Kassai
2019-01-28 10:32 AM
2019-01-28 12:42 PM
2019-01-28 01:22 PM
Tsepov wrote:
Sorry, it's not work.
APIERR_REFUSEDCMD error.
err = ACAPI_Automate (APIDo_CloseID, (void *) (Int32) 1234);
This function performs complete operations, so it cannot be called neither during undoable operations nor during non-undoable commands.That can be the other reason why you got that error message.
2019-01-28 03:24 PM
2019-02-01 03:41 AM
Tsepov wrote:Try
Is it possible to somehow switch to the database view of the drawing element?
This is to read items from the View in the background without opening the View window.
Now I have to use the API_DrawingLinkInfo linkGuid and
ACAPI_Automate (APIDo_GoToViewID, const char * viewGuidStr); - it is he who opens a new view window, which is then impossible to close.
ACAPI_Database(APIDb_ChangeCurrentDatabaseID, API_DatabaseInfo* databaseInfo);although this requires the databaseUnId of the view instead of view guid, so you have to get the API_NavigatorItem first then use its databaseinfo (API_NavigatorItem::db).
ACAPI_Navigator(APINavigator_GetNavigatorItemID, const API_Guid* guid, API_NavigatorItem* navigatorItem);Hope this works. Also don't forget to return to the original database afterwards or else the current window might get some weird responses
2019-02-01 06:49 PM