Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. 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
