FeatureCAM API Examples



Your Ad Here

Do you learn by example?  Here is a good collection of examples that can help you get started on programming the FeatureCAM API by using copy and paste.  Make sure that you know how to run the CDROM examples before you try to use these programming examples.

Simple Introductory Examples

The following examples don't do much, but they illustrate some very basic concepts that are fundamental to understanding the FeatureCAM API.

  1. First, make sure you know how to Run these Examples
  2. Get Active Document
  3. Display All Features and Operations in Active Document
  4. Display Document Names
  5. Display Name of First Selected Model
  6. Get the Dimensions of the Stock
  7. Select a Model Object by Name
  8. Select Multiple Model Objects by Name
  9. Making a Tapped Hole
  10. Manipulate the Origin of a UCS
  11. Override the Feed Rate of an Operation
  12. Rotate All Features in Active Setup
  13. Remove All Tool Overrides
  14. Set a P-Word on an Operation
  15. Distinguish Between Different Types of FMModel Objects

Intermediate Examples

These examples are a little bit more advanced.  Some of them actually perform useful tasks.

  1. Accessing Part Documentation
  2. Addin That Makes Toolbar Button That Creates New Document for Indexing
  3. Allow User to Show Hidden Entities Using a Dialog Box
  4. Automatically Creating Toolbar Buttons for Your User
  5. Bolt Hole Circle
  6. Change All 2-Flute Endmills to 3-Flute Endmills
  7. Change Radii of All Circles at Once
  8. Custom Setup Sheets
  9. Example of Application_PostNCCreate Event
  10. Examples of Hole Recognition Handlers
  11. Get the Active Post Processor
  12. How to Deselect Everything
  13. Invalidating Toolpaths When an Addin is Loaded
  14. Make Point List Pattern from Curve
  15. Make Point List Pattern from Points
  16. Making a Curve using FMCurvePtList
  17. Progress Bar Example
  18. Select an Entire Layer
  19. Set a P-Word on Each Operation Selected in the Operation List
  20. User Interface to SCL Code
  21. Using TypeName to Distinguish between Objects
  22. Using User Attributes on an FMDocument
  23. Working with Colors

Advanced Examples

  1. Load Configuration Depending Upon Material
  2. Telling the Difference Between FM, MF and TSF Documents
  3. Using RegExp and Application_PostNCCreate Together
  4. Using the MSComm Control to Send NC Code to a Control

Examples of User Defined Features

Please visit the FeatureCAM website at http://featurecam.com/udf for many examples of User Defined Features.

Specific Examples

  1. MFGDocument.SaveNC
  2. FMFeature.Attribute
  3. FMFeature.SetUserAttribute

General-Purpose Basic Language Examples (not Specific to FeatureCAM)



Your Ad Here

These are examples that illustrate certain capabilities that you might require, but that really don't have anything to do with the FeatureCAM API.  For example, you might need to know how to create and delete folders on the hard drive.  This type of operation doesn't have anything to do with the FeatureCAM API, but is instead a part of the Basic programming system in general.  All of the topics below fit into this category.

  1. Basic File and Folder Examples
  2. Enhance Message Boxes with Additional Buttons and Icons
  3. Example of Using the Regular Expression (RegExp) Object
  4. File Access with Microsoft Scripting Runtime
  5. Microsoft Excel: Reading Named Ranges from Microsoft Excel
  6. Microsoft Outlook: Send Email with an Attachment
  7. Open a Word Document
  8. Playing a wav File
  9. Running External Programs
  10. Read Numbers from Text File
  11. Use the InputBox Function to Work with User Input
  12. Uses Example
  13. Using Microsoft Scripting Runtime to Process All Files in a Folder
  14. Using SaxBasic Modules

Internet Explorer Examples

  1. General Information on Programming the Internet Explorer Browser
  2. Load a Page in Internet Explorer
  3. Printing a Page in Internet Explorer

Return to FeatureCAM Index


Your Ad Here