Inventor Customization

Reply
Distinguished Contributor
Posts: 250
Registered: ‎12-14-2008
Message 1 of 2 (265 Views)

Update Table in Drawing - iPart Active Row

265 Views, 1 Replies
02-27-2013 07:45 AM

I have two tables on a drawing one showing a parts list the other changes to dimensions.

 

The table to show the dimension changes is a configuration table pointing to an ipart.

 

iLogic is used to update the ipart but you have to right click to update the Active Member in the ipart to see the drawing update.

 

Is there a way to automate the 'update active member'? (on the ipart table - this does update the drawing)

I just have the one row in the table, it's purpose was to pass the values onto the drawing (as the part resizes I didn't want the dimensions moving so opted to tabulate them) - hoping they would update!

 

or

 

Is there a way to have a table update parametrically i.e. I've tried .csv as a source to the table but can't force an update. This way I could scrap the ipart & just import the values to a table.

 

The table also includes some txt comments which change with the ipart properties.

ADN Support Specialist
xiaodong.liang
Posts: 1,190
Registered: ‎06-12-2011
Message 2 of 2 (212 Views)

Re: Update Table in Drawing - iPart Active Row

03-10-2013 08:59 PM in reply to: MarkESmith

Hi,

 

I do not either find a direct way :smileysad: the only I can think of is to select the node of the row and execute the command of activate, like doing so manually. Here is a small iLogic code for your reference. It activates the second row.

 

 
    Dim oPartDoc  
      oPartDoc = ThisApplication.ActiveDocument
    
    Dim oBP 
     oBP = oPartDoc.BrowserPanes.ActivePane
    
    Dim oIpartFactory  
     oIpartFactory = oPartDoc.ComponentDefinition.iPartFactory
    
    Dim oIpartRow 
    oIpartRow = oIpartFactory.TableRows(2)  ' e.g. want to activate the second row
   
   oPartDoc.SelectSet.Clear
   
    oPartDoc.SelectSet.Select (oIpartRow)
    
   ThisApplication.CommandManager.ControlDefinitions("PartComputeiPartRowCtxCmd").Execute2(True)
 


Xiaodong Liang
Developer Technical Services
Autodesk Developer Network

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