Archive

Posts Tagged ‘Selection’

Working with restricted interfaces

July 29, 2010 9 comments

Often times when coding in VBA, you may get an error message that says, “Function or interface marked as restricted, or the function uses an Automation type not supported in Visual Basic.”  In this article, I will explain the reason for this error and present a good strategy to deal with it. Read more…

(Announcement) New download made available today

March 31, 2010 Leave a comment

Today, I posted an example showing how to efficiently handle interactive selection of objects on a form with a clean layout.   For more information, please visit the downloads page.

A comparison of two methods for deleting objects

December 7, 2009 5 comments

In this article, I am going to discuss two different methods for deleting objects using automation.  The first method is provided by the selection object.  This process is very similar to the way you delete things when you use CATIA interactively – you select the items to delete then click delete.  The other method I will show is provided by the HybridShapeFactory object and is a bit more specialized but can be very handy (and even required) in some situations.
Read more…

Checking data types at runtime

December 2, 2009 12 comments

In this article, I will show a simple way to check any data type using the Visual Basic language.  If you don’t already know how to check data types, I think this article will prove to be very useful for you.  I use this technique very often when I write code and I suspect you will as well.
Read more…