Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Catia V6 Macro - Edit Sheet Background Using VBA

Status
Not open for further replies.

Sandy_Man

Mechanical
Jun 7, 2024
3
Hi All

I am creating a macro in VBA to auto-create and fill our drawing border and title block. We have most of it up and running but we can't work out how to activate the sheet background to start with. There is plenty of help on how to do this in V5, but I can't find anything for V6! The help files don't help much either.

As a bonus, we have got the part name to autofill using this line:

oPartDescription.InsertAttributeLink 0, 14, oProdRef, "VPMReference", "V_Name"

But I don't have a list of how to get the other metadata out of our 3D part! Can someone help with a list of the V_Name equivalent for other properties?

Cheers!
 
Replies continue below

Recommended for you

In 3DX, when you can't find a solution, use this quick, dirty trick, get the command you want with this:

2024-10-19_07_47_26-3DX_TSTv2_-_Microsoft_Visual_Studio_abrncm.png


This will give you a lot of information in few text files:

2024-10-19_07_52_17-WhatsApp_mnp5xv.jpg


Search for a string of what you want (I used ground string)

2024-10-19_07_55_39-WhatsApp_xyptip.jpg


You can use the ID command in a CATIA.StartCommand("CATDrwEditFrame")

Be aware that in 3DX working sheet and sheet background are considered now different apps
2024-10-19_08_00_13-_hihdj1.jpg
2024-10-19_07_59_20-_ui0gcq.jpg





Regards
Fernando

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor