Home -
General /
All posts - Setting Drawing Styles via Script
|
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
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|