Only 1/4 of the model is calculated. How to display the full model with scripts?

Feng Zhu
Feng Zhu Member Posts: 5
First Comment
**
edited July 17 in Structures


I can manually follow the Settings below to display the full model, these operations are not recorded, how can I script these operations?

Best Answer

  • Erik Kostson
    Erik Kostson Member, Moderator, Employee Posts: 276
    50 Answers 100 Comments Second Anniversary 25 Likes
    ✭✭✭✭
    edited July 17 Answer ✓

    Hi

    Think these are internalobjects (might and might not always work) - see here say how to set first num. repeats (1) as 2:

    model = ExtAPI.DataModel.Project.Model
    sym=model.AddSymmetry()
    sym.InternalObject.ExpansionNumRepeat_1=2
    sym.InternalObject.ExpansionDelX_1=0.4
    sym.InternalObject.ExpansionMethod_1 = 1 # 1 for half 0 for full
    

    etc.
    use dir(sym.InternalObject) to see all properties/methods etc.

    Thank you

    Erik

Answers

  • Feng Zhu
    Feng Zhu Member Posts: 5
    First Comment
    **

    Hi, Erik, thanks for your quick response.