Jump to content
Sign in to follow this  
ronroc

create plot using macro, rename axis of new plot window only

Recommended Posts

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?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...