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.
Sub CATMain()
Dim productDocument1 As ProductDocument
Set productDocument1 = CATIA.ActiveDocument
Dim product1 As Product
Set product1 = productDocument1.Product
Dim products1 As Products
Set products1 = product1.Products
Dim product2 As Product
Set product2 = products1.Item("FIXINGS")
Dim products2 As Products
Set products2 = product2.Products
Dim arrayOfVariantOfBSTR1(0)
arrayOfVariantOfBSTR1(0) = Part Location
Set products2Variant = products2
products2Variant.AddComponentsFromFiles arrayOfVariantOfBSTR1, "All"
Dim documents1 As Documents
Set documents1 = CATIA.Documents
Dim productDocument2 As ProductDocument
Set productDocument2 = documents1.Item(Product to Assemble Into)
Dim product3 As Product
Set product3 = productDocument2.Product
Dim products3 As Products
Set products3 = product3.Products
Dim product4 As Product
Set product4 = products3.Item("M8_SOCKET_CAP_HEAD.1")
Dim move1 As Move
Set move1 = product4.Move
Set move1 = move1.MovableObject
Dim arrayOfVariantOfDouble1(11)
arrayOfVariantOfDouble1(0) = 0#
arrayOfVariantOfDouble1(1) = 0#
arrayOfVariantOfDouble1(2) = 1#
arrayOfVariantOfDouble1(3) = -0#
arrayOfVariantOfDouble1(4) = 1#
arrayOfVariantOfDouble1(5) = -0#
arrayOfVariantOfDouble1(6) = -1#
arrayOfVariantOfDouble1(7) = -0#
arrayOfVariantOfDouble1(8) = 0#
arrayOfVariantOfDouble1(9) = 3262#
arrayOfVariantOfDouble1(10) = -390#
arrayOfVariantOfDouble1(11) = 1526.983066
Set move1Variant = move1
move1Variant.Apply arrayOfVariantOfDouble1
Set move1 = product4.Move
Set move1 = move1.MovableObject
Dim arrayOfVariantOfDouble2(11)
arrayOfVariantOfDouble2(0) = 1#
arrayOfVariantOfDouble2(1) = 0#
arrayOfVariantOfDouble2(2) = 0#
arrayOfVariantOfDouble2(3) = 0#
arrayOfVariantOfDouble2(4) = 1#
arrayOfVariantOfDouble2(5) = 0#
arrayOfVariantOfDouble2(6) = 0#
arrayOfVariantOfDouble2(7) = 0#
arrayOfVariantOfDouble2(8) = 1#
arrayOfVariantOfDouble2(9) = 0#
arrayOfVariantOfDouble2(10) = 0#
arrayOfVariantOfDouble2(11) = 0.616934
Set move1Variant = move1
move1Variant.Apply arrayOfVariantOfDouble2
End Sub