ADSK, doesn't 5+years enough to introduce users' request?
The only thing I can do to soothe the 5+ year inertia, is to offer you a VBA macro.
It combines the 3 requests made in this newsgroup post.
The macro has to be run in the derived part and it copies 3 elements from master to derived part:
Sub mass_custom_stocknumber()
Dim rcomp As Inventor.ReferenceComponent
Dim dcomp As Inventor.Document
Set dcomp = ThisApplication.ActiveDocument
If dcomp.ComponentDefinition.ReferenceComponents.DerivedPartComponents.count > 0 _
And dcomp.ComponentDefinition.IsiPartMember = False Then
For Each rcomp In dcomp.ComponentDefinition.ReferenceComponents.DerivedPartComponents
If rcomp.Type = kDerivedPartComponentObject And rcomp.LinkedToFile Then
Call override_derived(dcomp, rcomp)
End If
Next rcomp
End If
If dcomp.ComponentDefinition.ReferenceComponents.DerivedAssemblyComponents.count > 0 _
And dcomp.ComponentDefinition.IsiPartMember = False Then
For Each rcomp In dcomp.ComponentDefinition.ReferenceComponents.DerivedAssemblyComponents
If rcomp.Type = kDerivedAssemblyComponentObject And rcomp.LinkedToFile Then
Call override_derived(dcomp, rcomp)
End If
Next rcomp
End If
End Sub
Private Sub override_derived(dcomp As Document, rcomp As ReferenceComponent)
Dim rprop As MassProperties
Dim dprop As MassProperties
'Get correct massprops in the derived part
Set rprop = rcomp.ReferencedDocumentDescriptor.ReferencedDocument.ComponentDefinition.MassProperties
Set dprop = dcomp.ComponentDefinition.MassProperties
dprop.Mass = rprop.Mass
dprop.Volume = rprop.Volume
'Transport the stocknumber from the master to the derived part
Dim iPropertySet As PropertySet
Set iPropertySet = rcomp.ReferencedDocumentDescriptor.ReferencedDocument.PropertySets.Item("Design Tracking Properties")
Dim iprop As Property
Set iprop = iPropertySet.Item("Stock Number")
dcomp.PropertySets.Item("Design Tracking Properties").Item("Stock Number").Value = iprop.Value
'Transport the custom property mycustom1 from the master to the derived part
Dim customPropertySet As PropertySet
Set customPropertySet = rcomp.ReferencedDocumentDescriptor.ReferencedDocument.PropertySets.Item("User Defined Properties")
Set iprop = customPropertySet.Item("mycustom1")
On Error GoTo Add
dcomp.PropertySets.Item("Inventor User Defined Properties").Item("mycustom1").Value = iprop.Value
dcomp.Save
Exit Sub
Add:
dcomp.PropertySets.Item("Inventor User Defined Properties").Add iprop.Value, "mycustom1"
dcomp.Save
End Sub
Thanks. At least something.
Still I hope users will get this functionality out-of-the-box in the future....with synchro-updating ...
One thing I forgot to mention on this topic:
if the main interest is to transport textual iProperties between a parent part and a derived part then I think you could perfectly use "iParts" to accomplish this.
Bob
As for me i'm interestem to get IAM textual iPs to IPT textual iPs...