Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
ub CATMain()
Set DrwDocument = CATIA.ActiveDocument
Set DrwSheets = DrwDocument.Sheets
Set Selection = DrwDocument.Selection
Set DrwSheet = DrwSheets.ActiveSheet
Set DrwView = DrwSheet.Views.ActiveView
Set DrwTexts = DrwView.Texts
Set Fact = DrwView.Factory2D
Set GeomElems = DrwView.GeometricElements
Dim MyView As DrawingView
Set MyView = DrwSheet.Views.ActiveView
Dim Fact2D As Factory2D
Set Fact2D = MyView.Factory2D
Dim Point1 As Point2D
Dim Point2 As Point2D
Set Point1 = Fact2D.CreatePoint(80, 30)
Set Point2 = Fact2D.CreatePoint(25, 30)
Dim iType As catDimType
iType = catDimDistance
Dim myElements(1)
myElements(1) = Array(Point1,Point2)
Dim selpoints(3)
selpoints(3) = Array(0, 0, 0, 0)
Dim MyDimension1 As DrawingDimension
Set MyDimension1 = MyView.Dimensions.Add2(iType, myElements(1), selpoints(3), Line2, 0)
End Sub