Inventor General Discussion

Inventor General Discussion

Reply
Distinguished Contributor
Josh_Petitt
Posts: 5,400
Registered: ‎09-21-2004
Message 1 of 9 (100 Views)

Does IV11 allow for deriving standard/custom iProperties?

100 Views, 8 Replies
07-20-2006 06:07 AM
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.
Distinguished Contributor
Josh_Petitt
Posts: 5,400
Registered: ‎09-21-2004
Message 2 of 9 (99 Views)

Re: Does IV11 allow for deriving standard/custom iProperties?

07-21-2006 08:17 AM 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.
Distinguished Contributor
shekarsub[Autodesk]
Posts: 2,198
Registered: ‎05-09-2005
Message 3 of 9 (99 Views)

Re: Does IV11 allow for deriving standard/custom iProperties?

07-21-2006 09:07 AM 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
*Teun Ham \(IV9 SP4 / IV10 SP3a\)
Message 4 of 9 (100 Views)

Re: Does IV11 allow for deriving standard/custom iProperties?

07-24-2006 12:23 AM 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
--
Valued Mentor
MaximUdod
Posts: 569
Registered: ‎01-14-2010
Message 5 of 9 (79 Views)

Re: Does IV11 allow for deriving standard/custom iProperties?

04-16-2012 01:17 AM in reply to: *Teun Ham \(IV9 SP4 / IV10 SP3a\)

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

Product Support
bobvdd
Posts: 563
Registered: ‎11-23-2005
Message 6 of 9 (65 Views)

Re: Does IV11 allow for deriving standard/custom iProperties?

04-16-2012 03:53 PM in reply to: MaximUdod

:smileyembarrassed: 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

Valued Mentor
MaximUdod
Posts: 569
Registered: ‎01-14-2010
Message 7 of 9 (61 Views)

Re: Does IV11 allow for deriving standard/custom iProperties?

04-17-2012 12:17 AM 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 ...

Product Support
bobvdd
Posts: 563
Registered: ‎11-23-2005
Message 8 of 9 (46 Views)

Re: Does IV11 allow for deriving standard/custom iProperties?

04-17-2012 09:04 AM in reply to: MaximUdod

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

Valued Mentor
MaximUdod
Posts: 569
Registered: ‎01-14-2010
Message 9 of 9 (45 Views)

Re: Does IV11 allow for deriving standard/custom iProperties?

04-17-2012 09:17 AM in reply to: bobvdd

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

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.