@ chandra.shekar.g
I don't think I explained what I am trying to do very well. I'm importing a mesh object into inventor, it was a high polygon count meaning the conversion time it high and the model becomes very slow after it is converted into a inventor surface feature. My ideal solution to this would be to eliminate part of the mesh within inventor after importing it and then convert only the part I wanted to a surface feature. I was hoping there was something in the API that would allow for this. Assessing a meshes GraphicsCoordinateSet via the api and then using either the remove or putcoordinates functions can remove portions of a mesh but currently when I do this it breaks the mesh creating a jumbled mess. I uploaded a jpeg showing the effect the code causes on the mesh.
This is the code I'm currently running to remove parts of the mesh.
'Get application information
Dim part_doc As PartDocument ' get the active part document
part_doc = _invApp.ActiveDocument 'set part_doc as the active part document
Dim active_part As PartComponentDefinition ' define the active component
active_part = part_doc.ComponentDefinition ' set the active component
Dim trans_geo As TransientGeometry 'get transient geometry from the application
trans_geo = _invApp.TransientGeometry 'set trans_geo as Transient Geometry object
Dim mesh_feature_sets As MeshFeatureSets
mesh_feature_sets = active_part.MeshFeatureSets
Dim mesh_feature_set As MeshFeatureSet
mesh_feature_set = mesh_feature_sets.Item(1)
Dim mesh_feature As MeshFeature
mesh_feature = mesh_feature_set.Item(1)
Debug.Print(mesh_feature.Name)
Dim mesh_enum As MeshFeatureEntitiesEnumerator
mesh_enum = mesh_feature.Entities()
Debug.Print(mesh_enum.Count())
Dim mesh_feature_entity As MeshFeatureEntity
mesh_feature_entity = mesh_enum.Item(1)
Dim graphics_coord_set As GraphicsCoordinateSet
graphics_coord_set = mesh_feature_entity.CoordinateSet
graphics_coord_set.Remove(graphics_coord_set.Count)
Debug.Print("done")
part_doc.Update()
part_doc.Rebuild()