Dimension Visit to find a dimension by name
Hi All,
I use ProSolidDimensionVisit(), to get a dimension names "Test" from a part. And I need to add flexibility in Assembly. I use the following code, in this case it takes only first dimension. Kindly throw some light how to find the dimension with name.
ProError dim_visit(ProDimension* dimension,ProError status,ProAppData data)
ProName d_name;
char dim_name[PRO_NAME_SIZE];
status = ProModelitemNameGet(dimension,d_name);
ProWstringToString(dim_name,d_name);
if (strcmp(dim_name,"Test") == 0)
{
return status;
}
return PRO_TK_CONTINUE;
