Maxsurf Modeler Advanced Automation: TransformAdvanced doesn't work

Hi, I'm student and I'm using Maxsurf Modeler Advanced Automation for my thesis. 

I'm trying to do a TransformAdvanced of my model (using Python) but it doesn't work, and in VBA example or in Manual Modeler Automation there isn't this example function.

Now what I write in my code is:

msApp.Design.Hydrostatics.InitAdvancedTransform
a=bool(msApp.Design.Hydrostatics.SetTargetLWL(4.6))
b=bool(msApp.Design.Hydrostatics.SetTargetBeam(1.1))
c=bool(msApp.Design.Hydrostatics.SetTargetPrismatic(0.6))
print(a,b,c)
msApp.Design.Hydrostatics.AdvancedTransform

Then the terminal return a: False, b:False, c:False so the SetTargets don't work.

Can you help me to solve this?

Thanks, 

Simone

Parents
  • Thanks Pat,

    I tried to do in interactive UI and it works, but in Modeler Automation doesn't work. It seem that the sequence of intructions that I use in Maxsurf Automation don't set the targetValue and search the new geometry like in interactive UI.

    Can you suggest me the sequence of instructions?

    Example:

    msApp.Design.Hydrostatics.InitAdvancedTransform      (in terminal return True)

    msApp.Design.Hydrostatics.SetTargetPrismatic(...)        (return False)

    ms.App.Design.Hydrostatics.SetTargetLWL(...)               (return False)

    msApp.Design.Hydrostatics.SetTargetBeam(...)             (return False)     

    msApp.Design.Hydrostatics.AdvancedTransform           (return True)

    This example doesn't work, I tried and retried. Maybe there are some tricks.

    Simone

Reply
  • Thanks Pat,

    I tried to do in interactive UI and it works, but in Modeler Automation doesn't work. It seem that the sequence of intructions that I use in Maxsurf Automation don't set the targetValue and search the new geometry like in interactive UI.

    Can you suggest me the sequence of instructions?

    Example:

    msApp.Design.Hydrostatics.InitAdvancedTransform      (in terminal return True)

    msApp.Design.Hydrostatics.SetTargetPrismatic(...)        (return False)

    ms.App.Design.Hydrostatics.SetTargetLWL(...)               (return False)

    msApp.Design.Hydrostatics.SetTargetBeam(...)             (return False)     

    msApp.Design.Hydrostatics.AdvancedTransform           (return True)

    This example doesn't work, I tried and retried. Maybe there are some tricks.

    Simone

Children