明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2335|回复: 1

[求助]如何用已知的Point3d类型的点画Polyline2d的多段线?

[复制链接]
发表于 2009-10-15 15:03 | 显示全部楼层 |阅读模式
已知2个Point3d类型的点 p1,p2, 请问下  怎么样以这2点为顶点画二维多段线Polyline2d
发表于 2009-10-15 16:56 | 显示全部楼层

Polyline2d.AppendVertex Method

public ObjectId AppendVertex(
    Vertex2d vertexToAppend
);

This function appends the Vertex2d object to the vertex list of the polyline, establishes the polyline as the vertex's owner, and adds the vertex the Database that contains the polyline (the polyline must be database-resident for this function to succeed). It returns the object ID of the appended vertex.

The appended vertex must be explicitly closed by the calling application after the AppendVertex() call returns.

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

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-5-21 03:40 , Processed in 0.281758 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表