- UID
- 20814
- 积分
- 140
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2002-12-17
- 最后登录
- 1970-1-1
|
发表于 2004-8-25 13:21:04
|
显示全部楼层
请看以下一段文字,试试看能不能解决你的问题?
MicroStationDGN.Application.GetFloodBoundary()函数的说明:
Creates and returns a new Element whose property IsClosedElement is True and that represents the boundary of a planar region obtained by flood-filling from SeedPoint to the geometry supplied in CandidateElements or in the specified view.
Syntax
Set Element = object.GetFloodBoundary (CandidateElements, Template, SeedPoint [, ViewSpecifier [, FindHoles [, Tolerance [, FillMode]]]])
The GetFloodBoundary method syntax has these parts:
Part Description
object A valid object.
CandidateElements A Element () expression. The coplanar elements that are possible boundary candidates (may be empty).
Template An Element expression. An existing element whose settings are used to initialize the new element. If Nothing, the new element's settings are initialized from MicroStation's active settings.
SeedPoint A Point3d expression. The point at which to start the flood.
ViewSpecifier Optional. A VARIANT expression. The view index (1 through 8) or View object to use for flattening candidate geometry, or zero to use the plane of the geometry.
FindHoles Optional. A Boolean expression. Indicates whether the flood region contains holes.
Tolerance Optional. A Double expression. The distance tolerance for vertex-vertex and edge-vertex coincidence. If negative or omitted, a default tolerance of 1.0e-5 is used.
FillMode Optional. An MsdFillMode expression. Indicates whether the returned Element is filled. If the value is not specified or it is msdFillModeUseActive, MicroStation's active fill mode is used.
Remarks
Important: The geometric arguments are given in the coordinate system of the currently active model. Therefore, before you call this method, you should ensure that the model to which you intend to add the element is the active model. (You can make a model active by calling the Activate method of the appropriate ModelReference object.)
If CandidateElements is empty, ViewSpecifier must contain a View object or a valid view index for a non-perspective view; the SeedPoint and the elements in the view are then flattened onto the view plane, and the returned flood boundary is in the parallel plane containing SeedPoint.
If CandidateElements is nonempty, then nonzero ViewSpecifier indicates a view as above onto which the CandidateElements and SeedPoint are flattened, but if ViewSpecifier is 0, then SeedPoint is projected onto the plane of CandidateElements before the flood computation, and the returned flood boundary is in this plane.
注:在MS V8.5以上的版本VBA才有这个函数的,而MS V8.1是没有的哟. |
|