VolumeOverridden bug?

VolumeOverridden bug?

nmunro
Collaborator Collaborator
424 Views
3 Replies
Message 1 of 4

VolumeOverridden bug?

nmunro
Collaborator
Collaborator

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).

 

 

        


https://c3mcad.com

0 Likes
425 Views
3 Replies
Replies (3)
Message 2 of 4

sanjay.ramaswamy
Alumni
Alumni

Neil,

 

It seems to me that the UI is behaving the same. Clearing the overridden volume field and hitting 'apply' seems to restore the value. But if you close and reopen the iProperties dialog, the volume is back to the overridden value. Let me know if you see the same, and I can file this in our system.

0 Likes
Message 3 of 4

nmunro
Collaborator
Collaborator

Hi Sanjay,

 

I am seeing the same. Looks to be a deeper problem than just the API.

 

Thanks,

Neil

 

        


https://c3mcad.com

0 Likes
Message 4 of 4

sanjay.ramaswamy
Alumni
Alumni

Filed as 1339032 in our system. Thanks for reporting this issue.

 

0 Likes