Ah Catia, have fun, its horrible.
Putting it in brackets means you are casting it. Its the opposite to Python syntax:
Python:
int(myFloat)
C#
(int)myFloat
Ah Catia, have fun, its horrible.
Putting it in brackets means you are casting it. Its the opposite to Python syntax:
Python:
int(myFloat)
C#
(int)myFloat
My God, I support my previous statements, Csharp is terrible to work with, so illogical.
PS: How did you figure out itâs catia?
I did C# programming in Catia as well! Its not C#, its the horrible COM Interface of Catia
I am working with their internal scripting language (EKL) and I have little to none problems. But this COM Api it is so messed up, nothing is where it is supposed to be. I cannot find a single method. Iâm dir() and type() every single thing.
True!,
You really(!) need to carefully read the âV5Automation.chmâ
Visual Studio is making people lazy
I tend not to use it because itâs an overkill for the small apps that I make. Too much loading time, logins gits assemblies classes, solutions.
I made WingIDE working well with IronPython, but I had to do my own imports thatâs why I created the module. Iâll try to continue this way and create all python classes of .net abstracts in there.
I feel I jumped into the deep again
Well, I find Catia Com with C# difficult, using IronPython would be some sort of Hardcore Difficulty.
Since Iâm not so experienced coder, and I find everything difficult that doesnât surprise me. Problem is that all examples I can get from their documentation is for VB and I hate this disgusting language.
No offense but itâs like German Some things in it just makes absolutely no sense to me.
You will need to read the sdk carefully to understand how each object is related to each other. The problem is also, what do you get back. Little stupid things, like indexing works from 1 to n and not 0 to n-1. It just returns nulls or nothing if its not working. Really difficult.
Yes, I am used to this because EKL is the same, all lists start from 1
If you not used to this concept, this gives you days of headaches.
Yep, been there done that. I created a rule to export stuff to excel then used CPython to manipulate it. I had so many issues until I figured out it is reading from 1.
I also used to do lowlevel coding by using user32.dll. I had this module called ISD, which wasnât callable through code. So I faked mouseinput, getting window location, reading pixel and automated clicking. Selecting through clicking at the graph and many of this very weird way in automating within catia
When you do things like that you wonder why are the designers needed behind the PC
Actually it looked quite cool, but if you automate like this, you donât really get a benefit in terms of efficiency.
Its so slow to create useful automation scripts in Catia, that a designer would have done the same âmanuallyâ. I just served them in a way, that they donât need to that kind of work which people shouldnât do unless they have murdering their own grandma.
But once you have done it, you feel like you know programming. Quite interesting projects.
⌠and you stop complaining about Rhino any other Api
Yes, youâre right. I have to appologize about my Rhino Api complains since I got to taste the real nightmare.
I wonder what will happen if I try to connect to Rhino via COM
Well COM is always difficult. Its language independent and this advantage comes with big disadvantages. But if you have at least a good structured api/sdk, you can much easier solve problems.
By the way, this means you can also access Catia COM with plain CPython.
I can do that, but I wanted it to be IronPython
I just like challenges I guess.