Message 1 of 4
VolumeOverridden bug?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
This worked in 2009 but does not with the 2010 interop (tried with both IV 2010 and 2011).
Any part file either open in own window, or activated in the context of an assembly.
Edit the part properties and override the part volume.
Run this macro.
Public Sub VolOverride()
Dim partDoc As PartDocument
Set partDoc = ThisApplication.ActiveEditObject
Dim mp As MassProperties
Set mp = partDoc.ComponentDefinition.MassProperties
mp.VolumeOverridden = False
End Sub
The assignment fails without error and the VolumeOverridden property value remains True. (as if it were being treated as an assembly with one of the include weld and occurrences properties set to true).