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 to Instantiate 2d component. 1

Status
Not open for further replies.

jagodragon

Automotive
Mar 2, 2009
61
US
hello,

i'm workingon a title block macro for my company. We have the company grafic recreated as cad data and i would like to instantiate taht with the macro and place it in the title block. Is there a way to do this or am i going to have to create each of the lines individually? (i would like to avoid this as there are several thousand line segments that create the logo as well as multiple fills of different colors)

Any help would be greatly appreciated.
 
Replies continue below

Recommended for you

online doc is usually a good place to search...

here is my code

Code:
Sub insertFirstDittoInActiveView()
Dim myDrawing As DrawingDocument
Set myDrawing = CATIA.ActiveDocument

Dim myDitto As DrawingView
Set myDitto = myDrawing.Sheets.Item(2).Views.Item(3)   'sheet2 is the details sheet here. item 3 is the first ditto

Dim myDittoInstance As DrawingComponent
Set myDittoInstance = myDrawing.Sheets.ActiveSheet.Views.ActiveView.Components.Add(myDitto, 100, 100)

End Sub


Eric N.
indocti discant et ament meminisse periti
 
can you give me the link to the online help doc please?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Top