Skip to main content
1-Visitor
July 24, 2020
Question

PTC Mathcad Prime 6.0 and Autocad

  • July 24, 2020
  • 1 reply
  • 3397 views

Hello there,

I have a drawing in autocad. Is it possible to connect both mathcad prime and autocad so that if i change my value in mathcad then the value in autocad change?

 

Thanks.

1 reply

21-Topaz II
July 24, 2020

Hi,

 

There is essentially two ways to do this.

 

From the help reference.

 

"The PTC Mathcad Prime Application Programming Interface (API) is an automation interface that provides a mechanism for communicating with PTC Mathcad Prime from within another Windows application, including a custom stand-alone application that users write."

 

Autocad has an Application Programming Interface (API) as well.

 

You can write say a C++ or C# program that uses both API's to do what you require.  This is the first method.

 

Autocad uses a DXF drawing interchange format that is essentially a large text file with one piece of information on one line.  It is possible in both Mathcad 15 and Prime possible to read, write, and process DXF text files.

This is the second method.

 

Regards

Terry

 

 

 

 

 

1-Visitor
July 27, 2020

Hi Terry,

Do you mind show me how to use the second method you mentioned? I already look at Mathcad and don't know where to add a dxf file.

 

Thanks.

21-Topaz II
July 27, 2020

Hi,

I have looked at the records I have kept between moving employers.  To keep intellectual property means you can't take files when you leave. I thus have no examples to hand of the second method and it will take some time to produce an example.

 

Cheers

Terry