Skip to content
An API for Autodesk PowerShape and PowerMill
Branch: master
Clone or download
Feuerbowle and lukeedw Added Function to undraw all entities (#28)
* Added Function to undraw all entities

New function to undraw all entities.

I only have one problem with the test routine. I've found no way to check if an entitie is visible or not. Maybe anyone knows a way to check this.

I also want to add the functionality to undraw entitie groups like all NCPrograms or all Toolpaths as well as single entities themself. At the moment a see three different approaches:

Version 1:
powermill.UndrawAllNCPrograms();			//Undraw all ncprograms

Version 2:
powermill.Undraw(NCProgram);				//Undraw all ncprograms
powermill.Undraw(NCProgram, [PMNCProgram]);	//Undraw NC program [PMNCProgram]

Version 3:
session.NCPrograms.UndrawAll()				//Undraw all ncprograms
session.Boundarys.Undraw([PMNCProgram])		//Undraw NC Program [PMNCProgram]

With Version 2 and Version 3 i would like to introduce a new enum like "EntitieTypes" so you can name the entities you would like to undraw.

* Update PMAutomationTest.cs

"Assert.Pass();" always throws an exeption, so i used "Assert.IsTrue(true);" instead. Is this also Okay?

What about the other "undraw" functions? What way should i go?
Latest commit c3062f1 Jul 8, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Delcam.Geometry.Test Fix outputting closed Polylines to Duct Picture files. (#17) Oct 3, 2018
Delcam.Geometry Fix outputting closed Polylines to Duct Picture files. (#17) Oct 3, 2018
Delcam.ProductInterface.PowerMILL.Test Added Function to undraw all entities (#28) Jul 8, 2019
Delcam.ProductInterface.PowerMILL Added Function to undraw all entities (#28) Jul 8, 2019
Delcam.ProductInterface.PowerSHAPE.Test Modified the surfacing method for Fillin to use the AutoSurf dialog i… Jan 30, 2019
Delcam.ProductInterface.PowerShape Modified the surfacing method for Fillin to use the AutoSurf dialog i… Jan 30, 2019
Delcam.ProductInterface Crash on create single instance (#23) Feb 21, 2019
Delcam.Utilities.Test First Commit Jan 19, 2018
Delcam.Utilities First Commit Jan 19, 2018
Delcam.WPFControls.ProductControls.PowerMILLVB.Test First Commit Jan 19, 2018
Delcam.WPFControls.ProductControls.PowerMILLVB First Commit Jan 19, 2018
Delcam.WPFControls.ProductControls.PowerSHAPE First Commit Jan 19, 2018
Delcam.WPFControls.ProductControls.PowerSHAPEVB.Test First Commit Jan 19, 2018
Delcam.WPFControls.ProductControlsVB Modify product hostaccording to product version Sep 6, 2018
Delcam.WPFControls.WPF3DViewerVB First Commit Jan 19, 2018
Delcam.WPFControls First Commit Jan 19, 2018
DocumentationGenerator First Commit Jan 19, 2018
contributor First Commit Jan 19, 2018
.gitattributes First Commit Jan 19, 2018
.gitignore Issue2 - Add toolpath cutting times. (#3) Feb 2, 2018
Banner.png First Commit Jan 19, 2018
Contribute.md First Commit Jan 19, 2018
CustomSoftwareCore.msbuild First Commit Jan 19, 2018
CustomSoftwareCore.sln First Commit Jan 19, 2018
CustomSoftwareCore.vsmdi First Commit Jan 19, 2018
Documentation.chm First Commit Jan 19, 2018
DocumentationBuild.proj First Commit Jan 19, 2018
LICENSE.txt First Commit Jan 19, 2018
Local.testsettings First Commit Jan 19, 2018
README.md First Commit Jan 19, 2018
TraceAndTestImpact.testsettings First Commit Jan 19, 2018
delcam.snk First Commit Jan 19, 2018

README.md

Banner

PowerShape and PowerMill API

Welcome to the Autodesk PowerShape and PowerMill API, this API provides the ability to automate both PowerShape and PowerMill. The API is full of useful libraries to allow handling a wide variety of PowerShape and PowerMill tasks using macro commands.

To learn more about PowerShape and PowerMill API visit the forum here

To Contribute please see Contribute.md.

The extension is distributed under the MIT license. See LICENSE.txt.

Get started

Should be very simple:

  1. Open Github for windows and clone the repo

  2. Open solution (with Visual Studio 2015 with at least Update 2)

  3. Microsoft .NET Framework 4 and 4.5

  4. Build

Test Data

Test data is stored in git lfs and there are some large files so be prepared for a longer checkout. PowerShape and PowerMill tests will require a version of the product installed to run the tests.

Contributions

In order to clarify the intellectual property license granted with Contributions from any person or entity, Autodesk must have a Contributor License Agreement ("CLA") on file that has been signed by each Contributor to this Open Source Project (the “Project”), indicating agreement to the license terms. This license is for your protection as a Contributor to the Project as well as the protection of Autodesk and the other Project users; it does not change your rights to use your own Contributions for any other purpose. There is no need to fill out the agreement until you actually have a contribution ready. Once you have a contribution you simply fill out and sign the applicable agreement (see the contributor folder in the repository) and send it to us at the address in the agreement.

You can’t perform that action at this time.