Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Mattman206

  1. Mattman206

    Variable output file name

    I know that you can do what you want if you store your data using the WRITEPRN function instead of using the Excel output object. You can use the strcat() function along with the num2str() function to stitch together a filename. For example, assuming that the variable v is changing every run...
  2. Mattman206

    Finite series.... should this be easy?

    Hey Generalcarnage, As a first step in looking up anything mathematics-related, I'd try googling for the term followed by "wolfram" so that you hit the Wolfram Mathworld site. I googled for "exponential function wolfram" and came up with: http://mathworld.wolfram.com/ExponentialFunction.html...
  3. Mattman206

    Visual C++ 6.0 to write user DLL for Mathcad 2000

    I found the files I was looking for. :) I ran across them a year ago and had to find the URL again. Browse over to http://gundermann.dk/mathcad/poisson_engine.htm to see a really good example of passing and returning complex data between Mathcad and a user DLL. All of the Mathcad "pack" and...
  4. Mattman206

    Visual C++ 6.0 to write user DLL for Mathcad 2000

    I ran across a Mathcad DLL awhile back (>2 years ago) that used an efficient way of passing data between the Mathcad worksheet and the user DLL. Basically, functions were written in the worsksheet that would "pack" the data into a single array, then shove it over to the DLL, and the DLL would...
  5. Mattman206

    Visual C++ 6.0 to write user DLL for Mathcad 2000

    In my experience I have never had to use REGTOOL with the DLLs I have written. I have used both Microsoft Visual Studio 6.0 and the freeware Dev-Cpp to produce code. I agree with CAOranger about the interface being too narrow. Being able to pass string data (as opposed to arrays of...
  6. Mattman206

    Does anybody build VB as front end to Mathcad worksheet?

    I'm not sure exactly what you'd like to do. It might be possible to embed a Mathcad object into your VB app and work from there? -Matt
  7. Mattman206

    how to write multiple vectors to a single file.

    Hmmm, it works great for me. What version of Excel are you using? That code that I posted is to be copy/pasted in instead of the previous code you were using. Just wanted to clarify that . I'll take a look at it again. Matt
  8. Mattman206

    Creating AutoCAD DXF file by VB

    I've done this in VB before. You get _really_ good at text-proessing :) Here is where I found out the DXF syntax. http://usa.autodesk.com/adsk/servlet/item?id=752569&siteID=123112 I made functions for simple tasks, such as WriteCircle(Dim radius as Double, Dim x as Double, Dim y as Double...
  9. Mattman206

    how to write multiple vectors to a single file.

    Hi Ramesh, Yep, you're right, that overwrite confirmation dialog box does get a bit obnoxious after awhile. If you are sure that you'd like to overwrite the file each time, you can use this code instead: Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range) Dim...
  10. Mattman206

    how to write multiple vectors to a single file.

    Ah, that is not a problem :) Here's the beauty of the OLE-embedded Excel object. Double click on the Excel object. Notice that the menus at the top are suddenly those of Excel and not Mathcad. Go to Tools>Macro>Visual Basic Editor. In the project explorer view in the upper left, expand the...
  11. Mattman206

    how to write multiple vectors to a single file.

    Hi Ramesh, I think your best bet is to use an Excel Component. Insert>Component... Select "Microsoft Excel". Then tell it to make an empty Excel worksheet. If you have 3 columns vectors (they can be unequal in length), then make 3 inputs and 0 output. Start the first input at A1, the...
  12. Mattman206

    how to write multiple vectors to a single file.

    A much easier way would be to use the augment() function. Say you had column vectors w, x, y, and z, then you can place them side-by-side into an array with the command: A:augment(w,x,y,z) (the : symbol places the = assignment operator there) Then just writeprn(filename):A as before. You...
  13. Mattman206

    MathSof 3D component

    What version of VB are you using?
  14. Mattman206

    "Dot" symbol for Derivative

    Hi stephens248, I'm afraid that I don't think it's possible. While Mathcad does allow you to alter the display of the derivative from normal-looking d's to lazy-d's (regular derivative vs. partial derivative) it won't let you assign a dot to the derivative. Think about it -- the current...
  15. Mattman206

    How to set unit in Mathcad from VC application

    A VC application, I assume, is a Visual C (or Visual C++) application. Do you mean that you are making an external DLL? If this is the case I might be able to help, if you would provide a more detailed question. How are you currently doing your computations? -Matt

Part and Inventory Search