Dimension Sliced Section View

Dimension Sliced Section View

johnster100
Collaborator Collaborator
277 Views
0 Replies
Message 1 of 1

Dimension Sliced Section View

johnster100
Collaborator
Collaborator

Hi,

I've written some code to dimension some drawing views. To find the drawing curves on the sheet I've been adding Attribute Sets to my assembly then finding the face proxies and from these the drawings curves:

 

        Dim oAssyDoc As Inventor.AssemblyDocument
        Dim oRefFileDesc As Inventor.ReferencedFileDescriptor
        oRefFileDesc = oView.ReferencedFile
        oAssyDoc = oRefFileDesc.ReferencedDocument

  

 

        '***DIMENSION PREP***
        'Finds edges With a particular attribute Then takes the first instance
        Dim aoEdge1 As Inventor.faceProxy
        Dim oObjs As Inventor.ObjectCollection
        oObjs = oAssyDoc.AttributeManager.FindObjects("TEST", "TEST", "TEST")
        aoEdge1 = oObjs.Item(1)

 

 

        Dim aoDrawCurves1 As Inventor.DrawingCurve
        Dim oDrawViewCurves As Inventor.DrawingCurvesEnumerator
        oDrawViewCurves = oView.DrawingCurves(aoEdge1)
        aoDrawCurves1 = oDrawViewCurves.Item(1)

 

This has been working fine until I started working on section views with the option 'Slice All Parts' checked. When this option is checked I cannot the curve. I've noticed that all the Drawing curves are now EdgeProxies rather FaceProxies.

 

Is there anyway to find the EdgeProxy from the face proxy? this would allow me to return my drawing curve for dimension creation.

 

 

thanks,

John

0 Likes
278 Views
0 Replies
Replies (0)