Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
Hello,
I'm reading the size of a table column with ProDwgtableColumnSizeGet().
How can I get or convert the size to drawing units.
I tried it with ProDrawingSheetTrfGet.. and ProPntTrfEval but nothing works...
Some ideas?
Thanks for your help!
Greetings Lars
Hello,
thanks for your answer.
The problem was the number of the column.
In some Toolkit functions the index starts at 1 but in
ProDwgtableColumnSizeGet the index starts at 0!!!
Here my code:
ProPoint3dpt;
ProMatrixMatrix;
intSheet;
ProNameSheetSize;
pt[0] = 0.0;
pt[1] = 0.0;
pt[2] = 0.0;
err = ProDrawingCurrentSheetGet(m_Drw, &Sheet);
err = ProDrawingSheetTrfGet(m_Drw, Sheet, SheetSize, Matrix);
if (m_ATitleCells.size() > 0)
{
err = ProDwgtableColumnSizeGet(&m_ATitleCells[0].Table,
0, m_ATitleCells[0].Column - 1, &pt[0]);
ProVectorTrfEval(pt, Matrix, pt);
OS << L"ColSize (" << m_ATitleCells[0].Column << L"): " << pt[0] << endl;
}
Greetings Lars