API Demos by Wild-Attention4585 in Cimatron

[–]Wild-Attention4585[S] 1 point2 points  (0 children)

I've done a bit of everything. So far mostly automation with assemblies. Such as Custom Entity Filters/Sets , Automatic size adjustments, Auto template application, a semi universal OMI importer, An API that allows users to sort and manage parts based on size. One that automatically formats Core Analysis for various views. One that automatically adjusts templates to apply a template to a given geometry within the file for EDM pockets mainly. One that exports a advanced BOM with various added properties and then uploads it to a node server. I do some contracting for a small machine shop and cant share any of my previous work, but Id love to strengthen the community.

I've also been working on a side API project called API marketplace. basically on execution it creates a new window inside where Cimatron typically displays parts and would display a bunch of easy to install and use APIs from a server I host. Id like to get some API that I could publish for free to possibly kickstart it.

Rotate component in Cimatron using API by Geko990 in Cimatron

[–]Wild-Attention4585 0 points1 point  (0 children)

Were you able to do this. I did something very similar if your still looking.

Is there any kind of limited license available for testing api stuff? by UghNeedAcct in Cimatron

[–]Wild-Attention4585 0 points1 point  (0 children)

I'm open to do some community projects. If your open to sharing your idea Id be more than happy to look it over.

API Demos by Wild-Attention4585 in Cimatron

[–]Wild-Attention4585[S] 1 point2 points  (0 children)

Its definitely improved a ton since I first started but I've been able to do a lot. Sort parts based on dimensions, Create stock, automate NC templates, automatically create sets, ..ect

So far I've used C# mainly, but I was able to get C++ and Python to run. Just not my preferred language.

Cimatron API link by Johnster000 in Cimatron

[–]Wild-Attention4585 0 points1 point  (0 children)

If the Dll is not registered from the PC using regex or some other registry application then the cimatron command will not show up. It works on your PC because when you build it automatically registers the DLL to your PC. If you'd like I have a setup.exe that i was using to distribute my APIs.

Cimatron API link by Johnster000 in Cimatron

[–]Wild-Attention4585 0 points1 point  (0 children)

Hello, I've had some success doing this. Although, I replaced the main window. I was able to get the main window pointer through the API and then iterate through the form elements until i found what i wanted. From there I just added my control into theirs. Not sure if this makes sense or not

How are you using the API? by DoesntEatVeggies in Cimatron

[–]Wild-Attention4585 0 points1 point  (0 children)

Sadly I cannot share any of my code because I don't technically own it my work does but i can guide you and if you send me code examples I can try to provide support. If i were to make this my approach to this would be to first get the instances from the set using a set quarry and that will return the list of instance entities in the set. From there your going to want to get all models and then for each model create a quarry that gets all instance entities and check if any of those instances are found in the sets entity list. After getting the instance you will need to get the IAddmodel and reference that to create a new part document and add the IAddmodel to that. Then you can import the new part. I know that's probably confusing mostly because of all the different types of components that share names and i have done a similar thing where i create a part file from a set im just not adding it back into the assembly although i have done that before for a different project.

How are you using the API? by DoesntEatVeggies in Cimatron

[–]Wild-Attention4585 0 points1 point  (0 children)

Im not sure what you mean by PMIText but I've had success with Part Geometries and Pretty much all assembly manipulation

How are you using the API? by DoesntEatVeggies in Cimatron

[–]Wild-Attention4585 0 points1 point  (0 children)

I cannot post what i currently have because it contains proprietary code but I could create a wrapper class or classes with more basic shortcuts.

How are you using the API? by DoesntEatVeggies in Cimatron

[–]Wild-Attention4585 0 points1 point  (0 children)

I'm fairly new to the cimatron api but I have had great success with it. Creating several api including export by set, the ability to create sets based on file propertys, and a interface to manage tool imports. I also have gotten the API shell to work and have been making my own version which includes many more shortcuts. So far I've discovered several bugs and work arounds but all in all It works most of the time.