Hey guys!
Now I'm trying to get dimensions from a part.
What I did:
pfcModelItems_ptr items = solid->ListItems(pfcITEM_DIMENSION);
for (xint dimesionId = 0; dimesionId < items->getarraysize(); dimesionId++)
{
const pfcDimension_ptr dimension = pfcDimension::cast(items->get(dimesionId));
}
From the dimension I can get type(linear\angular\diameter etc.), value, additional symbols\text etc. etc.
That's fine. But what about relationship between this dimension(type+text\value) and an actual part\surface\edge\curve.
On the other hand, it would be great to have coordinates for these additional lines\arrows(that build a dimension) + position of the text\value of particular dimension.
Unfortunately I couldn't find corresponding example or some sort of a description in the User Guide. I looked at "22. Dimensions and Parameters->Dimension Objects", p.329
I ran out of ideas
I would appreciate it if you could give me some advice.
Solved! Go to Solution.
Hi all,
Artem,
Dimensions & Parameters chapter is for driving dimensions - model shape manipulation via dimensions... The functionality to deal with part/assembly dimension semantics ( or cosmetics) is not in OTK as of Creo 3.0 level. You'll need to use Pro/Toolkit and would need a license for 'TOOLKIT for 3D drawing' to access annotation elements in 3D models.
Without that extra license you would get a limited access to dimension properties but in any case you'll get more functionality comparing to OTK...
HIH.
Feliks.
Hi all,
Artem,
Dimensions & Parameters chapter is for driving dimensions - model shape manipulation via dimensions... The functionality to deal with part/assembly dimension semantics ( or cosmetics) is not in OTK as of Creo 3.0 level. You'll need to use Pro/Toolkit and would need a license for 'TOOLKIT for 3D drawing' to access annotation elements in 3D models.
Without that extra license you would get a limited access to dimension properties but in any case you'll get more functionality comparing to OTK...
HIH.
Feliks.
Hey Feliks,
Thank you for the answer, it really helps.
I found prootolkit User Guide and necessary information in "Dimension Location", p. 577
Now I need only to merge C functions into my code (Standard C++).
Thanks,
Artem