CFD Online Discussion Forums

CFD Online Discussion Forums (
-   ANSYS Meshing & Geometry (
-   -   [DesignModeler] change import by scripting (

dragonwei September 17, 2012 05:08

change import by scripting
Hello everyone,

I need to change the import by using scripting, but it's not replace all model, just only the import I had imported.

Does anybody know about that command?

another question:
I know how to create import(the command is ag.gui.CreateImport("fname")),
but this command can't be used in journals in WB,
it always says "ag.gui is a null not a object".

I want to write DM scripting in journal, like this:

system1 = GetSystem(Name="FFF")
geometry1 = system1.GetContainer(ComponentName="Geometry")
geometry1.SendCommand(Command = """
DM scripting; """)

Please tell me how to solve them.

Thank you very much.

All times are GMT -4. The time now is 16:33.