Skip to main content
1-Visitor
May 1, 2014
Question

Arbortext IsoDraw reimport txt from XML file with macro

  • May 1, 2014
  • 1 reply
  • 3297 views

Hi all,

I would like to create a macro to reimport the text (with Object ID) present in an XML file into a .iso file.

My knowledge of IML is very basic (but at the end I manage to create a macro to apply the ID and export into XML ).

Please have a look at the attached and let me know if somebody out there can help me?

Thank you in advance

Max

1 reply

12-Amethyst
May 1, 2014

To apply the xml against the iso file you just need to open it while having the iso file open.

Untested, but this should work. The space in your file name might be an issue though.

#-------------------------------------------------------------------------------------------------

Macro Import_XML

Define noExt as String

Define XML as String

noExt= StripExt(ActiveDoc.Path)

XML = noExt + '.xml'

Open XML

End Macro

#-------------------------------------------------------------------------------------------------

mcardella1-VisitorAuthor
1-Visitor
May 1, 2014

Thank you very much Trevor,

this macro works for 1 file at the time, but unfortunately I work with a lot files at the time.

Usually I have 40 files ISO in 1 folder and 40 files XML in another folder, any tips?

Cheers

Max

mcardella1-VisitorAuthor
1-Visitor
May 6, 2014

Hi Trevor,

Sorry for delay, the macro works better but it is not fully automatic. (I have to select each xml file every time ), what I need is have automatic re-importation. Any suggestion to solve this?

Thanks in advance

Max