Can I Plot global axis?

Can I Plot Global Axis by &picture command??

According to moses manual, there are some options for &picture

-XG WIND, X MIN, X MAX
-YG WIND, Y MIN, Y MAX
-ZG WIND, Z MIN, Z MAX
-CONNECTORS, :CONE SEL
-POINTS, :PNT SEL, D MIN, D MAX
-ONE VERTEX, :1V SEL
-RATIO, BEG RATIO, END RATIO
-STRESS, BEG RATIO, END RATIO
-CDR, BEG RATIO, END RATIO
-NAMES, :NAME SEL
-BODY, :BODY SEL
-PART, :PART SEL
-PIECE, :PIECE SEL
-PARENT, :PART SEL
-CATEGORY, :CAT SEL
-ENDS, :END SEL(1), ..., :END SEL(4)

But I cannot distinguish which one show me Global axis

How can I plot Global axis?

Parents
  • I don't think you can. A workaround is to draw the coordinate system as a separate body. The enclosed macro does this and allows you turn on and off the coordinate system. Hope it helps. 

    &macro coordsys -on on -off off
    &local currbody = &body(current)
    
    &describe body coord
    medit
      ~coord tube 100 10
      ~arrow cone 400 1 10
      &set coor_len = 5
      &set arr_len = 0.5
    
      *coordor 0 0 0
      *coordx %coor_len 0 0
      *coordy 0 %coor_len 0
      *coordz 0 0 %coor_len
      *xarrow %coor_len+%arr_len -reference *coordor *coordx
      *yarrow %coor_len+%arr_len -reference *coordor *coordy
      *zarrow %coor_len+%arr_len -reference *coordor *coordz
    
      beam xaxis ~coord -nuse @ -use #dead -color red *coordor *coordx
      beam yaxis ~coord  -nuse @ -use #dead -color green *coordor *coordy
      beam zaxis ~coord  -nuse @ -use #dead -color blue *coordor *coordz
    
      beam xarr ~arrow -nuse @ -use #dead -color red *coordx *xarrow
      beam yarr ~arrow -nuse @ -use #dead -color green *coordy *yarrow
      beam zarr ~arrow -nuse @ -use #dead -color blue *coordz *zarrow
    end
    
    &if %on &then
      &describe activity -body -active coord
    &endif
    
    &if %on &then
      &describe activity -body -inactive coord
    &endif
    
    &describe body %currbody
    &endmacro
    

    Answer Verified By: kim hyun joong 

Reply
  • I don't think you can. A workaround is to draw the coordinate system as a separate body. The enclosed macro does this and allows you turn on and off the coordinate system. Hope it helps. 

    &macro coordsys -on on -off off
    &local currbody = &body(current)
    
    &describe body coord
    medit
      ~coord tube 100 10
      ~arrow cone 400 1 10
      &set coor_len = 5
      &set arr_len = 0.5
    
      *coordor 0 0 0
      *coordx %coor_len 0 0
      *coordy 0 %coor_len 0
      *coordz 0 0 %coor_len
      *xarrow %coor_len+%arr_len -reference *coordor *coordx
      *yarrow %coor_len+%arr_len -reference *coordor *coordy
      *zarrow %coor_len+%arr_len -reference *coordor *coordz
    
      beam xaxis ~coord -nuse @ -use #dead -color red *coordor *coordx
      beam yaxis ~coord  -nuse @ -use #dead -color green *coordor *coordy
      beam zaxis ~coord  -nuse @ -use #dead -color blue *coordor *coordz
    
      beam xarr ~arrow -nuse @ -use #dead -color red *coordx *xarrow
      beam yarr ~arrow -nuse @ -use #dead -color green *coordy *yarrow
      beam zarr ~arrow -nuse @ -use #dead -color blue *coordz *zarrow
    end
    
    &if %on &then
      &describe activity -body -active coord
    &endif
    
    &if %on &then
      &describe activity -body -inactive coord
    &endif
    
    &describe body %currbody
    &endmacro
    

    Answer Verified By: kim hyun joong 

Children
No Data