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 frame generator

9 REPLIES 9
SOLVED
Reply
Message 1 of 10
Anonymous
2501 Views, 9 Replies

iLogic frame generator

Hello,

 

I have one problem. I want create iLogic frame generator, and i don´t know what to do now.

 

I have rectangular frame, which change dimensions. This rule i have ok.

But i have middle frames, which must be active or not, it depends at length of frame.

or example ( when leghth be more than 1300mm i need 4 frames, or less than 1300mm i need 2 frames).

 

All this sketchs are in 1 sketch.

 

I tryed this code but not function:

 

If DELKA_PASU >=1500 Then
Component.IsActive("Profil ITEM 00000019:1") = True
Component.IsActive("Profil ITEM 00000020:1") = True

Else
Component.IsActive("Profil ITEM 00000019:1") = False
Component.IsActive("Profil ITEM 00000020:1") = False


'iLogicVb.UpdateWhenDone = True
End If

 

Thank you for your help

Marek S.

 

 

iLogic.PNG

 

 

9 REPLIES 9
Message 2 of 10
Anonymous
in reply to: Anonymous

Can you post your model for reference? I might be able to help if I can see what it is that's in the file.

Message 3 of 10
Anonymous
in reply to: Anonymous

Of course. I sended.

Thank you

Message 4 of 10
Anonymous
in reply to: Anonymous

I Changed your sketch down to one and that's the lengths it's pulling from. I only did down to 400mm because I didn't know exactly what it was you're looking for. Take a look at the attached files and let me know if it helps or if you're looking for something else.

Message 5 of 10
Anonymous
in reply to: Anonymous

Yes,  I´m looking for something else.

All lines in the sketch must stay. Other lines i will been need for next work 🙂

At the picture i try explain what i mean. 🙂

 

Výstřižek.PNG

Message 6 of 10
Anonymous
in reply to: Anonymous

When you frame generate a line then that frame member is dependent on that line. You would need to frame generate the outside sketch as well and then have those parts hidden when you go to your other needed dimensions. Is this what you're trying to accomplish in the code?

Message 7 of 10
Anonymous
in reply to: Anonymous

I don't  understand your answer.

My english is not so good :D.

 

 

Message 8 of 10
Anonymous
in reply to: Anonymous

Surpress

 

 

and put

If DELKA_PASU <1201 Then
	Component.IsActive("Profil ITEM  00000020:1") = False
	Component.IsActive("Profil ITEM  00000016:1") = False
	End If

ThisDoc.Document.Rebuild()
'iLogicVb.UpdateWhenDone = True

You might get errors but this is the only way I could get it to work. You might need to make various skeletons to make this work.

Message 9 of 10
Anonymous
in reply to: Anonymous

 

Capture.PNG

This is what I suppressed and it worked

Message 10 of 10
Anonymous
in reply to: Anonymous

Thank you for your help, I try this 🙂 

 

 

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

Post to forums  

Technology Administrators


Autodesk Design & Make Report