Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
Here's a useful collection of scripted components and controls. They allow you to do things in Mathcad that are otherwise difficult or impossible. These also serve as examples for someone that wants to write their own. I wrote some of these, but not all of them.
See also here for functions for date and time handling that are based on scripted components:
Date Calendar and Time functions.mcd
See also here for how to save the state of controls and scripted components:
Saving the state of controls.zip
Updates:
Versions 2 through 10: Various things I didn't bother to tell anyone about
Version 11, Jan 04 2011: Added a button to execute a series of shell (a.k.a. DOS) commands. There was already a function for this, but not a button.
Version 13, Feb 28 2013. Added scrolbars and sliders that can be either linear or logarithmic.
Version 14, Nov 14 2014. Improved the dynamically filled listboxes to take a scalar input for a single element list.
Richard
Get runtime error when opening.
Which version of Mathcad are you using?
Does it give an error immediately you open it, or only when you scroll down to a certain point?
Mine automatically crashes when opening. Using Mathcad 14.
Just to be clear, it's the Mathcad file, not the zip file, that is the problem, correct?
I just uploaded the same file to the Collab. Could you try downloading it from there and let me know if it's OK.
Have just downloaded from the Collab with the same result - Runtime error upon opening.
OK. Thanks. A few more questions:
Which flavor of Mathcad?
When you open it you should get a message asking if you want to disable the scripted objects. Does it get this far when opening? If so, what happens if you disable all the components?
Mathcad Version 14, It does not get to the message about scripted objests.
Which version of 14?
Apologies, Mathcad, version 14.0.0.163 [build 701291152]
That may be the problem. Download and install the service release for 14.0 M020 if you are a single user or 14.0 M030 (NOT M035 which has a very bad bug!) if you are an Enterprise user.
Using M14 14.0.0.63
Don't even get to the message crashes immediately.
Thanks Richard, that was the problem, upgraded and all is right with the world.
You need to get your rather draconian sounding IT group to install the service release. While they are at it, they should install Filzip. It's free, even for commercial use.
do you need some VBscript runtime libraries for this to work. or excel?
Using Mathcad 14.0.0.163
You need to have the latest update for M14 - M14 020 I think.
Mike
do you need some VBscript runtime libraries for this to work. or excel?
Using Mathcad 14.0.0.163
No. VBscript comes with XP and later versions of Windows. If you are using 14.0 download and apply the latest service release. If you are a single user that is M020, if you are an Enterprise user it is M030 (do NOT get M035 - it has a very bad bug!)
Richard, thanks for the document Mathcad!
Richard have you recently added any features?
Mike
What do you mean by "recently"? I just added one component to the end of the document that gets the current window parameters. See Ambient properties of the MathCad environment
What do you mean by "recently"? I just added one component to the end of the document that gets the current window parameters. See Ambient properties of the MathCad environment
That must be it then. I had a notification that you had modified the component. Sorry, lazy of me asking instead of looking.
Mike
Sorry, lazy of me asking instead of looking.
If I modify it and upload a new version the modification may not be at the end of the document (for example, I might put a new component next to other similar components) so figuring it out by looking might not be so easy. Maybe in future I'll be less lazy, and write a comment about what the change was
Maybe in future I'll be less lazy, and write a comment about what the change was
I'll keep being lazy then
Mike
I'll keep being lazy then
I think you just got the better of that deal
the script from Extra Components.mcd.zip has modified my computer.
The menu of practically all applications have been masked.
what is this?
Is that a virus?
either it had the virus or caught one, that's terrible, I advise the readers not to download it.
kar
That is not possible. I just downloaded the copy that is here, and the size is identical, to the byte, to the one I uploaded. So nothing has been hacked. There is nothing in any of those scripts that can modifiy your computer (beyond writing some text files to your hard drive, anyway). Which script do you believe changed something?
There are also a great many other people that have downloaded that file since February, and if anything in it could modify computer settings I'm sure they would have posted something about that.