Automate Organizing Assembly
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.
Answers
-
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.
0 - Read Excel (or CVS) sheet to get component information.
-
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?
0 -
Maybe there's API for C++. But I don't know about that.
I wrote my scripts always in TCL for Hyperworks.
0