Inspire python code strutLattice( trimmingBody= ) problem

Enes Kurt
Enes Kurt Altair Community Member
edited April 8 in Community Q&A

Hi there,

I have a problem with trimmingBody parameter of inspire python  method inspire.strutLattice(). While using the Impilicit Modeling -> Strut tool, I can trim my implicit part by selecting the trim part from the outerbody->shell->trimmingBody section. However when I use  inspire.strutLattice() method with shell=True parameter, shell work but trim don't work. 

Example:
implicitPart.strutLattice(body=implicitPart.bodies[0], unitCellType='CORNERDIAGONAL', strutDiameter=0.004, cellSizeX=4,shell=True ,trimmingBody=XXXXX ,shellThicknessOut=0.0005)

What should XXXXX be here? How can I make my trim part in my model work here?

I have same problem with parameter combineBody.

Example:
implicitPart.strutLattice(body=implicitPart.bodies[0], unitCellType='CORNERDIAGONAL', strutDiameter=0.004, cellSizeX=4,combine=True ,combineBody=XXXXX).

Best Answer

  • Antonio Flores_21377
    Antonio Flores_21377
    Altair Employee
    edited April 8 Answer ✓

    Hi Kurt,

    the XXXXX should be the object you want to use as the trim/combine object with the lattice. For example:

    cuboid = implicitPart.createCuboid()

    implicitPart.strutLattice(body=implicitPart.bodies[0], unitCellType='CORNERDIAGONAL', strutDiameter=0.004, cellSizeX=4,combine=True ,combineBody=cuboid)

    If you need more info about how Trimming Body and Combine Body work in general here is a link:
    https://help.altair.com/inspire/en_us/topics/implicit/strut_t.htm

    Hope this helps.
    Antonio

Answers

  • Antonio Flores_21377
    Antonio Flores_21377
    Altair Employee
    edited April 8 Answer ✓

    Hi Kurt,

    the XXXXX should be the object you want to use as the trim/combine object with the lattice. For example:

    cuboid = implicitPart.createCuboid()

    implicitPart.strutLattice(body=implicitPart.bodies[0], unitCellType='CORNERDIAGONAL', strutDiameter=0.004, cellSizeX=4,combine=True ,combineBody=cuboid)

    If you need more info about how Trimming Body and Combine Body work in general here is a link:
    https://help.altair.com/inspire/en_us/topics/implicit/strut_t.htm

    Hope this helps.
    Antonio

  • Enes Kurt
    Enes Kurt Altair Community Member
    edited April 8

    Thank you so much Antonio.

    My problem not basic like "cuboid = implicitPart.createCuboid()" but I figured it out with your help. I converted my part to Implict and used implict body in method for trim. 

  • Antonio Flores_21377
    Antonio Flores_21377
    Altair Employee
    edited April 8
    Enes Kurt said:

    Thank you so much Antonio.

    My problem not basic like "cuboid = implicitPart.createCuboid()" but I figured it out with your help. I converted my part to Implict and used implict body in method for trim. 

    OK, got it.

    Only implicit can be selected for that purpose so you found it.

    Thanks for letting me know.

    Regards,
    Antonio