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

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

I want to dispaly dimesion of feature in creo UI .How can i achieve

Dhananjayc_24
9-Granite

I want to dispaly dimesion of feature in creo UI .How can i achieve

Hello,

I want to display dimension of feature in creo .so How can i achieve that .Please guide.Method to display dimension in Creo UI.

 

2 REPLIES 2

 

捕获.JPGi think this should be what you want, actually if you want achieve this you should learn some knowledge about the Customization develop, such as Weblink, and VBAPI, Jlnk or Toolkit. weblink and VBAPI are easier.

for the feature dimensions code you may need.

you are supposed to know something about the Creo Weblink , and basic knowledge on HTML5, Javascript that will help you know the below code better

 

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)
    }
 }
}

 

Top Tags