Jump to content

maiducdai

Members
  • Content Count

    6
  • Joined

  • Last visited

About maiducdai

  • Rank
    Newbie

Recent Profile Visitors

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

  1. Hi all of you guys, Actually Im dealing with writing a script for solving a MBD problem using MotionView. Does anyone who know how to access the "Show Curve..." option from Curve panel by using mdl command ? (I mean in Motionview, what is the mdl command in order to access the "Show Curve..." option in the Curve panel ?, actually this option help you to plot the given data for an input curve) your help will be appreciated Thanks
  2. Dear tinh, by following your code & advices, finally my problem has solved. Im greatly appreciated your kindness help, especially spending your time and effort for making the demo script. again, thanks you very much for your kindness help. best regards Mai Duc Dai
  3. Dear tinh, First Im greatly appreciated your kindness reply. Actually, I tried many times for making the textbox with scrollbar on the browser tab, however it still can not work properly ... here I attached my tcl code, if you dont mind please help me to add scrollbar so that it work properly. your help will be highly appreciated best regards MDD ------------------------------ lappend auto_path{<path to the folder containing hwt folder>} package require hwt; #to import the hwt package set tabName "System_Parameters"; hw browser delete $tabName; hw browser add $tabName end [hw browser get frame $tabName]; hw browser select $tabName; set frm [ hw browser get frame $tabName ]; set bclose [::hwt::CanvasButton $frm.bclose [::hwt::DluWidth 8] [ ::hwt::DluHeight 8 ] \ icon msclose iconH 1 iconV 1 \ relief flat help "Exit Program" takefocus 1 \ command "hw browser delete $tabName" ]; pack $bclose -side top -anchor ne -padx 5 -pady 5; # -----please help me to add scrollbar with the box----------- set box [hwt::AddCanvasBox $frm withbothScrolls] pack $box -anchor nw -fill both -expand 1 -padx 4 -pady 4; #------------------------------------------------------------- # buttons Load_Initial_Model, Run set btn1 [button $frm.btn1 -width 16 -height 2 -text {Load Initial Model} -command {Open_Model}]; pack $btn1 -side left -padx 22 -pady 5 -anchor nw; set btn2 [button $frm.btn2 -width 16 -height 2 -text {Analysis Setting} -command {Analysis}]; pack $btn2 -side left -padx 16 -pady 5 -anchor nw; ----------------------
  4. Hi all of you guys, Actually Im trying to make a browser tab with scrollbar (because in my situation, there are many widgets in the browser tab so we dont have enough space for them), however I could not make it work properly...!!! If anybody who know how to do it, please help me to solve the problem. here I attached my code for your convenience your help will be appreciated Thanks ------------------------------------ # making tab in the browser proc Make_TAB { } { lappend auto_path{<path to the folder containing hwt folder>} package require hwt; #to import the hwt package set tabName "System_Parameters"; hw browser delete $tabName; hw browser add $tabName end [ hw browser get frame $tabName ]; hw browser select $tabName; set frm [ hw browser get frame $tabName ]; set bclose [::hwt::CanvasButton $frm.bclose [::hwt::DluWidth 8] [ ::hwt::DluHeight 8 ] \ icon msclose iconH 1 iconV 1 \ relief flat help "Exit Program" takefocus 1 \ command "hw browser delete $tabName" ]; pack $bclose -side top -anchor ne -padx 5 -pady 5 ; #---- how can I make the scrollbar work properly ??? -------- set scrb [scrollbar $frm.scrb -command "$frm yview"] pack $scrb -side right -anchor nw; #------------------------------------------------------------ set labelWidth 27; set entryWidth 15; #section label set section1 [label $frm.section1 \ -text "SYSTEM PARAMETERS" \ -justify left \ -anchor nw \ -font [hwt::AppFont]]; pack $section1 -side top -anchor nw; hwt::AddPadding $frm -side top -height [hwt::DluHeight 5]; # frame1 set frame1 [frame $frm.frame1]; pack $frame1 -side top -anchor nw; hwt::AddPadding $frame1 -side left -width [hwt::DluWidth 15]; set entry11 [ hwt::AddEntry $frame1.entry11 \ -label "Mass (kg)" \ -labelWidth $labelWidth \ -entryWidth $entryWidth \ -text "" \ -textvariable mass_rocket \ -validate real \ -state normal \ -withoutPacking]; pack $entry11 -side top -anchor nw; set entry12 [ hwt::AddEntry $frame1.entry12 \ -label "Force (N)" \ -labelWidth $labelWidth \ -entryWidth $entryWidth \ -text "" \ -textvariable mass_b2 \ -validate real \ -state normal \ -withoutPacking]; pack $entry12 -side top -anchor nw; hwt::AddPadding $frame1 -side bottom -height [hwt::DluWidth 380]; # buttons Load_Initial_Model, Run set btn1 [button $frm.btn1 -width 16 -height 2 -text {Load Initial Model} -command {Open_Model}]; pack $btn1 -side left -padx 22 -pady 5 -anchor nw; set btn2 [button $frm.btn2 -width 16 -height 2 -text {Analysis Setting} -command {Analysis}]; pack $btn2 -side left -padx 16 -pady 5 -anchor nw; } # end proc Make_TAB # main code set isFirst True; Make_TAB; # end main code ---------------------------
  5. Hi all of you guys, Actually Im dealing with a variable-mass MBD model (i.e. the mass of a body in our model is a function of time) but Im not sure whether Motionview can do it ? If anybody who know how to parameterize the mass of a body in motionview, please help me to solve the problem. your help will be appreciated Thanks
  6. Hi all of you guys, Im a mechanical engineer, I am using Motionview for MBD analysis. Im wondering how to make a movie which has capture frame moving together with a moving body? let's imagine an animation of moving of a train on railways then we want to make a movie such that the train's body always being on the screen while the railways moving backward. your help will be highly appreciated thanks all
×
×
  • Create New...