Continue to Site

Welcome to 3DCADForums

Join our CAD community forums where over 25,000 users interact to solve day to day problems and share ideas. We encourage you to visit, invite you to participate and look forward to your input and opinions. Acrobat 3D, AutoCAD, Catia, Inventor, IronCAD, Creo, Pro/ENGINEER, Solid Edge, SolidWorks, and others.

non-standard paper sizes through macro reading probelm

gubbala.satish

New member
We are building an interactive drawing paper size changer through Forms from VBA.

Is it possible select our own standard xml file (KK_STANDARD.xml). In this xml file we have the non-standard paper sizes.

We changed few comments in our macro as shown below but unfortunately unable to read our standard file.

###############################
Set drawingDocument1 = CATIA.ActiveDocument
Set drawingSheets1 = drawingDocument1.Sheets
Set drawingSheet1 = drawingSheets1.Item(1)

CATIA.ActiveDocument.Standard = KK_STANDARD
drawingSheet1.PaperSize = R0

############################

Please let me know how to get our own standard xml file & paper size through macros.
 
For change the dimension of the sheet in non-standard, I've done a copy of the .xml file on my desktop and I change the dimension manually.
 

Articles From 3DCAD World

Sponsor

Back
Top