Get active row in iassembly

Get active row in iassembly

Anonymous
Not applicable
326 Views
3 Replies
Message 1 of 4

Get active row in iassembly

Anonymous
Not applicable

Hi all,

 

I have an iAssembly with 40 or so members. What I would like to do is pass the part number of a member onto the drawing for that iAssembly that updates as the active member is changed manually through the Inventor UI. It seems the easiest way to do it would be to get the active row (the one being displayed) and then use the curentrowvalue or currentrowstringvalue to get the member name and set it to a user parameter that can get passed to the drawing. Or I may be overcomplicating it and there is a canned method.

 

 

0 Likes
327 Views
3 Replies
Replies (3)
Message 2 of 4

mcgyvr
Consultant
Consultant

I don't know what you want to do with it but this is all it takes to have text on a drawing showing the iassemblies part number..

(I'm kind of assuming you left out some important details)

 

Start text command..

Select "Properties - Model" from the first dropdown..

Select "part number " from the next 

Press that "X down arrow" button and hit ok..

That will change as you change iassembly members in your first view..

 


modelparams.PNG

 



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
0 Likes
Message 3 of 4

Anonymous
Not applicable

Thank you for the suggestion. I did find that feature and I tried it out. It worked for the active component only, but then once I changed the row (selected a new member in the model tree), it did not update automatically. It seemed to me that it should have, so I don't know if this is a bug or not. 

 

Matt

0 Likes
Message 4 of 4

mcgyvr
Consultant
Consultant

@Anonymous

You aren't doing it right..
The way to properly change the active iassembly member in a drawing is to right click on the base view and select "edit view" and then go to the model state tab and from the member dropdown pick the member that you want to be active..
See screencast.

 



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
0 Likes