Change size - Content Center

Change size - Content Center

CCarreiras
Mentor Mentor
3,272 Views
24 Replies
Message 1 of 25

Change size - Content Center

CCarreiras
Mentor
Mentor

Hi!

 

I use this vb routine to change Content Center sizes within a family of elements.

In previous versions it work very well, but now it's working very erratic.

 

Any sugestions to solve this, or tips for a better method to do this operation?

 

Conditions:

Change the size of a Standard Content Center part (no need to change to a different family, only the size)

The Content center is in a custom folder inside the project folder

The size is changed based in the change of a parameter inside main asssembly

The parts are in the first level of the main assembly, not in a sub-aasembly.

 

Test attached.

Also check the video to resume the issue.

 

Thanks a lot for your help.

I'm not a power programer, and now i'm lost... i used this method in a few iLogic assemblys, and now i can't make them work well.

 

 

CCarreiras

EESignature

0 Likes
3,273 Views
24 Replies
Replies (24)
Message 21 of 25

GeorgeWilliams
Advocate
Advocate

Has this been resolved in 2018 or later?  Are there any workarounds for this issue?

I'm getting the same issue on Inventor 2018 3.2.  The API will find the "Other Parts" node but no other nodes... I need the Tube & Pipe child node.  Works fine if I call it individually but does not work if I call it from code on a bunch of components.  Should I reorder the calls and get the Tube & Pipe components first?

George Williams
D3 Technologies - Automation Solutions
************************************************************************************
If this post helps, please click the "thumbs up" to give kudos
If this post answers your question, please click "Accept as Solution"
************************************************************************************
0 Likes
Message 22 of 25

Anonymous
Not applicable

I asked for an correction in the API but no positive reponds received.

0 Likes
Message 23 of 25

adam.nagy
Autodesk Support
Autodesk Support

It's supposed to have been fixed in Inventor 2020.

Please let us know if you can confirm this on your side as well.



Adam Nagy
Autodesk Platform Services
Message 24 of 25

GeorgeWilliams
Advocate
Advocate

I was able to workaround this issue in 2018 r3.2 by implementing a dictionary with the Key = FullTreeViewPath and Value = TheContentTreeViewNode.

 

For each set of ChildNodes that I queried for a given level of a CC path, I added all those ChildNodes to that collection and then just used that dictionary to "jump" to a given level.  Works great.

George Williams
D3 Technologies - Automation Solutions
************************************************************************************
If this post helps, please click the "thumbs up" to give kudos
If this post answers your question, please click "Accept as Solution"
************************************************************************************
Message 25 of 25

Anonymous
Not applicable

very useful code. How can I edit for DIN933 and DIN934

0 Likes