Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross 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
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
 
Replies continue below

Recommended for you

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

Top