IntelliCAD 11.1 Object Library
AddCylinder Method
See Also 
Center
A Point object identifying the center of the cylinder.
Radius
A double-precision variable representing the radius of the cylinder.
Height
A double-precision variable representing the height of the cylinder.
PaperSpace Collection : AddCylinder Method

Description

Adds a Polygon Mesh cylinder given the center, base radius, and height.

Syntax

Visual Basic
Public Function AddCylinder( _
   ByVal Center As Point, _
   ByVal Radius As Double, _
   ByVal Height As Double _
) As Solid3D

Parameters

Center
A Point object identifying the center of the cylinder.
Radius
A double-precision variable representing the radius of the cylinder.
Height
A double-precision variable representing the height of the cylinder.

Remarks

The cylinder will be drawn as a polygon mesh when object is a ModelSpace or PaperSpace collection object or a Block object. The cylinder will be drawn as an ACIS 3DSolid when object is a SolidCreator object. The optional SolidCreator object is only available in IntelliCAD versions that support ACIS 3DSolids.

Example

Private Sub AddCylinder_Example()

' This example adds a cylinder to the drawing using the AddCylinder method.

     Dim myDoc As IntelliCAD.Document

     Dim cylObj As IntelliCAD.PolygonMesh

     Dim pt As Point

     Set myDoc = ActiveDocument

     Set pt = Library.CreatePoint(2, 2, 0)

     Set cylObj = ThisDocument.ModelSpace.AddCylinder(pt, 3, 5)

     cylObj.Update

     ThisDocument.Application.ZoomExtents

End Sub

See Also

© 2022 IntelliCAD Technology Consortium. All Rights Reserved.