00x集体——cad 中DB(database)对象—— vba实现

03-03 阅读 0评论
  Database 对象

外部参照块的内容。

00x集体——cad 中DB(database)对象—— vba实现,00x集体——cad 中DB(database)对象—— vba实现,词库加载错误:未能找到文件“C:\Users\Administrator\Desktop\火车头9.8破解版\Configuration\Dict_Stopwords.txt”。,使用,访问,方法,第1张
(图片来源网络,侵删)

VBA 类名

AcadDatabase 

创建方法

不可使用 

访问途径

Block.XRefDatabase 

00x集体——cad 中DB(database)对象—— vba实现,00x集体——cad 中DB(database)对象—— vba实现,词库加载错误:未能找到文件“C:\Users\Administrator\Desktop\火车头9.8破解版\Configuration\Dict_Stopwords.txt”。,使用,访问,方法,第2张
(图片来源网络,侵删)

该对象提供对外部参照块的访问。只有IsXRef属性为TRUE的块才适用。

方法

CopyObjects  

属性

Application

Blocks

00x集体——cad 中DB(database)对象—— vba实现,00x集体——cad 中DB(database)对象—— vba实现,词库加载错误:未能找到文件“C:\Users\Administrator\Desktop\火车头9.8破解版\Configuration\Dict_Stopwords.txt”。,使用,访问,方法,第3张
(图片来源网络,侵删)

Dictionaries

DimStyles

ElevationModelSpace

ElevationPaperSpace

Groups

HandleToObject

HasExtensionDictionary

Layers

Layouts

Limits

Linetypes

ModelSpace

ObjectIDToObject

OwnerID

PaperSpace

PlotConfigurations

Preferences

RegisteredApplications

TextStyles

UserCoordinateSystems

Viewports

Views  

 

Sub Example_SetDatabase()
    ' The following code saves the color and linetype settings
    ' of the current layer. It uses the SetDatabase method to
    ' associate the current drawing database with the
    ' LayerStateManager object. 
    Dim oLSM As AcadLayerStateManager
    ' Access the LayerStateManager object
    Set oLSM = ThisDrawing.Application. _
       GetInterfaceObject("AutoCAD.AcadLayerStateManager.16")
    ' Associate the current drawing database with LayerStateManager
    oLSM.SetDatabase ThisDrawing.Database
    oLSM.Save "ColorLinetype", acLsColor + acLsLineType
End Sub

 


免责声明
本网站所收集的部分公开资料来源于AI生成和互联网,转载的目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。
文章版权声明:除非注明,否则均为主机测评原创文章,转载或复制请以超链接形式并注明出处。

发表评论

快捷回复: 表情:
评论列表 (暂无评论,人围观)

还没有评论,来说两句吧...

目录[+]