Message 1 of 5
DrawingDimension Attached Property

Not applicable
12-15-2005
10:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a VBA program running as a macro to create parts, drawings and assemblies from template objects. There is a portion of code in which I am deleting unattached dimensions from drawings. The code is below and essentially comes straight from the Samples section of Programming Help.
What appear to be incorrect is that the attached property for any given dimension in the drawingdimensions collection evaluates to true (I confirmed this by stepping through the code) but when I access the drawing through the normal Inventor interface, dimensions will show as unattached. Other than the fact that the dimension attached property evaluates to True, the code runs without error.
Any help? Thanks.
'Loop through and delete all unattached dimensions
For Each objDwgDim In objSheet.DrawingDimensions
If objDwgDim.Attached = False Then
objDwgDim.Delete
End If
Next
What appear to be incorrect is that the attached property for any given dimension in the drawingdimensions collection evaluates to true (I confirmed this by stepping through the code) but when I access the drawing through the normal Inventor interface, dimensions will show as unattached. Other than the fact that the dimension attached property evaluates to True, the code runs without error.
Any help? Thanks.
'Loop through and delete all unattached dimensions
For Each objDwgDim In objSheet.DrawingDimensions
If objDwgDim.Attached = False Then
objDwgDim.Delete
End If
Next