The Global Archicad Community

Stay informed. Get help. Share your knowledge.

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

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

By DevJeer
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(, 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);