Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: [V8i VBA] Help to improve code to update reference logical names.

$
0
0

Ryan,

If your file names are consistent with a set of standard suffixes you may be able to use wildcards in the if statement. Here is an untested snippet:

if att.AttachName like "*TB.dgn" or att.AttachName like "*Align.dgn" then
    att.LogicalName = att.DefaultLogicalName
    att.Rewrite
End if  


Dan


Viewing all articles
Browse latest Browse all 7260

Trending Articles



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