Hello,
I am using python scripting to atomize the calculation for a seepage analyses. I imported the soil volume in the structure part using the following python lines:
Volume_1=g_i.import_("structurevolume", r"\\Sestofs010\projekt\25465\13_BERA\PLAXIS-3D\Reyhaneh_test_standpipes\Drawing4_milimtere.dxf")
Soil_1=g_i.soil(Volume_1, "Material", Material3)g_i.setmaterial(Soil_1,Material3)
It imports the soil volume but it does not assign the material to the volume. Do you know how I can solve it?
Cheers,
Rey
Dear Rey,
When importing a single volume, the command line reports the following:Added Volume_1Added Soil_1
This means that when importing a volume object, PLAXIS creates two objects, the volume itself and the soil that belongs to it.
In your code, the g_i.import command is assigned to a single variable that will point to volume and not the soil. Therefore, assigning a material to the volume will not work as the material is a property of a soil object.
Try the following:
volume_1, soil_1 = g_i.import_("structurevolume", r"\\Sestofs010\projekt\25465\13_BERA\PLAXIS-3D\Reyhaneh_test_standpipes\Drawing4_milimtere.dxf")g_i.setmaterial(soil_1, Material3)