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 an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

How to add text below drawing dimension?

AI_10095062
6-Contributor

How to add text below drawing dimension?

Hi,

I am not able to set Text below drawing dimension,  If any one has solutions please suggest. 

1 REPLY 1

Hi, you might check out the following API: ProDimensionTextWstringsSet

The docu provides an example:

 

err = ProArrayAlloc (0, sizeof(wchar_t*), 1, (ProArray*)&p_texts);		
        while(1)
        {           
            err = ProMessageStringRead (127, buffer);
			if(err != PRO_TK_NO_ERROR)
				break;
			
			err = ProArrayObjectAdd ((ProArray*)&p_texts, PRO_VALUE_UNUSED, 1,&buffer);      
			err = ProWstringLengthGet(buffer,&wstrLen);
			err = ProArrayAlloc (wstrLen+1, sizeof(wchar_t), 1, (ProArray*)&p_texts[arrIndex]);		
			ProWstringCopy(buffer,p_texts[arrIndex],PRO_VALUE_UNUSED);
			arrIndex++;	
        } 
        err = ProDimensionTextWstringsSet (dim, p_texts);
        TEST_CALL_REPORT("ProDimensionTextWstringsSet()",
            "ProTestDimensionEdit()", err, err != PRO_TK_NO_ERROR);

		for(ii=0;ii<arrIndex;ii++)
			err = ProArrayFree ((ProArray*)&p_texts[ii]);

        err = ProArrayFree ((ProArray*)&p_texts);  

 

Announcements


Top Tags