using Macro 479 from Script exchange in Hypermesh

Rahul_P1
Rahul_P1
Altair Employee
edited October 2020 in Community Q&A

Hello, I am trying to import a set of coordinates (x, y), where z= 0 from an original tps file format that has been converted to a csv file format. One of the Hyperworks specialist sent me a video that shows me how to use the macro translate to nodes, to first create nodes based on their coordinate location in a csv file and then create lines from the spline option and then surface similarly. I follow the video completely; but when I go to view the nodes by pressing on the magnifying glass nothing appears in the hypermesh view window. I am using Hypermesh version 11 and it seems to read the tcl script, but is unable to read the tps file format or csv file format. Perhaps something is getting lost in translation. I could really use some help with this as I am a Mac user and unfortunately all of these tps/csv files use Windows languages, which I am less familiar.

I have attached the video that was sent to me, there is no sound and I am not sure what or if I am doing wrong. I understand what must be done, but am failing with the execution. Please help as frustration levels are beginning to rise.

Cheers,
Jennifer J. Hill
2nd Year Ph.D. Student
University of Bristol, Dept. Earth Sciences

Tagged:

Answers

  • Rahul_P1
    Rahul_P1
    Altair Employee
    edited May 2015

    Hi Jennifer,

    I sincerely apologize for not getting back to you sooner,

    I have reattached the video - cloud 2 you mention, this is still the right procedure, however the macro you were using does not seem to produce the same results for you as it does here.

    Please use the attached macro instead, see the other attached video - cloud 1 on how to use it, I only demonstrate how to read in temp nodes from the csv, the rest are as in the previous video.

    1) I show the csv file (make sure this is a comma delimited file .csv as from excel) with the xyz coordinates in three columns, just add a zero entry in the z column for every row of x and y coordinates so that your coordinate information is complete.
    2) I go to file > run > tcl/tk from HyperMesh
    3) I choose the attached tcl file (Please note that you have to rename the attached file with the .tcl extension, I have named it as .jpg only so it can be attached to this post)
    4) Then I choose the same csv file I show in step 1
    5) You will see that the nodes are created, you must from here, follow cloud 2 video.

     

    Just right click on the three files one by one and then choose save ifileas, after saving each file make sure to rename the cloud 1 and cloud 2 files to the .mp4 extension and the 3ry00_create_tempnode . . . to the .tcl extension, this will be the tcl file you will read in the file > run > tcl of HyperMesh.

     

     

    In the below video, you will see how to import a set of points from a text file to evolve using the points cloud options and then use the curve from points cloud or the fit points cloud to create surfaces or lines from this point data respectively.

    I start with a text file with coordinate data, you can easily save your csv file as a text file, or copy the data from the csv file and create a text file as the one used in the video.

    Please explore evolve options using the evolve help, also explore the evolve tutorials and videos in the training center - Training Altair University > DESIGN (CAD) > Videos (Evolve)

     

    Unable to find an attachment - read this blog