Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all, i'm newbie of iLogic code and if is possible i need an help with this code:
Dim doc As Document doc = ThisApplication.ActiveDocument Dim ls As AppAmbientShadowCmd Dim myFile As New FileInfo(ThisDoc.PathAndFileName(True)) Dim sizeInBytes As Long = myFile.Length Dim sizeInKB As Long = sizeInBytes / 1024 Dim sizeInMB As Long = sizeInKB / 1024 If sizeInMB > 45 AppAmbientShadowCmd(False) Else AppAmbientShadowCmd(True)
This is what i want to do:
When i open an assembly or part, if filesize is bigger then 45MB, ilogic shut down ambient shadow.
Else put the shadow on.
Any help is really apreciated.
Danilo "DannyGi" G.
Mechanical design engineer and product developer
Mechanical design engineer and product developer
Solved! Go to Solution.