XMCD file

XMCD file - Сообщения

#1 Опубликовано: 29.07.2010 14:36:52
Edward Ulle

Edward Ulle

20 сообщений из 182 понравились пользователям.

Группа: Moderator

Andrey,

I'm not sure if your intention is to make SMath files compatable with MathCAD through the xmcd export feature. I know it may be difficult to translate programs and if block because there is a significant difference between the way SMath and MathCAD implement these.

But I tried to import a MathCAD file with subscripts and there appears to be a difference in how they are writen in xmcd form. A simple change in format will improve portability.

SMath

a.1

MathCAD

a

Also I noticed that a value with units of ft is written by SMath and MathCAD as:


        <ml:define>
          <ml:id xml:space="preserve">a</ml:id>
          <ml:apply>
            <ml:mult />
            <ml:real>1</ml:real>
            <ml:id xml:space="preserve">ft</ml:id>
          </ml:apply>
        </ml:define>

Which doesn't readback as units of ft but variable ft.


        <ml:define>
          <ml:id xml:space="preserve">a</ml:id>
          <ml:apply>
            <ml:mult />
            <ml:real>1</ml:real>
            <ml:id xml:space="preserve">'ft</ml:id>
          </ml:apply>
        </ml:define>

With 'ft it is recognized by SMath as units ft

Perhaps the xmcd engine can see if ft is a unit or a variable.
Ed
#2 Опубликовано: 29.07.2010 15:01:01
Andrey Ivashov

Andrey Ivashov

2269 сообщений из 3729 понравились пользователям.

Группа: Super Administrator

Yes, this is well known thing. It is because xmcd files don't have any indication for the variables to check if the variable is a unit or not. On xmcd file open Mathcad just sees if the name of variable is exist in the built-in list of units and do not redefined by user - then it is a unit.

Regards.
#3 Опубликовано: 25.08.2010 17:11:30
Andrey Ivashov

Andrey Ivashov

2269 сообщений из 3729 понравились пользователям.

Группа: Super Administrator

Units issue fixed.

Changes:
  • SMath Studio now checks if it has built-in units with the specified in the xmcd-file names and checks if user didn't redefine them above. If so, then program will change type of the operand from Variable to Unit. Works like a charm
  • Also added ability to parse expressions with manually specified Units of the answer.


XMCDFileType.1_2_1.Plugin.Bin.zip (Date: 26.08.2010. File size: 16.61KB) - * To copy .dll file from archive to the "plugins" folder of SMath Studio installation directory.

Best regards, Andrey Ivashov.
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений