Get Help

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- Mathcad15 to Prime PTC 3.0 Range Function Issue

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

10-23-2014
06:46 AM

10-23-2014
06:46 AM

Mathcad15 to Prime PTC 3.0 Range Function Issue

Hi,

I am use tot Mathcad 15 and I am having issues transferring my range function over into Prime PTC 3.0. I am attaching both files for insight about the issue. The mathcad15 file works fine, but I cannot get the Prime3 file to execute anymore.

Any assistance would be greatly appreciated.

Thank you,

C.

Labels:

8 REPLIES 8

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

10-23-2014
07:04 AM

10-23-2014
07:04 AM

Re: Mathcad15 to Prime PTC 3.0 Range Function Issue

Charles Cartin wrote:

Hi,

I am use tot Mathcad 15 and I am having issues transferring my range function over into Prime PTC 3.0. I am attaching both files for insight about the issue. The mathcad15 file works fine, but I cannot get the Prime3 file to execute anymore.

Any assistance would be greatly appreciated.

Thank you,

C.

If you mean the function R, then try converting it to a programmed "if" block.

Alternatively, get rid of the "if" function and try just the boolean expression on its own - that should return 1 if the condition is true and 0 otherwise with no need for the "if".

Stuart

Sorry, haven't got Prime so I can't see what the problem is.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

10-23-2014
07:05 AM

10-23-2014
07:05 AM

Re: Mathcad15 to Prime PTC 3.0 Range Function Issue

I have tried that but it still is not working appropriately. I am puzzled.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

10-23-2014
07:13 AM

10-23-2014
07:13 AM

Re: Mathcad15 to Prime PTC 3.0 Range Function Issue

Charles Cartin wrote:

I have tried that but it still is not working appropriately. I am puzzled.

Does the plot below show the behaviour you expect in M15? If so, does it behave like this in Prime?

Stuart

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

10-23-2014
07:26 AM

10-23-2014
07:26 AM

Re: Mathcad15 to Prime PTC 3.0 Range Function Issue

In my mathcad15 file it kicks into several equation references, and outputs the graph fine. I was hoping with my files someone could look at what I am referring to since it will not work after conversion.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

10-23-2014
07:33 AM

10-23-2014
07:33 AM

Re: Mathcad15 to Prime PTC 3.0 Range Function Issue

Does your R function work on its own as shown in my picture above? If it does, that eliminates it as a direct cause of your problem (which I, unfortunately, can't see).

Has the sheet correctly set ORIGIN to 1 in Prime?

Stuart

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

10-23-2014
08:03 AM

10-23-2014
08:03 AM

Re: Mathcad15 to Prime PTC 3.0 Range Function Issue

Hi

I think that thefundamental issue is that Mathcad15 assumes that 0 matches any unit while Prime requires the units to be correct.

So for each of the functions S(theta), V(theta) , ... prime complains at adding 0 (not ft) to a value in ft.

Attached is prime 2 version & first 2 plots work.

Hope this helps

Andy

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

10-23-2014
09:03 AM

10-23-2014
09:03 AM

Re: Mathcad15 to Prime PTC 3.0 Range Function Issue

A Westerman wrote:

Hi

I think that thefundamental issue is that Mathcad15 assumes that 0 matches any unit while Prime requires the units to be correct.

So for each of the functions S(theta), V(theta) , ... prime complains at adding 0 (not ft) to a value in ft.

Attached is prime 2 version & first 2 plots work.

Hope this helps

Andy

You are absolutely right. Because Prime uses dynamic unit checking its most of the time necessary to state the unit even if the value is 0. Its good habit anyway to do so. Mathcad 15 used static unit check and so was able to determine the correct unit from the context. Dynamic checking is necessary to be able to get values of different dimensions into one matrix, for example. So while it may have it drawbacks when converting older sheets, its a step foreward.

Attached the working sheet in Prime3 format. I have highlighted the regions which needed the addition of the unit.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

10-23-2014
09:38 AM

10-23-2014
09:38 AM

Re: Mathcad15 to Prime PTC 3.0 Range Function Issue

Thanks, something so simple and yet trivial. I truly appreciate everyone's input, I cannot thank everyone enough.