🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Plot Macro and Templex function to cut selected curve at max X value

User: "Sebastian_Karp"
Altair Employee
Updated by Sebastian_Karp

Overview

This macro adds a new curve based on a user selected curve, by cutting it at the max X value.

Pre-Requisite

Plot Macros can be loaded through preference files, as the example attached.

 

To reference the preference file, the user has to invoke following menu from the HyperWorks GUI:

image

 

From here, the preference file has to be

1. Registered 

2. Selected in the preferences list

3. Loaded 

 

image

 

 

Once successfully loaded, the label will appear in bold font:

image

 

Usage/Installation Instructions

From the Line Chart Ribbon, the Math Icon can be used to access the Plot Macros.

 

Select "cut curve at max x" and select the curve the calculation should be done on.

Selection can be done by either click into the field next to "Curve" label in the panel, and then use SHIFT+LMB to pick the curve graphically.

Or, use RMB on the "Curve" label in the panel and "select curves" in the appearing pop-up, to select curves from a tree.

 

Execute with Apply and see a curve created using only values up to max X of original curve:

image

Find more posts tagged with

Comments

No comments on this post.

Share projects with the Community

Share your models, scripts, workspaces, and more with the Altair Community.
New Exchange Project