直接在程序里用offset就能实现外扩内扩阿~~~
sub sOffSet()
dim objPLine as AcadPolyLine
dim aPnt(0 to 8) as double
aPnt(0)=0:aPnt(1)=0:aPnt(2)=0
aPnt(3)=100:aPnt(4)=0:aPnt(5)=0
aPnt(6)=100:aPnt(7)=100:aPnt(8)=0
set objPLine=thisdrawing.modelSpace.addPolyLine(aPnt)
objPLine.offset 10
objPLine.offset -10
end sub
这是二次开发帮助里的...