vba 如何引用偏移后的对象
ygxygx1978
ygxygx1978 Lv.2
2008年11月24日 14:31:33
只看楼主

Dim xfdoffset As VariantDim objline As AcadLineDim objline1 As AcadLineDim xfdcd As Doublexfdcd = dk1 - d3xfdoffset = objline .Offset(xfdcd)xfdoffset(0).Layer = "0"Set objline1 = xfdoffset(0)objline1是偏移后的直线,这样对不对

Dim xfdoffset As Variant
Dim objline As AcadLine
Dim objline1 As AcadLine
Dim xfdcd As Double
xfdcd = dk1 - d3
xfdoffset = objline .Offset(xfdcd)
xfdoffset(0).Layer = "0"
Set objline1 = xfdoffset(0)
objline1是偏移后的直线,这样对不对
免费打赏

相关推荐

APP内打开