Change the ViewPort Scale

Change the ViewPort Scale

sundaram1087
Advocate Advocate
732 Views
1 Reply
Message 1 of 2

Change the ViewPort Scale

sundaram1087
Advocate
Advocate

Hi 

 

I am writing the script to create the drawings. In that i had an requirement for updating the VP Scale by script

I can able to change the VP Scale by manually but am not able to update it by command line method.  Please refer the following images for your reference

I have created the Custom Scales  like "SR-S0" in view port (Ref-Image1)

Initially it was set to SR-SO and then based on requirement i need to change that to SR-S1

For Change the scale i used the command "cannoscale". By using that command it scale get changed but the view port not updated. For that i need click the option that "Click to Synchronize" to update the view scale

 

Please suggest your thoughts how to overcome this issue

 

 

 

sundaram1087_0-1608716284613.png

 

sundaram1087_1-1608716945419.png

 

 

Thanks & Regards

Shunmugasundaram

 

0 Likes
733 Views
1 Reply
Reply (1)
Message 2 of 2

Sea-Haven
Mentor
Mentor

I have the advantage of working in metric so this part is easy the viewport has a property "Customscale".

For metric customscale= 4 is 1:250 ie 1000/250 = 4.

 

So shoud be able to set the customscale to a imperial value. Make sure viewport is not locked as will will not work again lock is a property.

 

: DUMPIT
Select entity: 
; IAcadPViewport 7a039e70 : TeighaX Interface of rectangular object created in paper space that display view
;
; Property values :
;
;   Application (RO) = #<VLA-OBJECT IAcadApplication 000000002D686F00>
;   ArcSmoothness = 1000
;   Center = (420.0 297.0 0.0)
;   Clipped (RO) = 0
;   Color = 256
;   CustomScale = 4.0
0 Likes