Dimension Sliced Section View
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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