Inventor Customization

Inventor Customization

Valued Contributor
79 Posts
7 Kudos
Registered: ‎09-30-2005
Post 1 of 2

Export weldment Information incl geometrie

150 Views, 1 Replies
04-10-2012 11:27 AM
Hi there, Does Anybody has Some experience with the api and weldments? we want to export weldinformation including geometry Information to XML. We Will import this in à weld automation program for weld robots. The basic weld information is accessible tru the api. For cosmetic weld we can extract the geometrie Information (start point, end point, type line or arc etc.) But the "solid weld" doesn't give us the info. Is there some experience About this?
ADN Support Specialist
1,352 Posts
81 Kudos
Registered: ‎06-12-2011
Post 2 of 2

Re: Export weldment Information incl geometrie

04-12-2012 08:40 PM in reply to:

Hope the code below helps:


Sub test()

Dim oDoc As AssemblyDocument
Set oDoc = ThisApplication.ActiveDocument

Dim oAssDef As WeldmentComponentDefinition
Set oAssDef = oDoc.ComponentDefinition
Dim oSolidWeld As WeldBead
Dim oCosmeticWeld As CosmeticWeld


For Each oSolidWeld In oAssDef.Welds.WeldBeads  
  Dim oEachBeadFace As Face
  For Each oBeadFace In oSolidWeld.BeadFaces   

For Each oCosmeticWeld In oAssDef.Welds.CosmeticWelds
  Dim oEdge As Edge
  For Each oEdge In oCosmeticWeld.Edges
    ' dump the info of the edge
End Sub

Xiaodong Liang
Developer Technical Services
Autodesk Developer Network

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!