I checked your code and your template project. it is because of your solver type and the simulation format. the code provided by you works fine if you change the solver or problem and you will see it will work.
I checked your code and your template project. it is because of your solver type and the simulation format. the code provided by you works fine if you change the solver or problem and you will see it will work.
What should I change in the simulation format?
I need to use the integral equation solver (it's faster).
When I do the post processing by hand it's work perfectly with my configuration.
Hi,
Regarding the CST documentation, the data exported as a whole. So for this kind of solver you can not filter them with ASCIIExport. If you need to have something special you should work with I/O file functions.
When I do the post processing by hand it's work perfectly with my configuration.
The result is the field evaluated in randoms [x,y,z] if you execute the macro.
I don't understand the matter.
I'm trying to execute the macro with the .SetPointFile() and get the same result that executing the post processing by hand.
But right now even writting the .SetPointFile option I get the same result as if i don't write it.
The result is the field evaluated in randoms [x,y,z] if you execute the macro.
I don't understand the matter.
I'm trying to execute the macro with the .SetPointFile() and get the same result that executing the post processing by hand.
But right now even writting the .SetPointFile option I get the same result as if i don't write it.
Hello there, did you manage to solve your problem? I'm facing the same problem as you! I'm giving the point list however CST exports the fields on random points
Hello there, did you manage to solve your problem? I'm facing the same problem as you! I'm giving the point list however CST exports the fields on random points
The integral solver seems to not be compatible with the ASCIIExport options that I used. However, I found another option that solves the problem. I'm leaving you an example of how to do it.
Dim xlist(2) As Double, ylist(2) As Double, zlist(2) As Double
xlist(0) = 1
xlist(1) = 2
ylist(0) = 1
ylist(1) = 3
zlist(0) = 2
zlist(1) = 3
SelectTreeItem("2D/3D Results\E-Field\ e-field (f=30) [pw]")
With ASCIIExport
.Reset
.Mode("FixedWidth")
.FileName(GetProjectPath("Project") & "\export_field.txt")
.SetPoints(xlist(), ylist(), zlist())
.Execute
End With