iLogic frame generator

iLogic frame generator

Anonymous
Not applicable
3,152 Views
9 Replies
Message 1 of 10

iLogic frame generator

Anonymous
Not applicable

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

 

 

0 Likes
Accepted solutions (2)
3,153 Views
9 Replies
Replies (9)
Message 2 of 10

Anonymous
Not applicable

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.

0 Likes
Message 3 of 10

Anonymous
Not applicable

Of course. I sended.

Thank you

0 Likes
Message 4 of 10

Anonymous
Not applicable

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.

0 Likes
Message 5 of 10

Anonymous
Not applicable

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

0 Likes
Message 6 of 10

Anonymous
Not applicable

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?

0 Likes
Message 7 of 10

Anonymous
Not applicable

I don't  understand your answer.

My english is not so good :D.

 

 

0 Likes
Message 8 of 10

Anonymous
Not applicable

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.

0 Likes
Message 9 of 10

Anonymous
Not applicable
Accepted solution

 

Capture.PNG

This is what I suppressed and it worked

0 Likes
Message 10 of 10

Anonymous
Not applicable
Accepted solution

Thank you for your help, I try this 🙂 

 

 

0 Likes