This repository has been archived on 2023-01-27. You can view files and clone it, but cannot push or open issues or pull requests.
cad/ref/swex/add-in/create-geometry-api/ConsoleApplicationVB/Module1.vb
2022-10-15 19:16:08 +02:00

14 lines
368 B
VB.net

Imports CodeStack.Examples.CreateGeometryAddIn
Imports SolidWorks.Interop.sldworks
Module Module1
Sub Main()
Dim app As ISldWorks = GetObject("", "SldWorks.Application")
Dim geomAddIn As IGeometryAddIn = app.GetAddInObject("CodeStack.GeometryAddIn")
Dim feat As IFeature = geomAddIn.CreateCylinder(0.2, 0.2)
feat.Name = "MyCylinder"
End Sub
End Module