Apr 29, 2003 #1 Pechkit Mechanical Nov 12, 2001 9 FR 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
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
Apr 29, 2003 1 #2 PeterGuy Automotive Jan 15, 2003 249 GB Pechkit 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) Upvote 0 Downvote
Pechkit 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)