Jump to content

ronroc

Members
  • Content Count

    1
  • Joined

  • Last visited

  1. my macro looks something like this *Id("HyperWorks v8.0") *BeginDefaults() *EndDefaults() {templex_off} *BeginPlotMacros() *DefinePlotMacro(macro_300, curve3, numbins, minrange, maxrange, ex) *Label("Rainflow (Curve); Eq Cycles (Note)") *Parameter(curve3, "Curve", CURVE) *Parameter(numbins, "Number of bins", SCALAR) *Parameter(minrange, "Minimum range", SCALAR) *Parameter(maxrange, "Maximum Range", SCALAR) *Parameter(ex, "Enter -> 19620 for 2g or 2230 for 500lb", SCALAR) *HideInputCurve(FALSE) *CreateCurve(TRUE) *Set(X, "rainflow(curve3.Y, numbins, minrange, maxrange, 0, ((maxrange-(minrange))/numbins))") *Set(Y, "rainflow(curve3.Y, numbins, minrange, maxrange, 3, ((maxrange-(minrange))/numbins))") *Set(Y2, "") *Set(LABEL, "{rnflw(rainflow(curve3.Y, numbins, minrange, maxrange, 0, ((maxrange-(minrange))/numbins)),rainflow(curve3.Y, numbins, minrange, maxrange, 3, ((maxrange-(minrange))/numbins)),ex)}") *CreateNote(FALSE) *BeginText() *EndText() *Set(NOTE_POS, "0", "0") *Set(NOTE_ATTACHMENT, "View") *EndDefine() *EndPlotMacros() Question - What statements do I need to include such when I run this macro, it creates the curve and changes the x axis label to my requirements for this plot window only?
×
×
  • Create New...