🎉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

measure distance

User: "Beta"
New Altair Community Member
Updated by Beta

Hi,

 

Is there any command or method to measure distance between nodes and comps.

I tried command: hm_measureshortestdistance but it said that, enity type comp is not supported.

 

Find more posts tagged with

Sort by:
1 - 8 of 81
    User: "Altair Forum User"
    Altair Employee
    Updated by Altair Forum User

    Hi Toan,

    Did you try with hm_getdistance 

    The format is hm_getdistance entity_type id1 id2 syst_id

    User: "tinh"
    Altair Community Member
    Updated by tinh

    You cannot measure distance to a comp, because comp is a combination of nodes, elems, surfs, lines, points... you have to indicate which primary entity is, example

    hm_measureshortestdistance nodes .... surfs ....

    in that, surfs are pre-selected by *createmark surfs 1 'by comp' $the_comp_you_want_to_measure

    User: "Beta"
    New Altair Community Member
    OP
    Updated by Beta

    hi,

     

    @George P Johnson that command is used only for node-node or point-point. But thanks anyway\

    @tinh well, my model contains only temp node and comp with element, there is no such thing like surface or line. That why I have to come here, looking for a solution.

     

    User: "tinh"
    Altair Community Member
    Updated by tinh

    ok simply replace surfs by 'nodes'

    hm_measureshortestdistance nodes 1 .... nodes 2 ....

    with node 2 is marked by *createmark nodes 1 'by comp id' $your_comp_id

    User: "Beta"
    New Altair Community Member
    OP
    Updated by Beta

    I thought about that too,

     

    But it's not the distance between node and comp, it is the distance between node and nearest comp node.

    It will be wrong if the line between two nodes is not Perpendicular to comp.

     

     

    User: "tinh"
    Altair Community Member
    Updated by tinh

    Did you try with nodes->elems?

    User: "Beta"
    New Altair Community Member
    OP
    Updated by Beta

    I tried, but no use,

    The valid entities are nodes, lines, surfaces, solids and points.

    May be there is no direct way to do that.

     

     

    User: "tinh"
    Altair Community Member
    Updated by tinh

    Hi

    You can first search nodes-nodes

    Then use hwat::utils::GetClosestElement

    Then measure distance to that element