Inventor Engineer-to-Order

Inventor Engineer-to-Order

Reply
Active Contributor
scottheide
Posts: 32
Registered: ‎01-17-2012
Message 1 of 5 (160 Views)

Numeric (sortable) iProperty for Parts List

160 Views, 4 Replies
09-11-2012 05:55 PM

We have had good success creating the parts list on our drawings via the IvPartsList part.   However, we need to add a Find Number to each part and we need to be able to sort the parts list on that Find Number.    We are currently using Stock Number for this purpose and it works OK.  However, Stock Number is a text-type attribute and sort does a text sort.  (1, 10, 11, 2, 3, 4, 5, 6, 7, 8, 9) instead of  (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11), for example.  We need a numeric data-type attribute to use.

 

We tried to piggy back on the iProperty Mass, which is a numeric data type, but that seems to have other problems.. and confuses the parts list function in Inventor.  (All of the supplied numeric data type iProperties have other overriding purposes.)

 

Any ideas are appreciated!


Scott Heide

ScottHeide@CruzBayCustom.com
Employee
venkatt
Posts: 13
Registered: ‎10-31-2007
Message 2 of 5 (138 Views)

Re: Numeric (sortable) iProperty for Parts List

09-14-2012 02:05 PM in reply to: scottheide

Can you create your own custom property (defined as a Number) and include this property in the parts list?

Active Contributor
scottheide
Posts: 32
Registered: ‎01-17-2012
Message 3 of 5 (133 Views)

Re: Numeric (sortable) iProperty for Parts List

09-14-2012 03:27 PM in reply to: venkatt

That could work.  We use the library part Block.ipt extensively.  Is there a good way to add a custom iProperty to it?   I suppose we could just copy it to our application directory, rename it, then update our code to use the new CustomBlock.ipt.  Is that what you would suggest?

ScottHeide@CruzBayCustom.com
Employee
venkatt
Posts: 13
Registered: ‎10-31-2007
Message 4 of 5 (125 Views)

Re: Numeric (sortable) iProperty for Parts List

09-15-2012 11:24 AM in reply to: scottheide

Yes, that's what I could think of. I'm not sure if that is the best solution, maybe it will be worthwhile to see if somebody else has a better idea.

Employee
AlexKorzun
Posts: 112
Registered: ‎11-10-2008
Message 5 of 5 (107 Views)

Re: Numeric (sortable) iProperty for Parts List

09-17-2012 05:50 PM in reply to: venkatt

Hi Scott,

 

You can specify iProperties Rule, similar to:

 

Parent Rule iProperties As List = {{"FindNumber", 12.45}}

 

then the Custom Property with the name FindNumber and the number datatype (because it is Number in Intent)  will be created on the instance document

Thank you,



Alex Korzun
Autodesk Configurator 360 / Inventor ETO team
Autodesk, Inc.

Announcements
Manufacturing Community
The Manufacturing Community provides additional access to tips, tutorials, blogs and networking with peers.
Need installation help?

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