Jump to content


  • Content count

  • Joined

  • Last visited

  • Days Won


akitoguc last won the day on March 23

akitoguc had the most liked content!

About akitoguc

  • Rank

Profile Information

  • Gender
  • Country
  • Are you University user?

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. akitoguc

    Node selection panel

    In order to have user to specify direction, you can use hm_getdirectionpanel ?message? ?default?value? as well. In this panel, users don't have to select base point.
  2. That's because of mismatch of component names; names in the table has spaces taken away, but components actually has names with spaces. Sorry I'm not clear on what you wnat to do.
  3. You are right, Hao. Syntax to call a command/procedure with parameters is different between Tcl file and command file. Take parentheses and commans away from Tcl statements to port the code to command file. Regards,
  4. Hi, You have to pass parameters, separated by commas and enclosed in parentheses: *writefile("D:/Documents/temp.hm", 1)
  5. You can remove spaces from component name by: set lm [string map {" " ""} $lm] I think you can edit string in your hwtk::table widget by default. If you want to update the component name by editting its name in the table, you can do that by setting a callback procedure to a specific column as '-valueaccept' option: $w columncreate cname -text "Comp Name" -valueaccept "::SetCompName %V %P" The callback procedure can be something like below: proc ::SetCompName { table value prev } { # FIXME: add error handling code *renamecollector comps $prev $value return 1; } Hope it helps.
  6. Hi jouher, Try set values [list cid $CMP cthk {Not Assigned} cname $lm Mname {Not Assigned}]; so as to suppress variable expansion, instead of set values "cid $CMP cthk {Not Assigned} cname $lm Mname {Not Assigned}"; Regards,
  7. Hi jouher, Try this: *createstringarray [llength $i] {*}$i
  8. You have to initialize the iterator before getting data. Typically, the code becomes: qc$j GetIteratorHandle iter$j for {iter$j First} {[iter$j Valid]} {iter$j Next} { iter$j GetDataList } If you have only one node to query about value, the following code will also work: qc$j GetIteratorHandle iter$j iter$j First set datalist [iter$j GetDataList] Please give it a try.
  9. Hi Emil, One typical approach is to draw contour of the data type you want to get (e.g. Displacement) and query values with poIQueryCtrl and poIQueryIterator classes. You can find the following sample code in the user reference guide: hwi GetSessionHandle mySessionName mySessionName GetProjectHandle myProjectName set pageIndex [myProjectName GetActivePage] myProjectName GetPageHandle myPageName $pageIndex set windowIndex [myPageName GetActiveWindow] myPageName GetWindowHandle myWindowName $windowIndex myWindowName GetClientHandle myPostName set modelIndex [myPostName GetActiveModel] myPostName GetModelHandle myModelName $modelIndex myModelName GetSelectionSetHandle mySetName [myModelName AddSelectionSet element] myModelName GetQueryCtrlHandle myQueryName myQueryName SetSelectionSet [mySetName GetID] myQueryName SetQuery "node.id result.value" If you already have a set of target nodes, set its ID to the query ctrl handle. Another is to access result values directly with hwIDataFile class. Please find the sample code in the reference guide as well. Regards,
  10. Hi Vikas, In order to draw a curve on complex plot, you have to set fields of both three vectors: x, ym (magnitude) and yp (phase). Get handles of these vectors with pltICurveComplex_handle GetVectorHandle iVector which and set file and data type to each of them appropriately. Regards,
  11. Hi pohan, I'm afraid you have preserved nodes which can't be deleted as temp nodes. Try: *clearallpreservednodes Regards,
  12. Hi Jouher, You can get the location (coordinates) of the connector by hm_ce_detailget command as below: hm_ce_detailget id tripearray ce_cords Linked component IDs are obtained as: hm_ce_getlinkedentities id comps Regards,
  13. Hi Pandurang, How about using a hwtk::colorbutton widget? Regards,
  14. akitoguc

    Creation of plugins/buttons in SimLab

    Hi Roshan, If you use SimLab 14.2 or later, you can create custom windows using Python and Tkinter. It is also possible to create your own buttons on the custom Ribbon with Python and XML in SimLab 2017.2.1 or a bit earlier ones. Sorry I'm not exactly sure of the version. Regards,
  15. akitoguc

    HyperView customiztion

    Hi Toan, You can give multiple components, so the statement below is correct. build_plot SelectYComponents {"X" "Y" "Z" "MAG"} Please give it a try.