Inventor Customization

Valued Contributor
Posts: 64
Registered: ‎09-30-2005
Message 1 of 2 (126 Views)

Export weldment Information incl geometrie

126 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
Posts: 1,190
Registered: ‎06-12-2011
Message 2 of 2 (120 Views)

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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community

Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor