cancel
Showing results for 
Search instead for 
Did you mean: 

Obtaining drafting view scale

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Hello everyone!

 

How can I obtain the scale of the drawing view? I tried the .Scale property of the DraftingView object, but it returns different kind of scale, more like zoom. I can read the VWSCALE attribute and get the scale from there, but maybe it is still possible directly from the DraftingView object?

4 REPLIES

Re: Obtaining drafting view scale

Esteemed Contributor
Esteemed Contributor

Have you tried recording a journal of setting the view scale for a driawing view?

That should point you to the correct code to read the scale

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be e-steemed than e-diseaseled


Re: Obtaining drafting view scale

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

I did, but I could not utilize that code for my purpose. It looks like a code to set a scale, not to read it. Am I wrong?

Re: Obtaining drafting view scale

Phenom
Phenom

{drafting view}.Style.General.Scale

 

You can query or set the scale with this property.

Re: Obtaining drafting view scale

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Thank you!