Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

simple ilogic

8 REPLIES 8
SOLVED
Reply
Message 1 of 9
bengee5454
464 Views, 8 Replies

simple ilogic

its fair to say that I'm vastly inexperienced in th world of writing codes.

what I'm trying to do should be very simple.

I have a segmented 90 degree bend with 2 segments, I've also created a form where the number of segments can be adjusted (this will either be 2 or 3).

 

What I'd like is to be able to type in '3' in my form and the model update to have 3 segments (an the angles all adjust to suit), but I'm not sure how to change the number of segments, i think some code may be necessary.

 

Anybody help?pipe.jpg

 

 
  
8 REPLIES 8
Message 2 of 9
mrattray
in reply to: bengee5454

Can you post the file, please?
Mike (not Matt) Rattray

Message 3 of 9
mrattray
in reply to: bengee5454

Also, what version of Inventor are you using?
Mike (not Matt) Rattray

Message 4 of 9
bengee5454
in reply to: mrattray

i'm using 2014.

 

I will send you the file on Monday - as its the end of my working week!

 

Message 5 of 9

sketch pattern the segments then the number will be availiable as a parameter

Stephen Gibson



View stephen gibson's profile on LinkedIn


Message 6 of 9

I did think that may be a way to get the result I'm after, but I could not see a way to do it correctly.....how do you specify the angle to fill in a pattern, i.e. pattern the segment 3 times to fill 90 degrees? - and also pattern the segment to ensure the lines meet end to end?

 

 

 

Message 7 of 9
JavaLodge
in reply to: bengee5454

Here's something I came up with pretty quickly.  It's not the most elegant solution, but it could help.

 

Just change the parameter values to alter the radius, number of sections, and angle.  I left all the work geometry visible so you could see how I did it.

 

Hope this helps.  By the way, it's a 2014 file.

____________________________________________________________
Slow is good and good is fast.
Message 8 of 9
bengee5454
in reply to: JavaLodge

thanks JavaLodge, thats exactly what I was after.

Looking at how you did it looks straightforward......i would have never thought of using a loft!

 

I will look at it in more detail, but thank you for the help.

Message 9 of 9
JavaLodge
in reply to: bengee5454

No problem 🙂 I did notice that in your picture the straight length of pipe has an angle cut in it. It would take a bit more fiddling for that to work. Also, I couldn't find a way to continue to the pipe with an extrusion without the model breaking every time you changed a parameter, so that's another limitation.
____________________________________________________________
Slow is good and good is fast.

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

Post to forums  

Autodesk Design & Make Report