Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
I'm using CREO 4.0 and protoolkit to get the dimension info in the each view in drawing.
I'm able to get the dimension attach points info, if the dimension created between two linear edges or any edges in the view. But I'm unable to get the below shown dimension info using pro toolkit. I'm able to get the attach points, But then onward i don't have any way to get the corresponding model datum axis information.
Could you please let me know, how to get the attach point information like datum axis and hole feature or anything.
Hello, do you want to solve dimension created at the drawing (associative)?
If you have dim item, you can use ProDrawingDimAttachpointsGet(), which return array of Selections (named ProDimAttachment) – connections at drawing (e.g. to exis, point, …).
So, when you have this Selections you can ‘parse’ them, e.g. get mdlItem by ProSelectionModelitemGet() and analyze this mdlItems as you need.
Or if you somehow have just ProDtlattach attachment point, you can get that Selection with ProDtlattachGet().
On the other hand, if the dim item is not associative Dimension (check by ProDrawingDimIsAssociative()), I am not sure what you need in that case. (The owner of model dim is just by ProDimensionOwnerfeatureGet()).
PZ