jcs98xD
Newbie level 4
Hi,
I'm having a problem with a vba macro that I'm creating in CST Studio Suite Version 2023.05.
I'm trying to export a 2D/3D Result with the ASCIIExport Object with the next code:
SelectTreeItem("2D/3D Results\E-Field\e-field (f=" & freq*1e-9 & "GHz) [" & name_field_source_a & "]")
With ASCIIExport
.Reset
.FileName(outgoing_modal_expansion_folder & "\H_expansion_" & name_field_source_a & "E.txt")
.SetPointFile(incoming_modal_expansion_folder & "\" & fname_spher_grid)
.Execute
End With
I'm sure that the paths are good.
The file is being created but ignores the pointfile provided. Even trying another options like:
With ASCIIExport
.Reset
.FileName(outgoing_modal_expansion_folder & "\H_expansion_" & name_field_source_a & "E.txt")
.Mode ("FixedNumber")
.StepX (12)
.StepY (12)
.StepZ (8)
.Execute
End With
It's also ignoring the steps. It seems like it's always taking the default options.
Am I doing something wrong?
Thanks in advance.
I'm having a problem with a vba macro that I'm creating in CST Studio Suite Version 2023.05.
I'm trying to export a 2D/3D Result with the ASCIIExport Object with the next code:
SelectTreeItem("2D/3D Results\E-Field\e-field (f=" & freq*1e-9 & "GHz) [" & name_field_source_a & "]")
With ASCIIExport
.Reset
.FileName(outgoing_modal_expansion_folder & "\H_expansion_" & name_field_source_a & "E.txt")
.SetPointFile(incoming_modal_expansion_folder & "\" & fname_spher_grid)
.Execute
End With
I'm sure that the paths are good.
The file is being created but ignores the pointfile provided. Even trying another options like:
With ASCIIExport
.Reset
.FileName(outgoing_modal_expansion_folder & "\H_expansion_" & name_field_source_a & "E.txt")
.Mode ("FixedNumber")
.StepX (12)
.StepY (12)
.StepZ (8)
.Execute
End With
It's also ignoring the steps. It seems like it's always taking the default options.
Am I doing something wrong?
Thanks in advance.