|
CATIA V5 Programmierung : LS-OPT and CATIA
Sam2021 am 26.03.2018 um 13:08 Uhr (1)
1. I will record a macro and see how it works. 2. I would give the range in the LS OPt. Everytime it asks, lets say change the angle to some value, it would change in the script and generate the new geom. file (If i understood your question correctly)3. You mean the paramaters in the future tree? if yes, please see the attached file. Thank you Best regards, Sam [Diese Nachricht wurde von Sam2021 am 26. Mrz. 2018 editiert.]
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : LS-OPT and CATIA
bgrittmann am 26.03.2018 um 13:25 Uhr (1)
HiA code example for two of these parameters:Code:Sub CATMain()Dim partDocument1 As DocumentSet partDocument1 = CATIA.ActiveDocumentDim part1 As PartSet part1 = partDocument1.PartDim parameters1 As ParametersSet parameters1 = part1.ParametersDim TotalLenghtPara As ParameterSet TotalLenghtPara = parameters1.RootParameterSet.DirectParameters.Item("Total_Lenght")TotalLenghtPara.Value = 300Dim AnglePara As ParameterSet AnglePara = parameters1.RootParameterSet.DirectParameters.Item("Angle")AnglePara.Value = -10 ...
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : LS-OPT and CATIA
Sam2021 am 26.03.2018 um 13:28 Uhr (1)
I tried and created a .catvbs file for the problem. Could you please take alook when you have time and let me know if its correct?Thank you
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : LS-OPT and CATIA
Sam2021 am 26.03.2018 um 13:49 Uhr (1)
Hello, 1. Please ignore the previous email. it was sent before noticing your latest reply. 2. Now I have used your example script and built one for my problem. I kindly request you to take a look when you have time. thank you
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : LS-OPT and CATIA
bgrittmann am 26.03.2018 um 13:55 Uhr (1)
HiPlease try to understand the code and not only copy code snippets in one file.My code was written as .CATScript. (maybe you should also use CASTScript)Also have a look on the documentation (V5Automation.chm in the Catia install folder).Regards,Bernd------------------Warum einfach, wenn es auch kompliziert geht.
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : LS-OPT and CATIA
Sam2021 am 26.03.2018 um 14:36 Uhr (1)
okay. i will take a look into the manual and build the script further and get back to you. Thank you.Best regards,Sam
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : LS-OPT and CATIA
Sam2021 am 26.03.2018 um 18:54 Uhr (1)
Dear Bernd, I read the manual and have created a script. I couldnt fix the syntax error which occurs while i try to run. COuld you please take a look into the script file when you have time and help me trouble shoot the issue? thank you
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : LS-OPT and CATIA
Sam2021 am 27.03.2018 um 08:15 Uhr (1)
Dear Bernd, Thank you very much. the code runs perfectly fine. In order to run .CATscript in batch, can i still use CNEXT.exe command? Thank you Bet regards, Sam
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : LS-OPT and CATIA
bgrittmann am 27.03.2018 um 16:44 Uhr (1)
Hi SamOpening Catia per command and execute a macro: see for example hereRegards,Bernd------------------Warum einfach, wenn es auch kompliziert geht.
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : LS-OPT and CATIA
Sam2021 am 27.03.2018 um 18:51 Uhr (1)
Dear Bernd, Thank you very much for the response. I will take a look. Best regards,Sam
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : LS-OPT and CATIA
Sam2021 am 28.03.2018 um 08:15 Uhr (1)
Dear Bernd, is it still possible to convert the .CATscript to .vbscript? Thank you.
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : LS-OPT and CATIA
Sam2021 am 29.03.2018 um 14:40 Uhr (1)
Dear Bernd, I ran the script using command line. The script run fine but it asks for my approval to overwrite the existing stp file. Is it possible to include a syntax where it knows it can overwrite the existing .stp file every time there was a change in the macro? thankyou
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : LS-OPT and CATIA
bgrittmann am 29.03.2018 um 14:49 Uhr (1)
HiTry Code:CATIA.DisplayFileAlerts = FalseRegards,Bernd------------------Warum einfach, wenn es auch kompliziert geht.
|
In das Form CATIA V5 Programmierung wechseln |