How to get part/assembly name from custom Symbol instant. I want part name when I delete symbol using ProDtlsyminstDelete(ProDtlsyminst *symInst). Is there any API or Work around to retrieve part name?
How to get part/assembly name from custom Symbol instant. I want part name when I delete symbol using ProDtlsyminstDelete(ProDtlsyminst *symInst). Is there any API or Work around to retrieve part name?
ProError DeleteBalloon(string strTempItemNo)
{
ProError status = PRO_TK_NO_ERROR;
int nSheets;
status = ProDrawingSheetsCount((ProDrawing)gblObjCurMdl,&nSheets);
for(int i=0; i< nSheets; i++)
{
ProDtlsyminst *symInsts;
status = ProDrawingDtlsyminstsCollect((ProDrawing)gblObjCurMdl, i, &symInsts);
int totalSyms;
status = ProArraySizeGet(symInsts, &totalSyms);
for(int j=0; j< totalSyms; j++)
{
ProDtlsyminstdata dtlSymInstData;
status = ProDtlsyminstDataGet(&symInsts[j], PRODISPMODE_SYMBOLIC, &dtlSymInstData);
ProDtlvartext *p_vartexts;
ProLine w_prompt, w_value;
int size = 0, text_size = 0, k;
status = ProDtlsyminstdataVartextsCollect (dtlSymInstData, &p_vartexts);
if (status == PRO_TK_NO_ERROR)
{
status = ProArraySizeGet ((ProArray)p_vartexts, &text_size);
for (k = 0; k < text_size; k++)
{
status = ProDtlvartextDataGet (p_vartexts[k], w_prompt, w_value);
char chrTagName[1000];
ProWstringToString(chrTagName, w_prompt);
if (strcmpi(chrTagName, "index")==0)
{
//Index Drawing Balloon Data
char chrIndexNo[1000];
ProWstringToString(chrIndexNo, w_value);
if (strcmpi((char *)strTempItemNo.c_str(), chrIndexNo)==0)
{
status = ProDtlsyminstDelete(symInsts);
//Here I want part/Assembly name from "symInsts".
//Please provide any api or work around.
break;
}
}
}
}
}
}
ProMdl curMdl;
int curSheet = 0;
status = ProMdlCurrentGet(&curMdl);
status = ProDrawingCurrentSheetGet((ProDrawing)curMdl, &curSheet);
status = ProDwgSheetRegenerate((ProDrawing)curMdl, curSheet);
return status;
}
This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

