Inventor General Discussion

Reply
Active Contributor
ben.gee
Posts: 33
Registered: ‎04-30-2013
Message 1 of 9 (257 Views)
Accepted Solution

simple ilogic

257 Views, 8 Replies
03-28-2014 05:12 AM

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

 

 
  
*Expert Elite*
mrattray
Posts: 2,496
Registered: ‎09-13-2011
Message 2 of 9 (255 Views)

Re: simple ilogic

03-28-2014 05:15 AM in reply to: ben.gee
Can you post the file, please?
Mike (not Matt) Rattray

*Expert Elite*
mrattray
Posts: 2,496
Registered: ‎09-13-2011
Message 3 of 9 (253 Views)

Re: simple ilogic

03-28-2014 05:16 AM in reply to: ben.gee
Also, what version of Inventor are you using?
Mike (not Matt) Rattray

Active Contributor
ben.gee
Posts: 33
Registered: ‎04-30-2013
Message 4 of 9 (251 Views)

Re: simple ilogic

03-28-2014 05:19 AM in reply to: mrattray

i'm using 2014.

 

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

 

Valued Mentor
stephengibson76
Posts: 1,095
Registered: ‎08-01-2006
Message 5 of 9 (248 Views)

Re: simple ilogic

03-28-2014 05:22 AM in reply to: ben.gee

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

Stephen Gibson



View stephen gibson's profile on LinkedIn


Active Contributor
ben.gee
Posts: 33
Registered: ‎04-30-2013
Message 6 of 9 (188 Views)

Re: simple ilogic

03-31-2014 07:19 AM in reply to: stephengibson76

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?

 

 

 

Distinguished Contributor
JavaLodge
Posts: 105
Registered: ‎11-12-2013
Message 7 of 9 (181 Views)

Re: simple ilogic

03-31-2014 07:47 AM in reply to: ben.gee

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.

____________________________________________________________
Eat when you're hungry, sleep when you're tired. -Bruce Lee
Active Contributor
ben.gee
Posts: 33
Registered: ‎04-30-2013
Message 8 of 9 (173 Views)

Re: simple ilogic

03-31-2014 08:29 AM 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.

Distinguished Contributor
JavaLodge
Posts: 105
Registered: ‎11-12-2013
Message 9 of 9 (167 Views)

Re: simple ilogic

03-31-2014 08:41 AM in reply to: ben.gee
No problem :smileyhappy: 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.
____________________________________________________________
Eat when you're hungry, sleep when you're tired. -Bruce Lee
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.