Quantcast
Channel: PTC Community : All Content - Programming & Extending Mathcad
Viewing all 680 articles
Browse latest View live

.Net User EFI interface


Scrap Prime 4 and give us Mathcad 16

$
0
0

The only thing that people seem to like about Mathcad Prime is its better unit handling. If my assertion is true and it is also true that Prime and MC15 are still using the Mathcad 12 kernel why not just incorporate the better unit handling in Mathcad 15?  What other benefits does Prime have over MC15? If PTC. believes a MS ribbon interface is cool that's fine and they are at liberty to have ribbon version which they can use internally if that keeps them happy. So here is my solution for PTC. Get 2 good programmers for 2 months. One programmer works on incorporating the new unit handling into MC15 and the other works on incorporating the new numerical solvers. Allow a month for quality assurance and ship Mathcad 16 on August 1 2014. Every Mathcad user is happy PTC is happy also because it can continue to play with its toy version of Mathcad Prime internally and let the users concentrate on what should be in the Mathcad 17. Afterall without us there is no Mathcad, yet PTC never asks its users what they want in the program. Are PTC software builders or demolishes users have the right to decide who they are employing, we pay their wages, after all we are PTC clients but I think they have forgotten that. It's about time they put away their toys and grow up.

 

I Hope others feel the same.

 

regards Mark

Solve equation

$
0
0

Hello,

 

please scroll down to the red arrow inside my sheet. i am trying to solve for the varaible Cna, but i get an error message. Thanks!

Formatting list boxes from script

$
0
0

How would I go about formatting a list box based off of the output of another list box.

 

I am trying to change the background color of a list box = "B" based on the output of another list box "A". list box "A" has two options the first being 1 and the second being 2. I want the background of list box "B" to change to the color yellow when option 1 in list box "A" is chosen and stay white when the option 2 is chosen.

Formatting list boxes from script

$
0
0

How would I go about formatting a list box based off of the output of another list box?

 

I am trying to change the background color of a list box = "B" based on the output of another list box "A". list box "A" has two options the first being 1 and the second being 2. I want the background of list box "B" to change to the color yellow when option 1 in list box "A" is chosen and stay white when the option 2 is chosen.

Error

$
0
0

Hi,

 

Can anyone help me fix this error..?

 

thanks in advance...

Formatting list boxes from script

$
0
0

How would I go about formatting a list box based off of the output of another list box?

 

I am trying to change the background color of a list box = "B" based on the output of another list box "A". list box "A" has two options the first being 1 and the second being 2. I want the background of list box "B" to change to the color yellow when option 1 in list box "A" is chosen and stay white when the option 2 is chosen.

Calculate interior values between key values,

$
0
0

Hello,

 

please scroll down in my sheet until you see the red arrow, where i placed my question. i  will calculate the main or key values, but i also need to calcuate these  values at incremental values in between as shown in screen shot of an excel sheet inside Mathcad sheet


Plotting X,Y, and Z data in 3D

$
0
0
I have a 300 x 3 matrix in which the columns are x, y and z coordinate data. I want to plot this data using the 3D scatter plot. So far I have found that the only way to do this is to make a vector out of each column and then enter the three vectors in surrounded by a () in the placeholder of the 3D plot.

My question is what is the easiest way to make the three vectors from the matrix? Also, is this approach the only one that I can use.

Appreciate any help.

Mike

Reading Different Files Into Mathcad

$
0
0
I got ambitious and put together a variant class that seems to pass data between various programs fairly well, so I modified my File Input component so that it can be extended to different file types by creating a user dll that reads a file into a table. Anyone have any file types they would like added? I intend to add full jcmp support. Anyone have source code for reading these files?

I'm also toying with several other options.

1. Change the display so it looks like y:=ReadFile(Dummy.txt). This was originally a quick and dirty exercise to get my data into Mathcad. If others are using it, I ought to make it a little more professional looking.

2. I've thought about a preview option for browsing files, but I don't have a good plan for implementing it. The original design of the component was to allow it to set up a template for reading a bunch of the same type of files. The only real interaction after setting up the formatting parameters was changing the file name.

3. There are some real problems with using VB for a control. I've thought about how to fix these by going to VC, but the solutions I had for win98 won't print on win XP computers. The things I know about are that VB controls on Mathcad 2001 and earlier will crash Mathcad if either background colors or fonts are changed. Has anyone else seen any other issues?

4. Any other ideas?

Robert

Using Minimize in Program Loop

$
0
0
I am analysing a system defined by a set of parameters, and I need to analyse it for an array of these parameters.

I want to use Minimize to find an array of minimum values of a function defined by the array of parameters. I also want to use the result found on one set of parameters as an initial guess for the next use of Minimize on the next set.

My original worksheet is too long to post (and to calculate), but I have attached an 11.2a sheet that I think shows the essence of what I want to do. If it's unclear, please say so.

Please don't worry about the details of the problem given here: it's a madeup example that might not work all the way through. It's the principle of how to do it that I'm after.

I'd be grateful for any assistance.

Jon

Combining different matrixes into one table, Iteration to convergence

$
0
0

Hello,

 

in the attached sheet i have two question. please scroll down until you see the first  red arrow for the first question, and scroll more until you see the second arrow for the second question.

 

Q1. is it possible to combine different matrixes and display the values in a table with the heading of each column being the variable?

 

Q2. Iteration until convergence. i have done  10 individual  iterations to get the result to converge. Is it possible to do some loop to automate the iterations in one step. please look in my sheet that describe my iteration process.   

Help

$
0
0

Hi..

 

Can anyone help me writing these equations in Mathcad...?

Iterations to convergence

$
0
0

Hello,

 

i need help on how to iterate until convergence. please scroll down in my sheet until you see the red arrow where i begin the iterations. Right now i have 10 individual iterations, and checking the end for convergence. i dont know how to do in mathcad where you can automate the iteration until convergence, and let it decide how many iteration it needs until convergence. there are two values that each need to converge . one for moment and the other for delta. a ratio of 1.001 will be fine for convergence. Thanks!

How to generate several outputs from a loop?

$
0
0

Hey!

 

I'm wondering if there is a way to get more than one output from a program in Mathcad Prime? In my case it is a for loop and I would like to output both a message and a parameter (1-by-2 vector).

 

For example:

 

test = "Error in:" [3,5]        ...or something like that.

 

Where "test" is the function I'm using.

 

 

Thanks in advance!


Summation using with multiple matrices variables

$
0
0

In the attached worksheet I have a summation that works with one matrix variable but when I add another matrix variable it doesnt work. Do I need to use something instead of the list command? Thanks

MATHCAD API: Limit on size of matrix when assigning values

$
0
0

Hello there.

 

I am currnelty explorign the use of the mathcad API for generating a matrix of data from another application.

 

I am using VS2010 Professional and VB.NET. I am using the mathCAD  API for doing this. I am using MathCAD V14.0.2.5

 

It appears that there is a limit on the size of the matrix one can create through using the setelement mehtod of the MatrixValue class.

 

My original matrix was of size 6800 rows x 21 cols. When i try and view this matrix or assign this matrix to a new variable MathCAD shows no vlaue for this matrix. Teh matrix is composed of strings - i ahve to use strings as the data is of a variant/object type i.e. strings/doubles/integers. It seemed to crash when I got ro row 480. For rows less than this i was able to view the matrix in mathcad and assign the matrix to a another user defined valriable as well as extract elements for given indices.

 

As a test I simply ran a loop for a matrix of 480 rows x 18 columns and assigned an integer value of 1 for every elment. In this instance I was able to get mathcad to read the matrix; hwn trying to display it gave the following:

 

POINTSMatrix:=BigMatrix{480x19}

 

If I increase the range to 800x19 I cannot get any value for the matrix. If I use 600x19 it still works

 

Is there a limit on teh maximum size of a matrix that can be assigned using the SetElement method? IS there a better more efficient way fo assigning data to a very large matrix in mathcad using its API? I want to use the Automation API and not manually do this using table.s

 

My code for this is given below, I am using ealry bound code, hence Option Explicit = true, and using Ctype statements:

 

 

 

Dim mcdObject AsNewObject

Dim mcdPointsMatrix As Mathcad.MatrixValue

 

Dim mcdMatrixNew As Mathcad.MatrixValue

 

 

 

 

mcdMatrixNew = CType(Interaction.CreateObject("Mathcad.MatrixValue"), Mathcad.MatrixValue)

 

Try
mcdPointsMatrix = CType(mcdWorkSheet.GetValue("Points"), Mathcad.MatrixValue)
bMatrixExists = True
Catch ex As Exception

bMatrixExists = False

end Try

For i As Integer = 600 - 1 To 0 Step -1
For j As Integer = 18 To 0 Step -1
  If bMatrixExists = False Then
       mcdMatrixNew.SetElement(i, j, 1)
  Else
       mcdPointsMatrix.SetElement(i, j, 1)                   
  End If
Next
Next

If bMatrixExists = False Then
mcdWorkSheet.SetValue("Points", mcdMatrixNew)
Else
mcdWorkSheet.SetValue("Points", mcdPointsMatrix)     
End If

    

 

 

 

 

 

 

 

Mathcad License Server on a linux machine

$
0
0

Hi,

 

is there anyone running a Mathcad license sever on a linux machine?

I could get linux files:   lmgrd, lmutil and ptc_d

but could not get or create the   license.dat

 

Has anybody managed to do this?

 

If there is no way to create a linux-license-file, I have to make a windows-machine act as a licanse server :-(

 

Best regards and thanks in advance,

 

Guido Harneit

 

(Sorry if this is off topic, but I couldn't find a licensing group)

Adding spacings to create running dimensions

$
0
0

Hello,

 

please attached sheet. i would like to be to add the spacing dimensions and create running dimensions.  Thanks!

SRS to Time - An mcad programme available?

$
0
0

To all

 

I am looking for the backbone of a mcad sheet to convert Shock Spectrum Response (SRS) back to a Time history. Does anyone out there know where one can find such thing?

I have found some MathLab script(s) but nothing (so far) in mcad format

 

Thanks

 

Regards

 

JXB

Viewing all 680 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>