iLogic to create tube and pipe runs from list

iLogic to create tube and pipe runs from list

Stryder33345
Enthusiast Enthusiast
745 Views
3 Replies
Message 1 of 4

iLogic to create tube and pipe runs from list

Stryder33345
Enthusiast
Enthusiast

Hello, 

       I currently have a task of importing hundreds of dwg pipe runs into Inventor. I have successfully written an iLogic script to import all the dwg pipe runs, shrinkwrap, break link and save. 

 

I now want to add each of the runs as a tube and pipe run from a list for each of the shrinkwrap files to go in.

 

Is there a way to create a tube and pipe run with the API ?

0 Likes
Accepted solutions (1)
746 Views
3 Replies
Replies (3)
Message 2 of 4

A.Acheson
Mentor
Mentor
Accepted solution

Hi @Stryder33345 

There is no API but you can create runs via the control definitions (command button) effectively mimicking the manual method. What is the end goal here? Can you show a screenshot of the browser and how the imported file is situated within? After you create the run you can use the normal API tools for the assembly. You just won't be able to use the connect tools etc. 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes
Message 3 of 4

Stryder33345
Enthusiast
Enthusiast

Hi A.Acherson,

       Thanks for your reply. 

 

Just needed to know if there was any API for pipe and tube so I don't waste time scouring the internet for information that does not exist. 

 

Using the control definitions sounds like the way to go, so cheers for the suggestion.

0 Likes
Message 4 of 4

A.Acheson
Mentor
Mentor

No problem, here is the control definition for it. Here is a post using it

' Create run, also use this to start Tube and Pipe Environment if none presented.
Dim oCDs As ControlDefinitions = ThisApplication.CommandManager.ControlDefinitions
  
Dim oCD As ControlDefinition = oCDs("HSL:Piping:CreatePipeRun")
  
oCD.Execute

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes