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: 

iLogic standard grating dimensions

7 REPLIES 7
Reply
Message 1 of 8
Anonymous
797 Views, 7 Replies

iLogic standard grating dimensions

Anonymous
Not applicable

Hi

We use standard plastic grating.

And we always cut them wrigth beside the ribs to have a clean cut.

I want to made a iLogic macro that alway display the good dimensions for the cuting placement.

 

I found this: "d0 = Round(Round(d0,4) / inc) * inc" in the Inventor help, and my "inc" = 1.5 inches.

 

My problem is that my first grating square is 1.625 inches.

And this makes my macro to always updating my final value.

 

 

What is the best way to do this.

 

Thanks

0 Likes

iLogic standard grating dimensions

Hi

We use standard plastic grating.

And we always cut them wrigth beside the ribs to have a clean cut.

I want to made a iLogic macro that alway display the good dimensions for the cuting placement.

 

I found this: "d0 = Round(Round(d0,4) / inc) * inc" in the Inventor help, and my "inc" = 1.5 inches.

 

My problem is that my first grating square is 1.625 inches.

And this makes my macro to always updating my final value.

 

 

What is the best way to do this.

 

Thanks

7 REPLIES 7
Message 2 of 8
Curtis_Waguespack
in reply to: Anonymous

Curtis_Waguespack
Consultant
Consultant

@Anonymous wrote:

 

What is the best way to do this.

 


Hi Sprocket107,


Can you share a file or screen capture of your file?

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

0 Likes


@Anonymous wrote:

 

What is the best way to do this.

 


Hi Sprocket107,


Can you share a file or screen capture of your file?

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

Message 3 of 8
Anonymous
in reply to: Curtis_Waguespack

Anonymous
Not applicable

Hi Curtis

Of course, there it is.

 

Thanks

0 Likes

Hi Curtis

Of course, there it is.

 

Thanks

Message 4 of 8
Curtis_Waguespack
in reply to: Anonymous

Curtis_Waguespack
Consultant
Consultant

Hi Sprocket107,

 

Attached is an Inventor 2015 file that is close to what you want. I didn't get your spacing exactly correct, but it should provide an example of how to set this up.

 

Note there are event triggers that open the form when save or open the file.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

 

0 Likes

Hi Sprocket107,

 

Attached is an Inventor 2015 file that is close to what you want. I didn't get your spacing exactly correct, but it should provide an example of how to set this up.

 

Note there are event triggers that open the form when save or open the file.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

 

Message 5 of 8
Anonymous
in reply to: Curtis_Waguespack

Anonymous
Not applicable

Hi Curtis

I'm sorry, I wasn't clear enough in my explanation.

I want to work directly in the parameters box.

 

I have a user parameter named GRATING_LENGTH

I have another user parameter named GRATING_INCREMENT wich is equal to 1.5 inches.

But my first square is equal to 1.625 inches.

 

I want to use the formula "GRATING_LENGTH = Round(Round(GRATING_LENGTH,4) / GRATING_INCREMENT) * GRATING_INCREMENT" or something like that to make my user parameter "GRATING_LENGTH" automaticaly ajuted to the good value.

 

This formula is working fine if all my grating squares are equal to 1.5 inches, but it's not because of my first square of 1.625 inches.

 

I dont need an Inventor part, I only need a formula wich can do that.

 

Your iLogic Grate is great by the way.

 

Thanks

 

0 Likes

Hi Curtis

I'm sorry, I wasn't clear enough in my explanation.

I want to work directly in the parameters box.

 

I have a user parameter named GRATING_LENGTH

I have another user parameter named GRATING_INCREMENT wich is equal to 1.5 inches.

But my first square is equal to 1.625 inches.

 

I want to use the formula "GRATING_LENGTH = Round(Round(GRATING_LENGTH,4) / GRATING_INCREMENT) * GRATING_INCREMENT" or something like that to make my user parameter "GRATING_LENGTH" automaticaly ajuted to the good value.

 

This formula is working fine if all my grating squares are equal to 1.5 inches, but it's not because of my first square of 1.625 inches.

 

I dont need an Inventor part, I only need a formula wich can do that.

 

Your iLogic Grate is great by the way.

 

Thanks

 

Message 6 of 8
Curtis_Waguespack
in reply to: Anonymous

Curtis_Waguespack
Consultant
Consultant

Hi Sprocket107,

 

Ahhh, I see.

 

Wouldn't it just be this? :

GRATING_LENGTH = (Round(Round(GRATING_LENGTH,4) / GRATING_INCREMENT) * GRATING_INCREMENT)+0.125

 

Or am I still missing something?

 

See attached file I used to test this.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

0 Likes

Hi Sprocket107,

 

Ahhh, I see.

 

Wouldn't it just be this? :

GRATING_LENGTH = (Round(Round(GRATING_LENGTH,4) / GRATING_INCREMENT) * GRATING_INCREMENT)+0.125

 

Or am I still missing something?

 

See attached file I used to test this.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

Message 7 of 8
Anonymous
in reply to: Curtis_Waguespack

Anonymous
Not applicable

Hi Curtis

No, your very close but I have tryed this and it doesn't work.

I placed it in an iLogic code and because of the "+0.125", because I want to auto-update the same user parameter and because the iLogic rules are running eache time a parameter changed, my GRATING_LENGTH is always changing.

 

I'm lost, but it's not a major issue.

I lived before whitout it, so...

 

By the way, can you help me whit my next post. "iLogic code for opening any files"

 

Thanks

 

0 Likes

Hi Curtis

No, your very close but I have tryed this and it doesn't work.

I placed it in an iLogic code and because of the "+0.125", because I want to auto-update the same user parameter and because the iLogic rules are running eache time a parameter changed, my GRATING_LENGTH is always changing.

 

I'm lost, but it's not a major issue.

I lived before whitout it, so...

 

By the way, can you help me whit my next post. "iLogic code for opening any files"

 

Thanks

 

Message 8 of 8
Curtis_Waguespack
in reply to: Anonymous

Curtis_Waguespack
Consultant
Consultant

Hi Sprocket107,

 

This should be doable, but without seeing your file it's hard to say why it's not working.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

0 Likes

Hi Sprocket107,

 

This should be doable, but without seeing your file it's hard to say why it's not working.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

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

Post to forums  

Autodesk Design & Make Report