Subscribe to this thread
Home - General / All posts - Setting Drawing Styles via Script
Lorne

655 post(s)
#08-May-17 13:01

I can manually set a drawing's point, line and area styles. I can check the applied styles by right-clicking on the Drawing in the Project Pane, then clicking Properties (picture attached). Can I set those properties via a script?

Attachments:
Drawing_Properties_Styles.jpg

tjhb
10,094 post(s)
#08-May-17 18:33

Lorne,

I think the only way to do that currently is by addressing and modifying [mfd_meta]. The object model doesn't give direct access to a Drawing and its properties.

Lorne

655 post(s)
#09-May-17 00:06

Thanks Tim

tjhb
10,094 post(s)
#09-May-17 00:56

There may be plans to add object model access to properties, I don't know. That's not necessary in Radian where "everything is a table". Everything can be controlled by SQL--including SQL executed from a script via Database.Run.

Dimitri


7,413 post(s)
#09-May-17 08:48

It could just a matter of semantics. A drawing's properties are the values in mfd_meta. Modify those values and you modify the properties. As you point out, everything is a table and in this case that table is mfd_meta.

adamw


10,447 post(s)
#11-May-17 11:37

Just in case, we added means to access component properties easily in 9.0.161. See items 246 through 249 in the build notes. The documentation is coming.

Manifold User Community Use Agreement Copyright (C) 2007-2021 Manifold Software Limited. All rights reserved.