cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Get dimension of group of hole

Dhananjayc_24
9-Granite

Get dimension of group of hole

Hello,

I have created group of same diameter hole now i want to get the dimension of that group oh hole and display .How can i do that.

2 REPLIES 2

Give you an example, weblink code for the feature dimension

 

var sess=pfcCreate("MpfcCOMGlobal").GetProESession();
var model=sess.CurrentModel;
var feattype=pfcCreate("pfcModelItemType").ITEM_FEATURE;
var feats=model.ListItems(feattype);
alert(feats.Count)
for(j=0;j<feats.Count;j++){
 var feat=feats.Item(j);
 var featStatus=pfcCreate("pfcFeatureStatus");
 if(feat.Status!=featStatus.FEAT_SUPPRESSED && feat.FeatSubType!=""){
    //alert(feat.FeatTypeName);
    //alert(feat.FeatSubType);
    //alert(feat.Number);
    alert(feat.GetName())
    var dimtype=pfcCreate("pfcModelItemType").ITEM_DIMENSION;
    var dims=feat.ListSubItems(dimtype);
    for(var k=0;k<dims.Count;k++){
        var dim=dims.Item(k);
        alert(dim.Symbol + "the feature dimension is :" + dim.DimValue)
        //alert(dim.Symbol)
    }
 }
}

 

 

Sorry , forgot it , some of the alert statements are just want to see the result while i'm testing, so just let it go.

Top Tags