Wednesday, 15 August 2012

How to update CATIA part in vba? -



How to update CATIA part in vba? -

i trying edit part dimension in catia changing dimension values in design table in excel file. everytime when alter values should manually update part model. want update automatically through vba code , save it.

i tried

class="snippet-code-html lang-html prettyprint-override">sub catmain() catia.displayfilealerts = false dim part partdocument set part = catia.activedocument part.update part.saveas "d:\e\cse\.....\part2.catpart" end sub

and not working. how can update , save it??

you called ".update" on document object, not part-object! reply is:

dim part partdocument set partdoc = catia.activedocument partdoc.part.update

vba catia

No comments:

Post a Comment