Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
MicroStation
  • Product Communities
MicroStation
MicroStation Wiki (日本語) 03 円を配置する方法
    • Sign In

    • Wiki (日本語)
    • -Bentley Product Wiki
      • +00 ライセンス関連情報
      • -01 MicroStation
        • +01 FAQ
        • +02 操作
        • +03 作図補助
        • +04 寸法/文字
        • +05 セル
        • +06 画層
        • +07 補助座標系
        • +08 基本図形
        • +09 3次元モデリング
        • +10 参照/点群/ラスター
        • +11 印刷
        • +12 アイテムタイプとレポート
        • +13 バッチ処理
        • +14 DGN
        • +15 DWG
        • +16 インポート/エクスポート
        • +17 構成
        • +18 作業環境
        • +19 ユーザインターフェイス
        • +20 インストール関連
        • +21 地理座標系(GCS)
        • +22 MDL
        • +23 その他
        • +24 Bentley Cloud and Web Services
        • -25 MVBA
          • 00 MVBAプロジェクト作成方法の紹介
          • 01 線分を配置する方法
          • 02 弧を配置する方法
          • 03 円を配置する方法
          • 04 多角形を配置する方法
          • 05 曲線を配置する方法
          • 06 文字を配置する方法
          • 07 長方体を配置する方法
          • 08 円柱を配置する方法
          • 09 球を配置する方法
          • 10 円錐を配置する方法
          • 01 値が50以下のテキスト要素を削除する方法
          • 02 メッシュ要素に付属しているItemTypeのプロパティ値を該当要素の画層に設定する方法
          • 03 BSplineに沿い、等距離でセルを配置する方法
          • 04 Dumbbellを配置する方法
          • 作業単位設定
          • 形状を連続線分へ変換ツール
      • +02 ContextCapture
      • 03 AutoPIPE
      • +04 STAAD.Pro
      • +05 MAXSURF / Multiframe
      • +06 OpenCities Map(BentleyMap)
      • +07 ProjectWise 365 Services
      • +08 Bentley View
      • +09 SYNCHRO
      • +10 Descartes
      • +11 Pointools
      • +12 LumenRT
      • +13 SACS
      • +14 Multiframe
      • +15 Orbit 3DM
      • +16 OpenBuildings Designer
      • +30 リリースアナウンスメント
      • +31 サポート関連情報
      • +32 ダウンロード関連情報
      • 33 Bentleyトレーニングサイトの利用方法
      • 4/27(木)開催 Bentley Regional Seminar 2023 Tokyo アジェンダ
      • YII 2022 Going Digital Awards in Infrastructureについて
      • 【無償トレーニングキャンペーン】12月17日までに特定の製品ご購入のお客様向けキャンペーンのご案内

     
     Questions about this article, topic, or product? Click here. 

    03 円を配置する方法

      プロダクト: MicroStation 
      バージョン: CONNECT
      環境: N/A
      エリア: Programming
      サブエリア: MVBA

    円を配置する方法を紹介します。

    Option Explicit
    
    Sub Main()
        Dim ellipseElement As ellipseElement
        Dim pt(3) As Point3d
        
        pt(0).X = 0
        pt(0).Y = 0
        pt(0).Z = 0
        pt(1).X = 200
        pt(1).Y = 200
        pt(1).Z = 0
        pt(2).X = 400
        pt(2).Y = 0
        pt(2).Z = 0
        
        Set ellipseElement = CreateEllipseElement1(Nothing, pt(0), pt(1), pt(2))
        ActiveModelReference.AddElement ellipseElement
    End Sub

    円を配置するには、円にある三つのポイントを指定する必要があります。Point3d型のpt(3)配列を定義し、それぞれの座標値を与えます。

    次にCreateEllipseElement1メソッドを呼び出し、パラメータを渡してからActiveModelReference.AddElementで追加すれば、円が配置できます。

    CreateEllipseElement1の説明は下記となります:
    Set EllipseElement = object.CreateEllipseElement1 (Template, PerimeterPoint1, PerimeterPoint2, PerimeterPoint3 [, FillMode])

    object A valid object.
    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.
    PerimeterPoint1 A Point3d expression. A point on the perimeter.
    PerimeterPoint2 A Point3d expression. A point on the perimeter.
    PerimeterPoint3 A Point3d expression. A point on the perimeter.
    FillMode Optional. An MsdFillMode expression. Indicates whether the element is filled. If the value is not specified or it is msdFillModeUseActive, MicroStation's active fill mode is used.

    • Share
    • History
    • More
    • Cancel
    • Jingyuan Lv Created by Bentley Colleague Jingyuan Lv
    • When: Fri, May 6 2022 6:12 AM
    • Jingyuan Lv Last revision by Bentley Colleague Jingyuan Lv
    • When: Tue, May 17 2022 2:35 AM
    • Revisions: 3
    • Comments: 0
    Recommended
    Related
    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies