🎉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

reading node grid comments

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

hi,

I need to mark all the nodes with comment. Iam using  hm_getentityvalue for finding the comments. For a biw it taking almost 2.5 mins to read.Is their any other method so that I can reduce the time taken.

Find more posts tagged with

Sort by:
1 - 9 of 91
    User: "tinh"
    Altair Community Member
    Updated by tinh

    hi,

    I need to mark all the nodes with comment. Iam using  hm_getentityvalue for finding the comments. For a biw it taking almost 2.5 mins to read.Is their any other method so that I can reduce the time taken.

     

     

    Hi, it costs much time to loop through nodes and filter which is commented. looping by tcl need to be avoid always. instead, let hm C code do that (much faster):

    *createmark nodes 1 'equal to value' \$COMMENT_OPTION 2

    => will select all nodes that has comment option by 'Show in menu/export'

     

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

    hi tinh

    ,thanks for the reply.but I need to mark the GRIDS COMMENTED . OPTION BY HIDE IN MENU/EXPORT.

    I have attached the snapshot for more clarity.

     

    REGRDS,

    JAMIE

    <?xml version="1.0" encoding="UTF-8"?>QUERY_3.PNG

    User: "tinh"
    Altair Community Member
    Updated by tinh

    oh. I see.

    let's check it tomorrow

    sorry i misunderstand that it is hm comment

    User: "tinh"
    Altair Community Member
    Updated by tinh

    Hi

    try *createmark nodes 1 'equal to value' \$GRID_COMMENT_OPTION 1

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

    thanks tinh, this is working in case of full model. what if we want to mark displayed nodes with grid comments on .

    User: "tinh"
    Altair Community Member
    Updated by tinh

    hi

    use createmark elems 2 displayed and markintersection elems 1 elems 2 to filter displayed nodes

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

    hi tinh,

    *createmark nodes 1 'equal to value' \$GRID_COMMENT_OPTION 1

    *createmark nodes 2 'displayed'

    *markintersection nodes 1 nodes 2

     

     

    how do I get the intersection node ids

     

    regards,

    JAMIE

    User: "tinh"
    Altair Community Member
    Updated by tinh

    use hm_getmark nodes 1

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

    thanks tinh. appreciate for your support.