Programmatically how to extract the coordinates(X,Y,Z &
Angles) of all the children of a product.
I am using the below code. But an error comes as below
shown image.
- Код: Выделить всё
For i = 1 To Products.Count
Dim Product As Product
Set Product = Products.Item(i)
Dim ProductPos As Position
Set ProductPos = Product.Position
Dim iAxisComponentsArray(11)
ProductPos.GetComponents iAxisComponentsArray
Next i
Error Msg:
Compile error: Function or interface marked as restricted, or the function uses an Automation type not supported in Visual Basic.
