Jump to content

akitoguc

Members
  • Content Count

    26
  • Joined

  • Last visited

  • Days Won

    1

akitoguc last won the day on October 20 2018

akitoguc had the most liked content!

About akitoguc

  • Rank
    Beginner

Profile Information

  • Gender
    Male
  • Country
    Japan
  • Are you University user?
    No

Recent Profile Visitors

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

  1. Hi, PowerPoint can't identify the file path includeing slashes as separators. Try: $present Open [file nativename "D:/Presentation2.pptx"]
  2. Another solution you can try is the following: hm_createmark nodes 1 "by id only" $NodeList; hm_createmark nodes 1 advanced reverse; hm_createmark elems 1 "by nodes" [hm_getmark nodes 1]; hm_getmark elems 1;
  3. With -s option, you can start HyperWorks with the window of the specified dimension and location. For example, you can run hw.exe as following: hw.exe -s 800x600+0+0
  4. To get images of fixed dimension, you can use hwISession CaptureScreenToSize command. In addition, you should not run hw.exe in batch mode to create screen images. Though it might works, it depends on your hardware and driver conditions. Instead of running in batch mode, run hw.exe in GUI mode and close the session by hwISession Close in the end.
  5. 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.
  6. 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.
  7. 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,
  8. Hi, You have to pass parameters, separated by commas and enclosed in parentheses: *writefile("D:/Documents/temp.hm", 1)
  9. 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.
  10. 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,
  11. 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.
  12. 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,
  13. 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,
  14. Hi pohan, I'm afraid you have preserved nodes which can't be deleted as temp nodes. Try: *clearallpreservednodes Regards,
×
×
  • Create New...