cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

This value must be a scalar

TR_9781963
9-Granite

This value must be a scalar

I have used units but when writing the function to excel I am getting error. Please help 

ACCEPTED SOLUTION

Accepted Solutions

Hi

Here is the file working.

The problem is B1 is defined in your sheet as a range variable. 

Looks in PTC Prime exactly like a vector.

To change it to a vector just use the hack of putting an equal sign after it to show it.

Capture.JPG

View solution in original post

5 REPLIES 5
Raiko
17-Peridot
(To:TR_9781963)

hi,

 

WRITEEXCEL can't do units. See excerpt from mathcad help.

I suggest to divide the matrix you'd like to export with "UnitsOf(variable)" before writing to Excel.

 

Regards

 

Raiko

 

Werner_E
25-Diamond I
(To:TR_9781963)

The problem is not WRITEEXCEL as you correctly strip the units when you use it.

The problem is that B1 is a range, not a vector, and so it can't be used as the argument for function A,tR.

Find attached two ways to deal with that situation.

Werner_E_0-1685018948295.png

 

Raiko
17-Peridot
(To:Werner_E)

You're right. I didn't notice it.

Werner_E
25-Diamond I
(To:Raiko)

It doesn't matter anyway. If you look at all the questions this user already had posted it seems, that he isn't really interested in the answers - at least he seems to think that it isn't necessary to come back, close the threads and maybe comment the answers given.

Hi

Here is the file working.

The problem is B1 is defined in your sheet as a range variable. 

Looks in PTC Prime exactly like a vector.

To change it to a vector just use the hack of putting an equal sign after it to show it.

Capture.JPG

Announcements

Top Tags