Message 1 of 2
API - C# - HoleRecognitionCylinders
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
does someone have an example for using HoleRecognitionCylinders() in a C# project ?
In VBA works fine:
Dim myModels As FMModels
Set myModels = doc.surfaces.HoleRecognitionCylinders(false, true)
But in C# I get an error message (...HoleRecognitionCylinders can't be used as a method...) for this code:
FMModels myModels
myModels = doc.surfaces.HoleRecognitionCylinders(false, true)
And next, in VBA I check if surface is a cylinder:
Dim myModel as FMModel
For Each myModel in myModels
If( TypeName(surf) = "IFMSurfaceCylinder") Then
...
But in C# we have not TypeName()
Best regards
Maurizio Manzi
Auron GmbH