Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iLogic to create tube and pipe runs from list

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Stryder33345
398 Views, 3 Replies

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

iLogic to create tube and pipe runs from list

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 ?

Labels (2)
3 REPLIES 3
Message 2 of 4
A.Acheson
in reply to: Stryder33345

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

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
Message 3 of 4
Stryder33345
in reply to: A.Acheson

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

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.

Message 4 of 4
A.Acheson
in reply to: Stryder33345

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

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report