Creating collector for Hyperview

Vikas Kumar_22189
Vikas Kumar_22189 Altair Community Member
edited October 2020 in Community Q&A

Dear All,

 

Can we create Element/Node  collector for Hyperview tcl\tk Script.

Like we do in Hypermesh.

 

image.png.cce967f0bdb8176ac61f66bd15cfbc00.png

 

                                        Or Like below one

 

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

 

 

 

Please Help me. If it is possible please provide some basic script to run in Hyperview.

@tinh Waiting for your response.

 

Thanks,

Vikas Kumar

 

Answers

  • tinh
    tinh Altair Community Member
    edited June 2018

    Hi Vikas

    you can use command

    ::post::Collector

     

    refer to document: <install_dir>/hw/tcl/hw/collector/docs/Collector.html

     

    set this variable to '1' to see how it works:

    set ::post::collector::p_debug 1

  • Vikas Kumar_22189
    Vikas Kumar_22189 Altair Community Member
    edited November 2020

    Dear @tinh ,

     

    I was using this script. Please let me know were i need to do changes.

    It is working fine in Hypermesh.

     

    Regards 

    Vikas

    Unable to find an attachment - read this blog

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2018

    hi any one tell me, what are the advantages is there in hpermesh version17 over version 14?

  • tinh
    tinh Altair Community Member
    edited June 2018

    hi any one tell me, what are the advantages is there in hpermesh version17 over version 14?

     

    You can see it in Release Notes of hm2017

  • tinh
    tinh Altair Community Member
    edited June 2018

    Dear @tinh ,

     

    I was using this script. Please let me know were i need to do changes.

    It is working fine in Hypermesh.

     

    Regards 

    Vikas

     

     

    example 

    proc demo args {

       set w .demo

       destroy $w

       toplevel $w

       wm transient $w .

       ::post::Collector $w.c entity 1 ::post::SingleEntityCollector \

       -callback ::post::SelectionSetCollector \

       -withreset 1 -withtype 0 -type Nodes

       set b1 [::ttk::button $w.b1 -text OK -command p_Proceed]

       set b2 [::ttk::button $w.b2 -text Cancel -command

    1. ]

       pack $w.c -side left -anchor nw -padx 20 -pady 10

       pack $b2 $b1 -side right -anchor ne -padx 2

    }

    Unable to find an attachment - read this blog