🎉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

Drag nodes from free edges

User: "sanket_patil"
Altair Community Member
Updated by sanket_patil

Hi all,

 

How to get nodes from free edges and drag it in particular direction using tcl?

 

Regards,

Sanket

Find more posts tagged with

Sort by:
1 - 4 of 41
    User: "tinh"
    Altair Community Member
    Updated by tinh

    use *createmark nodes 'by comp name' ^edges

    for dragging, use panel 2d>drag to try, and you can find relevant commands in command.tcl file 

    User: "sanket_patil"
    Altair Community Member
    OP
    Updated by sanket_patil

    @tinhThanks for quick reply.

     

    But i want to drag nodes of two edges only as shown below,

     

    <?xml version="1.0" encoding="UTF-8"?>image.thumb.png.bd9f9d7b747c6f41363ce0ad11145497.png

     

    How to do that? 

     

    Regards,

    Sanket

    User: "tinh"
    Altair Community Member
    Updated by tinh

    There is not a direct way.

    You have to detect 4 sides of the square and then select 2 opposite sides. I think you are beginner so it is so tough with you.

     

    And you will ask how to detect...

    You must compare angle between each pair of edges and record the node as corner if angle is not 180D

     

    And you will ask how to compare angle...

    You must make some loops to calculate angles, sort to see which ones not 180D

     

    And you will ask how to make a loop...

    :rolleyes:/emoticons/default_rolleyes.gif' title=':rolleyes:' />

     

     

    You should learn hypermesh and basic tcl first. Then write some sample codes, see how it works, divide your work into small tasks, write tcl procs for each task, combine them to form a full program.

    And, you should not learn tcl right if you are not good at hypermesh yet. Tcl macro simulates how you act with HM.

     

    User: "sanket_patil"
    Altair Community Member
    OP
    Updated by sanket_patil

    @tinhHello Tinh,

     

    Thanks for your valuable suggestions. I will definitely learn Tcl/tk.

     

    I would like to tell you that i can select now required nodes which query i asked you above.

     

    Regards,

    Sanket