« Revit 2014 Developer Guide PDF | Main | RoomEditorApp Idling and Benchmarking Timer »

November 18, 2013

Comments

Is there any method in the API to convert back and forth from the View Scale AsValue string to the integer stored value? For example if I used a string input from user like 1/8" = 1'-0" I should get 96 to set the view scale to. Thanks!

Dear Michael,

Please RTFM on the View.Scale property:

The scale is the ratio of true model size to paper size. This property is meaningless for perspective views. When setting the scale if the scale corresponds to a predefined scale, the predefined item will be applied. Otherwise, a custom scale will be applied.

1'-0" : 1/8" = 12 : 0.125 = 96

Cheers, Jeremy.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Your Information

(Name and email address are required. Email address will not be displayed with the comment.)

Jeremy Tammik

AboutTopicsIndexSource