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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

how to get dimension values

ss-10-11-12
1-Visitor

how to get dimension values

Hi,

     anybody please help me to get dimension name and its values for a given creo part using jlink coding.

send any idea about that dimension name and values.

3 REPLIES 3

I don't use jlink but here is an excerpt from the user manual -

 

Dimension Objects

Dimension objects include standard PTC Creo Parametric dimensions as well as reference dimensions. Dimension objects enable you to access dimension tolerances and enable you to set the value for the dimension. Reference dimensions allow neither of these actions.

Getting Dimensions

Dimensions and reference dimensions are PTC Creo Parametric model items. See the section Getting ModelItem Objects on page 208 for methods that can return Dimension and RefDimension objects.

 

Dimension Information

 

Methods Introduced:

 

• pfcModelItem.BaseParameter.GetValue

 

• pfcModelItem.BaseParameter.SetValue

 

• pfcModelItem.BaseDimension.GetDimValue

 

• pfcModelItem.BaseDimension.SetDimValue

 

• pfcModelItem.BaseParameter.GetIsDesignated

 

• pfcModelItem.BaseParameter.SetIsDesignated

 

• pfcModelItem.BaseParameter.GetIsModified

 

• pfcModelItem.BaseParameter.ResetFromBackup

 

• pfcModelItem.BaseParameter.GetIsRelationDriven

 

• pfcDimension.BaseDimension.GetDimType

 

• pfcDimension.BaseDimension.GetSymbol

 

• pfcDimension.BaseDimension.GetTexts

 

• pfcDimension.BaseDimension.SetTexts

 

 

All the BaseParameter methods are accessible to Dimensions as well as Parameters. See the section Parameter Objects on page 257 for brief descriptions.

Note

You cannot set the value or designation status of reference dimension objects.

Apologies for copy/paste formatting

thank you ..so much

Yes, I saw those in the manual to.  It is useless without example code which the manual does not provide.  Does anybody know where to find example code for extracting dimensions from a drawing?

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags