请教!VBA加载线型载不出来!谢谢
<p>用下面程序加载!好像只能加载ACAD_ISO10W100,别的线型都加载不出,哪位大侠指点指点</p><p> Dim T As AcadLineType 'CAD线型,用于遍历已加载的线型<br/> Dim B As Boolean '用于标记检查已加载线型的结果<br/> For Each T In ThisDrawing.Linetypes '检查是否已加载中心线的线型<br/> If StrComp(T.Name, "ACAD_ISO12W100", 1) = 0 Then<br/> B = True<br/> Exit For<br/> End If<br/> Next<br/> If B = False Then ThisDrawing.Linetypes.Load "ACAD_ISO12W100", "acad.lin" '在要求的线型未找到时加载该线型<br/> layerObj.Linetype = "ACAD_ISO12W100" '按要求定义中心线线型<br/> layerObj.color = acYellow</p>
页:
[1]