Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

visiting dimensions in a drawing file

praveen_nasar

New member
When the option (Tools-->options) create_drawing_dim_only is set to 'yes' , the dimensions created in the drawing are saved in the drawing file and they are termed as 'created dimensions'.But when the same option is set to 'no' the dimensions are saved into the partfile and called as 'show dimensions'.


Now my problem is, i want to visit each dimension in a drawing file by using the Pro/TOOLKIT functions and find out whether the dimensionsare 'created dimensions' or 'show dimensions'.


I know the function something like ProDwgDimensionVisit(). As I am using a drawing file as an input to the program and by using that fuction i can visit only the created dimensions.


Is there any other to technique to find whether the dimension is of created type or show type.
 
You have to visit all drawing's models and for each dimension of the model you can call the ProDrawingDimensionIsDisplayed function to find all 'created dimensions' and by calling ProDwgDimensionVisit on drawing you will find all 'show dimensions'
 
Thanks _TL_ it worked. I have visited the part model attached to a drawing view and used the function ProDrawingDimensionIsDisplayed. The function returned true ifany 'show dimensions'are displayed on the drawing sheet.
 

Sponsor

Back
Top