Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
ProConnector *pConnector=NULL;
proErr= ProAssemblyConnectorsGet(static_cast<ProAssembly>(pModel), &pConnector);
ProCblConnector *p_connector;
int connectorQty= 0;
proErr = ProArraySizeGet(pConnector,&connectorQty);
for(int i=0; i<connectorQty; i++)
{
ProMdlNameGet ((ProMdl)&pConnector[i], name);
char pConnectorName[PRO_NAME_SIZE];
ProWstringToString(pConnectorName, name);
MessageBox(NULL, pConnectorName, "pConnectorName", MB_OK);
}
Hello Rupali,
first of all a hint:
A general question "is anything wrong with this code?" is difficult to answer for others, because they usually exactly what you intent to do and which strategy you want to employ. Your posts have better chances to get a reply with a description like: "In the line where I call XXXX, it breaks up with error code YY"
As far as I understand pConnector is an array of pointers to connector handles.
I'd expect you call something like ProConnectorParamsCollect() and read the value from the parameter REF_DES (please doublecheck, but I think this is the one you are searching for)
BTW: Your post I am tring to get connector name in Cabling assembly but it shows blank.. Can any one sugest me seems to be an incomplete version of this very same topic. Can it be deleted?
Thanks,
Gunter