I need to get the list of dimension used in the Creo model with reference to specific surface. For example, I have hole feature and i need to get all the dimension with reference to the hole.
Kindly suggest me
I have the same problem, and want to find a easy to extract dimension from model.
Have got the the solutions? could you share it to me if you got it?
Thank you very much!
Thank you so much! Is this function based on toolkit? Can we use it based on vb api? Can you give me a example?
Thanks a lot~
Both functions are based on toolkit. I am not sure about VB. Try this code:
double value = 0.0;
err = ProSelectionModelitemGet (sel, &dim);
err = ProDimensionValueGet (dim, &value);
Try this. I think this should do. Let me know how this goes
For Toolkit you can use ProSolidDimensionVisit to get the dimension from the entire model or ProFeatureDimensionVisit to get the dimension of a specific feature.
For VB API you can try IpfcModelItemOwner.ListItems() or IpfcFeature.ListSubItems(). Check the "Getting ModelItem Objects" section on the user guide.
Those two methods will give you a list of dimension objects(model items). From here you can use the IpfcBaseParameter and IpfcBaseDimension methods to get the informations you need.
The <Creo Load point>\vbapi\vbapi_examples\pfcRelationsExamples.vb file has an example of getting dimension list by using IpfcFeature.ListSubItems()
Let understand background....API's provided in toolkit or vb are to get the dimensions of the feature created.You can not get dimension on fly w.r.t to one modelitem to other item. But where as in drawing it is very much possible if you can get valid objects to create drawing dimensions in a view.In model you can measure distance between two objects as it has creo features....similary explore API are support on this.
I want count the current opened drawing attributes list count using VB.net. I have experience in vb.net/api, little bit experience in creo api.
3. Geom tol
4. 2D datum/axis
5. 2D sketched entity
6. Reference dim
7. Surface finish
8. 2D symbol
The above list count to be taken using vb.net. I have analyzed vbug.pdf and i didn't' get clear idea. I opened the drawing file.
Now i want to go further process.
Can anyone help me.
Follow the below steps:
Count the items with your VB Code