Inventor Engineer-To-Order (Read-Only)
Welcome to Autodesk’s Inventor ETO Forums. Share your knowledge, ask questions, and explore popular Inventor ETO topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Numeric (sortable) iProperty for Parts List

4 REPLIES 4
Reply
Message 1 of 5
scottheide
405 Views, 4 Replies

Numeric (sortable) iProperty for Parts List

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
4 REPLIES 4
Message 2 of 5
venkatt
in reply to: scottheide

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

Message 3 of 5
scottheide
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
Message 4 of 5
venkatt
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.

Message 5 of 5
AlexKorzun
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
Inventor-Revit Interop / Inventor-Fusion Interop / Inventor ETO
Autodesk, Inc.

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

Post to forums  

Autodesk Design & Make Report