Inventor crash when replacing Tube and Pipe fitting during placement

Inventor crash when replacing Tube and Pipe fitting during placement

Anonymous
Not applicable
378 Views
1 Reply
Message 1 of 2

Inventor crash when replacing Tube and Pipe fitting during placement

Anonymous
Not applicable

Hello Community,

 

I have a requirement to move Content Center components to be alongside with a main assembly during their insertion. A basic implementation does so inside AssemblyEvents.OnNewOccurence() callback by simply copying inserted file to a desired location and using ComponentOccurence.Replace() method . Everything works fine for interaction with regular Content Center parts. But it seems to conflict with Tube and Pipe functionality somehow: when trying to place a fitting, mentioned API calls are successful, but later on an error is shown from T&P add-in and Inventor crashes afterwards.Inventor_error_tube_hose_data.png

Last time I checked there was no Automation support for Tube and Pipe. But is such hack valid from Inventor and Tube&Pipe point of view (replacing inserted Content Center file in AssemblyEvents.OnNewOccurence()) ?

 

Thanks in advance,

Paul

0 Likes
379 Views
1 Reply
Reply (1)
Message 2 of 2

StevenFeng
Autodesk
Autodesk

Thanks Paul for your feedback.

T&P Replace needs to be handled specially, for example, change the connected pipe's length etc., but unfortunately, it does not support API currently.

Regards,

Steven

0 Likes