VBA Code (to insert custom properties) not working on 64bit machines

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
We have written some VBA code to insert custom properties into the iproperties for sheet metal components (Sheet blank area, component blank area and stock code number). This code has been working on our 32bit machines for several years.
We have recently upgraded two of our machines (the rest to follow shortly) to Windows XP 64bit, in doing so we have noticed that the VBA code does not work.
We have resolved the issue so that the code will now work with both 32bit and 64bit machines.
My question is; Can you mass replace the VBA code in all of our old drawings (that contain the old code) so that when opened with the new 64bit machines, the code will work and will update accordingly.
Note: i did not write this code and am a complete novice in VBA!
see attached for the old and new code - the bit that has changed is:
(old code) Set oFlatPattern = ThisDocument.ComponentDefinition.FlatPattern
(new code) ThisDocument.InventorDocument.InventorDocument.ComponentDefinition.FlatPattern
I hope this makes sense
Thanks in advance
Regards
Will