mikhail
(Mikhail)
October 19, 2018, 7:58pm
1
I am making a text object and everything works well, but I cannot find a way to set modelspace scaling.
rs.AddText(text, textDotLoc, height=0.063, font="Arial", font_style=0, justification=131073)
Is there a way to do that inside of python?
Thank you!
socken
October 19, 2018, 8:07pm
2
Hi,
This commande disables the scaling:
rs.Command("-_DocumentProperties _AnnotationStyles _ModelSpaceScaling=_Disabled LayoutSpaceScaling=Disabled _EnterEnd")
I think you can twirk it to fit your needs
Best regards
mikhail
(Mikhail)
October 19, 2018, 8:16pm
3
@socken would that disable scaling for just the object I am creating , or the whole file? I can’t turn off the whole file scaling as I need that for other things…
socken
October 21, 2018, 9:26am
4
Hi,
Yes that would disable the scaling for the whole document. Then this isn’t what you need.
Best regards
mikhail
(Mikhail)
October 25, 2018, 10:58am
5
Is there maybe way to apply a specific style that would have model and layout scaling already configured?
I do have very specific styles in my file that I could call by name…
Any suggestions?
Still looking for some workaround
Alain
(Alain Cormier)
November 9, 2018, 12:13pm
7
@mikhail
Is adding the style to the object like this what you need?
id = rs.AddText(text, textDotLoc, height=0.063, font="Arial", font_style=0, justification=131073)
rs.DimensionStyle(id, "a style name")
mikhail
(Mikhail)
November 9, 2018, 2:54pm
8
@Alain ,
Might be, I’ll give this a try.
Thanks!
Hello, I’ve got the same problem,
when I add Text with python it add text with a space scaling at 10.0, why it do that? why not at 1.0?