Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

Macro Catia V5 1

Status
Not open for further replies.

Pechkit

Mechanical
Joined
Nov 12, 2001
Messages
9
Location
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
 
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)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top