Simlab Script and Automation

Skull
Skull Altair Community Member
edited October 2020 in Community Q&A

I can create a macro to record a process of creating solid pretension on a bolt. But i wish to run that macro on different bolts of different length and different position in coordinate system. Basically completely different bolts. For that i need to define different planes for each bolt.

 

And i can define planes by using face groups by using one of the simlab utility functions. 

 

But i cant figure out a way to incorporate that utility function to create planes in the macro that i have recorded.

Attached image for better understanding.

 

I wish to insert the variables 'PlanePoint1, PlanePoint2, PlanePoint3', which i get from utility function into the place of numerical value of 'PointA' and so on.

 

Is it possible? 

 

<?xml version="1.0" encoding="UTF-8"?>Capture.thumb.PNG.fd86f2347551430668ceb822a9ff0e6f.PNG

Answers

  • Rahul Rajan_21763
    Rahul Rajan_21763 New Altair Community Member
    edited September 2017

    Please refer attached sample script placed in help document.

    <?xml version="1.0" encoding="UTF-8"?>Sample Script.JPG

  • Skull
    Skull Altair Community Member
    edited September 2017

    Please refer attached sample script placed in help document.

    <?xml version="1.0" encoding="UTF-8"?>Sample Script.JPG

    Thanks, that works.

     

    i was trying without ' ' .

     

    Where can i find such attached sample scripts. Are these available in 14.1?

  • Rahul Rajan_21763
    Rahul Rajan_21763 New Altair Community Member
    edited September 2017

    Yes this is available with 14.1 as well.Press F1:Project:Scripting:Script utilities:Define plane from group:Then click on sample script

    <?xml version="1.0" encoding="UTF-8"?>1-Sample Script.JPG