Inventor General

Reply
Contributor
Posts: 24
Registered: ‎03-09-2007
Message 1 of 5 (1,072 Views)
Accepted Solution

iLogic; iPart custom column value setting

1072 Views, 4 Replies
12-03-2010 09:45 AM

Hi,

 

Does anyone know if it is possible to set the value of one or more "custom" column of an iPart row.

 

Per example woul this iLogic method work?

iPart.ChangeRow("iComponentName:1", "RowMemberName", customParam1, customParam2)

If so, could you demonstrate how to use it?

 

If not, would you have another suggestion?

 

Thanks in advance

Yves

Employee
Posts: 950
Registered: ‎02-24-2009
Message 2 of 5 (1,046 Views)

Re: iLogic; iPart custom column value setting

12-03-2010 05:20 PM in reply to: ygingras

Here's a workflow to demonstrate this function:

Create an iPart.  Make one of the columns (sample name Width) into a custom column.
Save the iPart as CustomTest.ipt
Make 3 member rows in the table.   These would by default have the Member names:
CustomTest-01
CustomTest-02
CustomTest-03

 

Create a new assembly.  Place the iPart as a component in the assembly.

 

Create a numeric parameter named iPartWidth in the assembly.  Set it to a value that is reasonable for your part.

Create a Text (or String) parameter named iPartMemberName in the assembly.  Make it a multi-value parameter.  Give it the list of values:
CustomTest-01
CustomTest-02
CustomTest-03


Note the name of the iPart component in your assembly Model browser.  It will probably be CustomTest-01:1


Add this rule:

iPart.ChangeRow("CustomTest-01:1", iPartMemberName, iPartWidth)


Then you should be able to change the iPartMemberName and  iPartWidth parameters, and the iPart component will update to show your changes.


 If you manually change the row in the iPart table in the assembly, the component name may change.  To keep the rule working, you should then rename the component (in the Model browser tree) to its original name CustomTest-01:1

You only have to rename it once, and then it will remain constant.

 



Mike Deck
Software Developer
DLS - Mechanical Design
Autodesk, Inc.

Contributor
Posts: 24
Registered: ‎03-09-2007
Message 3 of 5 (1,011 Views)

Re: iLogic; iPart custom column value setting

12-07-2010 08:49 AM in reply to: MjDeck

Thanks!

Distinguished Contributor
Carthik_Babu
Posts: 119
Registered: ‎01-29-2013
Message 4 of 5 (341 Views)

Re: iLogic; iPart custom column value setting

06-04-2013 05:43 AM in reply to: ygingras

Hi,

 

Kindly download the zip file from the below link (since the file size is big).

 

http://grabcad.com/library/ilogic-ipart-and-imate-1

 

i found my logic does not Chaning custom column. Request you to kindly go through the code and tell me what type of  bug is this...... or where i am going wrong

 

Note: Need suggestion to create icomposite for to "control angle of component placement".

 

 

Carthik Babu M.S, Asst Manager - Machine Building,
Gabriel India Ltd,Hosur, TN, INDIA
Email:carthik.ms@gabriel.co.in ,
https://grabcad.com/carthik-1/projects
"May all beings be happy" http://www.dhamma.org/
Distinguished Contributor
Carthik_Babu
Posts: 119
Registered: ‎01-29-2013
Message 5 of 5 (319 Views)

Re: iLogic; iPart custom column value setting

06-06-2013 10:42 PM in reply to: MjDeck
Hi Mike,
Can you check my issue. by downloading my ilogic assembly
http://grabcad.com/library/ilogic-ipart-and-imate-1
and ping me if you find, where i am going wrong....in handling custom column
Carthik Babu M.S, Asst Manager - Machine Building,
Gabriel India Ltd,Hosur, TN, INDIA
Email:carthik.ms@gabriel.co.in ,
https://grabcad.com/carthik-1/projects
"May all beings be happy" http://www.dhamma.org/

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor

Twitter

Facebook

Blogs

Pinterest

Youtube