🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Automate Organizing Assembly

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

I have a requirement where I want to create an assembly and associated certain components ( whose ids are known ).

The list of components to go in assembly is stored in an excel sheet.

How can I do this?

 

I'm very new to hypermesh automation.

Can I create an application ( in C++ or Python )

1. which reads the excel sheet to get the components.

2, This application should invoke the Hypermesh in batchmode and issue an command to create an assembly

3. Then associate the list of components to that assembly.

 

 

Find more posts tagged with

Sort by:
1 - 3 of 31
    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    Here're my suggestion:

    • Read Excel (or CVS) sheet to get component information.
    • Create new Assemblies by using command 

    *createentity(assems,name=Assem1)
    • Move components into their Assembly according information from Excel sheet.

    *createmark(components,1) 'MyComp1'
    *assemblyaddmark(3,components,1)

    Adapt these commands *____ for TCL script. More info about TCL script programming in Hyperworks's docs.

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    Thanks for your response.

    So you mean to say that I have to write my client in TCL and make use of the *createassem ( the HM commands ).

    But my client application is going to be in C++ and how to use tcl commands in it?

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    Maybe there's API for C++. But I don't know about that.

    I wrote my scripts always in TCL for Hyperworks.