cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Pro/toolkit : ProAssemblyAutointerchange change subassm to a prt,PRO_TK_GENERAL_ERROR

WR_10374309
2-Explorer

Pro/toolkit : ProAssemblyAutointerchange change subassm to a prt,PRO_TK_GENERAL_ERROR

 

 

	int* ids = nullptr;
	ProArrayAlloc(1, sizeof(int*), 1, (ProArray*)&ids);
	ProArraySizeSet((ProArray*)&ids, 1);
	ids[0] = 40;
	int wHandle;
	if (ProWindowCurrentGet(&wHandle) == ProError::PRO_TK_NO_ERROR)
	{
		ProMdl handle;
		if (ProWindowMdlGet(wHandle, &handle) == ProError::PRO_TK_NO_ERROR && handle != 0)
		{
			ProMdl prdMdl;
			ProMdlLoad((wchar_t*)L"prtpath", PRO_MDL_UNUSED, PRO_B_FALSE, &prdMdl);

//the function can't work on asm->prt
//asm->prt is work
			ProAssemblyAutointerchange(ProMdlToAssembly(handle), ids, prdMdl);
		}
	}

	
	ProArrayFree((ProArray*)&ids);​

 

 

1 REPLY 1

Hi WR_10374309

Thank you for your question.

I encourage you to bring more details and context to your initial inquiry. This will make it easier for you to receive meaningful help from other Community members.

Regards,
Andra
Announcements


Top Tags