Bentley Communities
Site
Search
User
Site
Search
User
Welcome to Bentley Communities
Bentley's Communities
Bentley 中国优先社区
Cancel
Bentley 中国优先社区
◆ 二次开发(MicroStation编程, ProjectWise编程等)
怎样用C#将封闭的线串或复杂链等(LineStringElement、ComplexStringElement、ArcElement、EllipseElement等等)生成形状(Shape)?
Sign In
Bentley 中国优先社区 requires membership for participation - click to join
State
Verified Answer
+1
person also asked this
people also asked this
Replies
8 replies
Subscribers
81 subscribers
Views
843 views
Users
0 members are here
怎样用C#将封闭的线串或复杂链等(LineStringElement、ComplexStringElement、ArcElement、EllipseElement等等)生成形状(Shape)?
Offline
巴燕 史
over 1 year ago
如题
Top Replies
Online
Yongan.Fu
Fri, Jul 22 2022 3:06 AM
in reply to
巴燕 史
+1
verified
在C# Interop编程模型中有一个方法叫做AssembleComplexStringsAndShapes, 该函数的功能极其强大,能自动考察传入的各个元素的连接关系,给我们自己连接成一个链。如果是封闭的,就成为一个ComplexShape了。 可惜新的C# .NET下没有找到对应函数,您需要切换到Interop那一套编程。 巴燕 史 said: Ellipse能转换成ComplexShapeElement吗…