Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Placing a logo image into a drawing format 1

Status
Not open for further replies.

Letourneau

Marine/Ocean
Feb 14, 2007
12
0
0
US
I looked around for this code for a few days and just found it in the CAA V5 Visual Basic help file. This code in a macro will insert a graphic image into a drawing format. Simply change c:\tmp\ball.bmp to the path of your image. Works with any image format supported by CATIA. The 100., 50. is x & y placement.

Dim MySheet As DrawingSheet
Set MySheet = CATIA.ActiveDocument.Sheets.ActiveSheet
Dim MyView As DrawingView
Set MyView = MySheet.Views.ActiveView
Dim MyDrawingPicture1 As DrawingPicture
Set MyDrawingPicture1 = MyView.Pictures.Add("C:\tmp\ball.bmp", 100., 50.)

Enjoy,
Steve
 
Status
Not open for further replies.
Back
Top