Imrpove Speed when running a VBA solution in catia
Imrpove Speed when running a VBA solution in catia
(OP)
Does anyone have any advice as to how to speed up the processing time when running a custom vba code to interact with catia form excel say. (Im not referring to catScript).
For instance,when instantiating power copies or point features, my code can take more than 3 hours because I cannot disable the screen refresh. I suspect that this is the issue. I am experienced with other application API's and in such cases I have found that there is a massive speed differential when turning on/off graphical refresh.
I understand that the property
CATIA.refreshdisplay = false
does not work for some reason when run from VBA but it does work within catscript.
What effect does the interactive property have on the speed of processing?
CATIA.Interactive =false
many thanks in advance!!
ht tp://kxcad .com/cad-c atia-caa-v 5-automati on-objects -InfInterf aces-Appli cation--Ob ject-.html
http:// www.coe.or g/Collabor ation/Disc ussionForu m/ActiveDi scussions/ tabid/210/ aff/10/aft /101724/af v/topic/De fault.aspx
For instance,when instantiating power copies or point features, my code can take more than 3 hours because I cannot disable the screen refresh. I suspect that this is the issue. I am experienced with other application API's and in such cases I have found that there is a massive speed differential when turning on/off graphical refresh.
I understand that the property
CATIA.refreshdisplay = false
does not work for some reason when run from VBA but it does work within catscript.
What effect does the interactive property have on the speed of processing?
CATIA.Interactive =false
many thanks in advance!!
ht
http://





RE: Imrpove Speed when running a VBA solution in catia
I have been meaning to experiment with the 'CATIA.refreshdisplay = False' and 'CATIA.Interactive = False'...I was thinking of putting them in a simple CATScript file, and then calling them from a VBA macro (basically like a function) using the code below...or maybe I did try it and the VBA running forces Catia to be visible, so I gave up? Either way good luck and be sure to share any success you have.
CODE
'Subject: Call .VBScript from VBA
Sub CATMain()
Dim Shell As Object
Set Shell = CreateObject("WScript.Shell")
Dim ID As Variant: ID = Shell.Run("D:\CatiaMacros\Test1.CATScript")
End
End Sub
RE: Imrpove Speed when running a VBA solution in catia
What release do you use?
Regards
Fernando