For some reason I did not get a notification when you replied.
Yes, it is possible to change object surface automatically with VS. The easiest way is to use/modify the example script “Attributes\AssignAreaElmentsWithFile.pyp” and change the rules based on your requirements. If you do not know where to find the example script, please check the attached Example.png.
What the example script does is to change 2D/3D visual representations of existing elements in Allplan based on some rules (e.g. attribute values), which are pre-defined in an external csv/excel table.
In your case, we just need some rules for changing surfaces. As an example, I created some basic rules (check attached Rules.csv) for applying different .surf to different columns in Allplan based on their value of the attribute “Material” (check attached AssignSurface.gif).
There is currently no detail information about how a rule should look like in that table. But you can check the csv file from the example script to help understand it a little bit… That csv file can be found together with the example script.
P.S. the example script will change all active elements, which meets the rules in that table. To avoid unnoticed changes, please try that with a drawing file or in a project, which is for testing only.
Product Owner – Visual Scripting, Allplan GmbH