The Global ARCHICAD Community

Stay informed. Get help. Share your knowledge.

Discussions about using GRAPHISOFT's tools (API DevKit) for independent software developers

Moderators: Karl Ottenstein, LaszloNagy, ejrolon, Barry Kelly, gkmethy, rmasaki, MOREH Tamas, Akos Somorjai, Ed Brown, Mihály Palenik, Tibor Lorántfy

By DevJeer
#305332
Hi.
I want to save current view in my created folder.
Howerver I create it by ACAPI_Navigator, the error is "The passed parameters are inconsistent".
My code is :
Code: Select all
        API_NavigatorItem saveItem;
	BNZeroMemory(&saveItem, sizeof(API_NavigatorItem));
	saveItem.customName = true;
	strcpy_s(saveItem.name, folderName.ToCStr().Get());

	saveItem.itemType = API_StoryNavItem;
	saveItem.mapId = API_PublicViewMap;

	API_NavigatorView saveView;
	BNZeroMemory(&saveView, sizeof(API_NavigatorView));
	
        GS::Guid parentAndChild[2]
	parentAndChild[0] = APIGuid2GSGuid(guid);// Folder guid
	parentAndChild[1] = APIGuid2GSGuid(APINULLGuid);
	err = ACAPI_Navigator(APINavigator_NewNavigatorViewID, &saveItem,&saveView,parentAndChild);
Thanks.