Macro Catia V5
Macro Catia V5
(OP)
I need to put a picture (jpg or gif) in an inset of drafting plane.
Does anyone know the command line in the CATScript?
Thank You
Pechkit
Does anyone know the command line in the CATScript?
Thank You
Pechkit





RE: Macro Catia V5
The following is the code to add the picture "C:\Picture.jpg" to the pictures collection in a drawing (member of drawing view) at x100,y100.
I hope it helps
Pete
Dim strPath as String
Dim dblAnchorX as Double
Dim dblAnchorY as Double
Dim objPicture As DrawingPicture
strPath = "C:\Picture.jpg"
dblAnchorX = 100#
dblAnchorY = 100#
Set objPicture = Pictures.Add(strPath, dblAnchorX, dblAnchorY)