Quantcast
Channel: PTC Community: Message List
Viewing all articles
Browse latest Browse all 12488

Re: [VBA] Read and write a text region

$
0
0

Hello François,

 

I've attached files to show the progress that I've managed so far in this direction.

 

The table of contents was a direct copy from this forum.

 

The xl sheet can re-write a given region of XML code but it is difficult to manage.

If you have a template with a tagged region it is possible to change just about anything , BUT it is also possible to corrupt everything so caution is advised.

The worksheet will allow the selection of any mathcad file , the current macro is specific to the A.XMCD file attached and will save a changed worksheet under a new name

 

The Label position file was an attempt to modify items from within mathcad , there are many fields in the XML structure (look in the help> Developer reference under the automation interface).

I didn't find enough information to make it very useful but still a good start point.

The program can read the XY coordinates for any region & the hope was that these could be modified.

So far they appear to be read only.

This is totally dependant on the interface that PTC allow.

 

It can read the XML code for math regions & this (in theory) should have read write permission.

So far. however I haven't managed to access any text content.

 

Hope this is of some use to you,  If you find any improvements please post them as I will be interested to find new way to control the way that mathcad works

 

Regards

Andy


Viewing all articles
Browse latest Browse all 12488

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>