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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Displaying Feet and Inches in a Drawing (Creo 2.0)

wjamieson
4-Participant

Displaying Feet and Inches in a Drawing (Creo 2.0)

Hi all,

I currently have a drawing with all dimensions in inches. However, one of the dimensions is rather large, and I would like it to display in both feet and inches in the drawing. For Example: instead of displaying 420 7/16, I would like it to display 35' - 0 7/16", or something along those lines. Is there a way to do this in Creo? All help is appreciated! FYI: I am currently using Creo 2.0.


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
1 ACCEPTED SOLUTION

Accepted Solutions
dnordin
15-Moonstone
(To:wjamieson)

See PTC Document CS21479; This will change every dimension though.

  • Set config.pro options
    • create_fraction_dim yes
    • dim_fraction_format std


https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS21479&posno=1&q=feet%20and%20inches&ProductFamily=Creo%20%26%20Pro%2FENGINEER%7CCreo%20Simulate%20%26%20Pro%2FMechanica&source=search

Regards,

Dan N.

View solution in original post

5 REPLIES 5
dnordin
15-Moonstone
(To:wjamieson)

See PTC Document CS21479; This will change every dimension though.

  • Set config.pro options
    • create_fraction_dim yes
    • dim_fraction_format std


https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS21479&posno=1&q=feet%20and%20inches&ProductFamily=Creo%20%26%20Pro%2FENGINEER%7CCreo%20Simulate%20%26%20Pro%2FMechanica&source=search

Regards,

Dan N.

Along with config options from Daniel add drawing option use_major_units as yes

Thank you. Any way to do this for just one dimension in the drawing?

It will apply to all dimensions in drawing, however you can try changing other dimensions to Decimal from dimension properties.

One perhaps horrible or maybe not way to do this would be to

(1) Use relations to calculate the feet, inches combo dimension and assign it to a string. It'll be a somewhat complicated set of relations, especially to calculate the fractional inch bit, but it's something like

txtDimStuff = itos ( dimX / 12 ) + "ft - "

if ( floor ( dimX - 12 * floor ( dimX / 12 ) > 0 )

txtDimStuff = txtDimStuff + itos ( dimX - 12 * floor ( dimX / 12 ) )

else

txtDimStuff = txtDimStuff + "0"

endif

txtDimStuff = txtDimStuff + "-"

txtDimStuff = txtDimStuff + <<fractional stuff here>>

(2) On the drawing, create a drawn dimension, then change it so instead of an actual dimension, it says

@o&txtDimStuff

That should show the calculated number in the format you want.

Sorry I didn't do the algorithm for the fractional conversion, but time crunch and all that.

Top Tags