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.
Solved! Go to Solution.
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.
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. 🙂
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?
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.
Can't find what you're looking for? Ask the community or share your knowledge.