Getting Mesh Face Object

Getting Mesh Face Object

dylanTEV9W
Advocate Advocate
757 Views
7 Replies
Message 1 of 8

Getting Mesh Face Object

dylanTEV9W
Advocate
Advocate

Hello all, 

 

I'm trying to get access to the mesh face object or more specifically the geometry in the an imported mesh. I'm trying to build a feature that is somewhat similar to the current mesh enabler but allows for parts of a mesh to be brought in and converted to native inventor surfaces rather than the entire thing. However I'm stuck just trying to get access to the meshface object or mesh geometry. If anyone knows how to get access to these please let me know. 


Thanks in advance for any help!

0 Likes
758 Views
7 Replies
Replies (7)
Message 2 of 8

chandra.shekar.g
Autodesk Support
Autodesk Support

@dylanTEV9W,

 

Can you please provide sample mesh file to investigate? please make sure that files are non confidential.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 3 of 8

dylanTEV9W
Advocate
Advocate

I should be able to provide a sample file soon. The problem isn't file dependent though it occurs with every mesh file that I've brought into Inventor so far.

0 Likes
Message 4 of 8

dylanTEV9W
Advocate
Advocate

Hmm, the site won't seem to let me upload my .obj file. But as I said earlier this doesn't seem to be file dependent so solving it for any file would solve it for all of them.

0 Likes
Message 5 of 8

dylanTEV9W
Advocate
Advocate

Here is the part file. I'm trying to trim away the outer frame, because I don't need or want that converted to a surface when I use mesh enabler.

0 Likes
Message 6 of 8

chandra.shekar.g
Autodesk Support
Autodesk Support

@dylanTEV9W,

 

After importing mesh feature into part, unwanted face can be deleted in part model which is explained in below help documentation.

 

https://knowledge.autodesk.com/support/inventor-products/learn-explore/caas/CloudHelp/cloudhelp/2016...

 

Hoping that below help documentation also helps in mesh object.

 

https://knowledge.autodesk.com/support/inventor-products/learn-explore/caas/CloudHelp/cloudhelp/2018...

 

https://knowledge.autodesk.com/support/inventor-products/learn-explore/caas/CloudHelp/cloudhelp/2014...

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 7 of 8

dylanTEV9W
Advocate
Advocate

 @ 

 

 

 

'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()

 

 

 

 

0 Likes
Message 8 of 8

chandra.shekar.g
Autodesk Support
Autodesk Support

@dylanTEV9W,

 

There is a tool from Autodesk called "MeshMixer" (http://www.meshmixer.com/). This tool can be used to edit Mesh (.obj) file and removed all unnecessary mesh data. It keeps the part that you want import into Inventor. Then, Inventor can be used to convert required meta data into B-Rep surface.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes