Disable ModelSpaceScaling and LayoutSpaceScaling via C# code

Is there a way to check and uncheck ModelSpaceScaling and LayoutSpaceScaling via C# code rather than using

RhinoApp.RunScript("_-DocumentProperties AnnotationStyles ModelSpaceScaling=Disabled LayoutSpaceScaling=Disabled _Enter _Enter", true);

Hi @TobyLai,

Use:

RhinoDoc.ModelSpaceAnnotationScalingEnabled

and/or

RhinoDoc.LayoutSpaceAnnotationScalingEnabled

– Dale

1 Like

Thanks Dale.

I tried to look for ModelSpaceScaling or ModleSpace in the API and couldn’t find it, but when I search for ModelSapceAnnotationScaling, then there is result. Strange…