I'm new to secondary development of pc-dmis. There's only a little tutorials for it. Could anyone provide some tutorials about using c# to do it?
Where's the tutorial of using c# to read pc-dmis file(.prg)?
Collapse
X
-
Originally posted by JacobCheverie View PostYou have to add INTEROP.PCDLRN.DLL (in your PC-DMIS root install folder) as a reference/resource and you can use the Object Editor (in visual studio) to explore the various methods.
Thanks,
Xavier
Comment
-
What version of PC-DMIS are you running? Go to C:\Program Files\Hexagon\***Your Version of PC-DMIS***\en and open "automationobjects.chm". That should give you a starting point in learning the various objects/methods/events. Then it'll be up to your imagination and your skills in C# for the most part.
Comment
-
Originally posted by JacobCheverie View PostWhat version of PC-DMIS are you running? Go to C:\Program Files\Hexagon\***Your Version of PC-DMIS***\en and open "automationobjects.chm". That should give you a starting point in learning the various objects/methods/events. Then it'll be up to your imagination and your skills in C# for the most part.
Comment
-
Code:App = new PCDLRN.Application();//this works pc-dmis is open App.Visible = true;//pc-dmis is visible App.SetActive(); IPartPrograms PCDPrograms =App.PartPrograms; //Opens base program IPartProgram pgm = PCDPrograms.Open("I:\\CMM - 4.5.4 SF\\Programs\\Injection - Keyed.PRG", "CMM1");//open a program richTextBox1.Text += "Program Opened \n"; //Saves as new parts part number bool didSave = pgm.SaveAs("I:\\CMM - 4.5.4 SF\\TestPrograms\\HP0375-TEST.PRG"); //save as at location if (didSave) { richTextBox1.Text += "Saved as HP0377-TEST \n"; } else { richTextBox1.Text += "Error saving \n"; } //Imports cad at file path pgm.Import("Z:\\CNC_Programing\\Powershape\\Cavity _Tops\\Models\\HP0375.step"); //imports cad at file location pgm.Save(); //saves file
- Likes 1
Comment
Related Topics
Collapse
-
by SunfireSSRHow do I register the pcdlrn.dll or pcdlrn.tbl for use in VB6 ? Thx in Advance...
-
Channel: PC-DMIS for CMMs
07-24-2017, 12:22 PM -
-
by vpt.seAs I upgraded one CMM to Windows 7 64-bit, my small VBS helpers died in the process (still kickin' butt on XP though).
So, I have begun re-coding...-
Channel: PC-DMIS Code Samples
03-05-2014, 03:09 PM -
-
by kneislydIntroduction to PCDMIS Automation
It will take a number of postings in this thread to present all the topics needed to understand and implement...-
Channel: PC-DMIS Code Samples
06-14-2012, 08:54 PM -
-
by JackMidoHi all I've started dabbling in Visual Studio a little more and I've become unstuck, No matter what i try I can't seem to access the PCDMIS object library....
-
Channel: PC-DMIS for CMMs
06-24-2018, 06:48 AM -
-
by kneislydSo I retired as of last July, but had all this stuff about PC-Dmis Automation which I've finally got around to uploading. Don't know it it is of any interest,...
-
Channel: PC-DMIS Code Samples
04-27-2021, 03:54 PM -
Comment