哈哈,我自己已经解决。
Sub GetLocaleMediaName() Dim Layout As ACADLayout Dim mediaNames As Variant Dim X As Integer Set Layout = ThisDrawing.ModelSpace.Layout Layout.RefreshPlotDeviceInfo mediaNames = Layout.GetCanonicalMediaNames() For X = LBound(mediaNames) To UBound(mediaNames) Debug.Print Layout.GetLocaleMediaName(mediaNames(X)) Next End Sub |