Skip to main content
18-Opal
July 8, 2024

Advanced Controls Crash Course

  • July 8, 2024
  • 7 replies
  • 19404 views

Check out the replay for the Mathcad Advanced Controls Crash Course!

 

 

Presented by Vipul Trivedi ( @VipulT ) of the Mathcad Application Engineer team and PTC's internal expert on Advanced Controls, he walks you through...

  • What Advanced Controls are and why they're so powerful and interesting
  • How to use them in Mathcad Prime 10
  • Common use cases and examples for each of the six control types (List Boxes, Checkboxes, Text Boxes, Radio Buttons, Sliders, and Buttons)

You'll walk away much more confident in your ability to implement these scripted objects, and you'll also have access to not only the replay, but the worksheet examples with the pre-built scripts that you can copy-paste for your own projects.

This webcast is intended for people who are already familiar with Mathcad Prime, but are not already familiar with scripting.

 

The worksheet .zip attached to this Community post are Mathcad Prime 11 worksheets. Certain changes made to Prime 11 changed how scripts are processed, and these Prime 11 worksheets accommodate that to maintain the same intended functionality. Also included in the .zip are Python versions.

7 replies

DJNewman18-OpalAuthor
18-Opal
August 20, 2024

Reminder that this starts in a few minutes. It'll last the whole two hours.

DJNewman18-OpalAuthor
18-Opal
August 23, 2024

The replay is live right now on mathcad.com.

The worksheets are available for download from the same page the video-on-demand is, as well as other useful resources.

 

(You can't attach .zip files in Mathcad Tips, so you'll have to head over to mathcad.com and get the worksheets from there!)

4-Participant
December 30, 2025

Replying to DJNewman

I downloaded the worksheets. They work fine in Prime 10.0, but don't work properly in Prime 11.0.0 or 11.0.1. When you open them, they initially work perfectly, but as soon as you change any of the initial oil types, the values in Type get strange. The original values in Type from top to bottom for WTI - Gasoline are "11", 4, and "Gasoline". As soon as I change anything and go back they become "10", 4, and "". After that all of the output in the 3rd vector position are "". 

 

Any thoughts on what's going on?

DJNewman18-OpalAuthor
18-Opal
December 31, 2025

Replying to DD_10442446

 

Mathcad Prime 11 had some... undocumented changes made to how scripts work. Vipul is/was investigating them.

 

I'll follow up with him and see if he has an updated for-Prime-11 List Box example. (And if others need updates, too.) I'd like to then replace what's been published with those.

4-Participant
December 31, 2025

Thank you! Looking forward to getting this figured out. In the meantime, I’ll go back to v. 10.

DJNewman18-OpalAuthor
18-Opal
February 9, 2026

Replying to DD_10442446

We've finally attached the .zip with Python and JScript worksheets for all six controls.

(to the Community tips post itself)

DJNewman18-OpalAuthor
18-Opal
March 12, 2026

Replying to DJNewman

The Advanced Controls Crash Course did not migrate from mathcad.com to ptc.com, so we instead uploaded the entire 2-hour event as one YouTube video that doesn't require passing PTC any personal information to watch.

Enjoy!