乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 46|回复: 2

如何给多段线增加节点

[复制链接]

9

主题

25

帖子

4

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
61
发表于 2004-4-15 15:04:00 | 显示全部楼层 |阅读模式
回复

使用道具 举报

26

主题

589

帖子

10

银币

中流砥柱

Rank: 25

铜币
693
发表于 2004-4-15 19:20:00 | 显示全部楼层
使用AppendVertex添加节点。
回复

使用道具 举报

72

主题

2726

帖子

9

银币

社区元老

Rank: 75Rank: 75Rank: 75

铜币
3014
发表于 2004-4-15 19:51:00 | 显示全部楼层
怎么都不喜欢看帮助?这是帮助里的示例:
  1. Sub Example_AppendVertex()
  2.        ' This example creates a polyline in model space.
  3.        ' It then appends a vertex to the polyline.
  4.       
  5.        Dim plineObj As AcadPolyline
  6.        Dim points(0 To 14) As Double
  7.       
  8.       
  9.        ' Define the 2D polyline points
  10.        points(0) = 1: points(1) = 1: points(2) = 0
  11.        points(3) = 1: points(4) = 2: points(5) = 0
  12.        points(6) = 2: points(7) = 2: points(8) = 0
  13.        points(9) = 3: points(10) = 2: points(11) = 0
  14.        points(12) = 4: points(13) = 4: points(14) = 0
  15.                
  16.        ' Create a light weight Polyline object in model space
  17.        Set plineObj = ThisDrawing.ModelSpace.AddPolyline(points)
  18.        ZoomAll
  19.        MsgBox "Append the vertex 4, 1, 0.", , "AppendVertex Example"
  20.       
  21.        Dim newVertex(0 To 2) As Double
  22.        newVertex(0) = 4: newVertex(1) = 1: newVertex(2) = 0
  23.        plineObj.AppendVertex newVertex
  24.        ZoomAll
  25.        MsgBox "The vertex 4, 1, 0 as been appended.", , "AppendVertex Example"End Sub
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-15 16:16 , Processed in 0.336104 second(s), 58 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表