Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Does IV11 allow for deriving standard/custom iProperties?

8 REPLIES 8
Reply
Message 1 of 9
Josh_Petitt
485 Views, 8 Replies

Does IV11 allow for deriving standard/custom iProperties?

quick question: does IV11 allow for deriving standard iProperties or custom iProperties? I'm using IV10 now and have ran into a situation where I would like to derive a part and pass the Stock Number from the base part to the derived part. The base part Stock Number is likely to change and there are a number of parts derived from the base. I would like to have all the derived parts change automatically.
8 REPLIES 8
Message 2 of 9
Josh_Petitt
in reply to: Josh_Petitt

Well, I tried this on IV11 and it doesn't seem possible 😞 Does anyone from ADSK know if this is "on the radar" for future releases? I would REALLY like to be able to derive from a part and select a circle for iProperties and have the iProperties come over and stay in sync, or at least the custom iProperties (not exported parameters, but text). The Stock Number is also a iProperty that would be very handy to have derived. This way I can change it once in my base part, and ALL derived parts would update.
Message 3 of 9
Anonymous
in reply to: Josh_Petitt

Hi Josh,

We are aware of this much needed functionality. We got the colors working in R11 and iProperties is in the list. Thanks.

shekar
Message 4 of 9
Anonymous
in reply to: Josh_Petitt

Shekar,

If you are going to support the deriving of iProperties, please make sure
that the Mass (and perhaps the COG???) is derivable too.

Thanks,

--
T. Ham
Mechanical Engineer
CDS Engineering BV

Dual Pentium XEON 2.2 Ghz
2 GB SDRAM
NVIDIA QUADRO4 700 XGL (Driver = 77.18)
18 GB SEAGATE SCSI Hard Disc
3Com Gigabit NIC

Windows 2000 Professional SP4
Autodesk Inventor Series 9 SP4
Autodesk Inventor Series 10 SP3a
--
Message 5 of 9
Maxim-CADman77
in reply to: Anonymous

ADSK, doesn't 5+years enough to introduce users' request?

Message 6 of 9
bobvdd
in reply to: Maxim-CADman77

Smiley Embarassed 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:

  • Mass
  • Stocknumber
  • A custom property called mycustom1

 

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




Bob Van der Donck


Principal UX designer DMG group
Message 7 of 9
Maxim-CADman77
in reply to: bobvdd

Thanks. At least something.

Still I hope users will get this functionality out-of-the-box in the future....with synchro-updating ...

Message 8 of 9
bobvdd
in reply to: Maxim-CADman77

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




Bob Van der Donck


Principal UX designer DMG group
Message 9 of 9
Maxim-CADman77
in reply to: bobvdd

As for me i'm interestem to get IAM textual iPs to IPT textual iPs...

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report