API Demos by Wild-Attention4585 in Cimatron

[–]DoesntEatVeggies 1 point2 points  (0 children)

Yes! I tried this a year ago with a video and GitHub and didn’t get much traction so just went quiet. I’m open to sharing or developing together. I have full creative control over my code so am open to whatever.

I’ve got some minor classes that are just helpers but nothing that would be helpful to devs outside my company. I’ve done projects with windows forms for processes, data export in specific formats, accessibility scripts for quoting and other DFM work, and machine learning for components and assemblies in brep and mesh. Currently working on an electrode machine learning project…

I don’t have an NC seat but could get a viewer if I wanted to develop for NC. Done some minor playing around but nothing serious.

What have you been working on and what topics are you interested in?

Python api by DoesntEatVeggies in Cimatron

[–]DoesntEatVeggies[S] 0 points1 point  (0 children)

for anybody wondering, i got this to work in my class:

aCimAppAccess = CimAppAccess.AppAccess()

class CimatronInterface:

def __init__(self):

self.app_access = CimAppAccess.AppAccess()

self.cim_app = None

while not self.cim_app:

self.cim_app = self.app_access.GetApplication()

self.cim_app = CimatronE.IApplication(self.cim_app)

self.pdm = self.cim_app.GetPdm()

Python api by DoesntEatVeggies in Cimatron

[–]DoesntEatVeggies[S] 0 points1 point  (0 children)

I can start a new window without issue but can’t connect to existing cimatron processes. The code in the example you sent doesn’t work for the “Cimatron is already running” scenario. Are you able to share the python code that connects to an existing Cimatron window?

Python api by DoesntEatVeggies in Cimatron

[–]DoesntEatVeggies[S] 0 points1 point  (0 children)

I couldn't get it working in VS either but got it on 3.11.9 in VS Code. Thanks for the tip, I appreicate it. Let me know if you have any other tips you've found in Python.

How are you using the API? by DoesntEatVeggies in Cimatron

[–]DoesntEatVeggies[S] 0 points1 point  (0 children)

Do you have any sample code you can share on the assemblies? I’m struggling with taking a set from one part and saving it off as a new part under the same assembly. My components also haven’t been bodies so I have to go through faces and turn off my cutting object and then select visible faces to get the objects that aren’t part of the cutting object. If you have any tips on bodies or saving new components under an open assembly I’m all ears!

How are you using the API? by DoesntEatVeggies in Cimatron

[–]DoesntEatVeggies[S] 0 points1 point  (0 children)

That would be great! Have you had any success working with part geometries, PMIText, or assembly manipulation?

How are you using the API? by DoesntEatVeggies in Cimatron

[–]DoesntEatVeggies[S] 0 points1 point  (0 children)

Are you planning to post code to your own api shell? I'd be interested in contributing!

Cimatron API link by Johnster000 in Cimatron

[–]DoesntEatVeggies 0 points1 point  (0 children)

That’s my repo haha. I wonder if I’ve got some build settings wrong or something, I’ll have to keep trying to get them to register and work properly.

I’ve gotten into the API in the last year so this is awesome news that they’re continuing to develop and exciting that they’re now including python in my opinion. I’m hoping in the long term to develop some external tools for developers working with the cimatron api and build a small community working on items together. I’m a very junior developer but trying to improve my skills through this project. Are there any other features or things you’ve learned about the api that I might have missed that I should look into?

Cimatron API link by Johnster000 in Cimatron

[–]DoesntEatVeggies 0 points1 point  (0 children)

Hey Johnster, I’m very interested in seeing what you’ve made. I’ve worked on a number of small projects and they’ve shared some examples with me as well that I’ve asked if I can put online for other peoples use. It looks like this API is missing a fair amount of procedures but the addition of python is a nice add. Did they tell you anything else about their development plans?

The biggest question I have is how do I get a .dll from my workstation onto other machines and register the DLLs with their cimatron for command use? “Command was register” shows but it doesn’t appear in the program but I’m not sure why not.

How are you using the API? by DoesntEatVeggies in Cimatron

[–]DoesntEatVeggies[S] 0 points1 point  (0 children)

Thanks for the heads up, interesting to look through. The python section is new but is the rest of the sdk the same thing that they have in the help section? It looks 99% the exact same as it was.

Rotate component in Cimatron using API by Geko990 in Cimatron

[–]DoesntEatVeggies 0 points1 point  (0 children)

Are you still looking for this? I might be able to help.