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

RE: Using a MACRO to change specific reference file logical names

$
0
0

Thank you for this. What determines the default logical name of the files?

I am using Microstation through a specific DOT user and i'm not sure if the default logical names are stored anywhere. In order to run a macro I have to open the files in a nonDOT user microstation (default).

From your post i made this:

Sub SetLogNameAsDefLogName()

   Dim att As Attachment

   For Each att In ActiveModelReference.Attachments

       If att.AttachName <> "0014132SIGN.dgn" Then

          att.LogicalName = "SIGN"

          att.Rewrite

       End If

   Next

End Sub

But it changes every reference to logical name SIGN. Is there a way to do this for every specific reference file listed below (logical names are correct in picture)?


Viewing all articles
Browse latest Browse all 7260

Trending Articles



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