Tuesday, February 07, 2012
dissolve Reference to SubASM - how to??
Last Post 02 Sep 2010 02:23 AM by solid81. 0 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
solid81User is Offline
New Member
New Member
Posts:38

--
02 Sep 2010 02:23 AM  

AnyOne tried to dissolve a Reference?

I made it it works for the first level...

But I've got the problem with References to SubAsm-Parts - don't know how to dissolve it...

see the snippet below,  I only get the SubAsm as an Occurrence, but not the Part the relation is related to

I know that references are there - for each hierarchical level - , but how to find the right next step reference ?

thx for any hint so that I can search in the right corner, too


Dim Relations As SolidEdgeAssembly.Relations3d

        Relations = Occurrence.Relations3d()

        For Each rel As Object In Relations
            If rel.type = SolidEdgeConstants.ObjectType.igPlanarRelation3d Then

[..]

  Dim PlanarRelation3d As SolidEdgeAssembly.PlanarRelation3d = rel

                Dim ref1 As SolidEdgeFramework.Reference
                Dim ref2 As SolidEdgeFramework.Reference

                Dim Occ1 As SolidEdgeAssembly.Occurrence
                Dim Occ2 As SolidEdgeAssembly.Occurrence

                Dim RefItem1 As Object           ' RefPlane or Face / SolidEdgePart.RefPlane
                Dim RefItem2 As Object '      " / "   or SolidEdgeAssembly.AsmRefPlane

                If rel.GetElement1(True).type = SolidEdgeConstants.ObjectType.igReference Then
                    ref1 = rel.GetElement1(True)
                    Occ1 = PlanarRelation3d.Occurrence1
                    RefItem1 = ref1.Object     [...]

                End If

               If  ...  'also with GetElement2

 

You are not authorized to post a reply.

Active Forums 4.2
Copyright © 2011 JasonNewell.NET