Hi
How to get part status in ilogic ? ex:relaesed, pending, work in progress
i would like to set up a rule with this iproperty and i can find it, all except this one.
Some people can help me please
thank
Here's code to read that property. It's a bit tricky, because it gives you a numeric value code instead of a text string.
designState = iProperties.Value("Status", "Design State") If (designState = 1) Then MessageBox.Show("Design State: WorkInProgress", "iLogic") ElseIf (designState = 2) Then MessageBox.Show("Design State: Pending", "iLogic") ElseIf (designState = 3) Then MessageBox.Show("Design State: Released", "iLogic") End If
Hi
Thanks a lot for your answer
i've another question, It is possible to set the printer with ilogic's print document snippet
if i've not setup the printer in the cad session the snipet take the default MSwindow printer
how to set-up it permanently(from ilogic rule) and keep the default MSwindow printer setup?
Thank
Here's the snippet with a line added to select the printer. You can find out more about the PrintManager class in the API help, which is available on the Inventor Help menu under
Additional Resources -> Programming Help
oPrintMgr = ThisDoc.Document.PrintManager oPrintMgr.Printer = "PDFCreator" oPrintMgr.ColorMode = kPrintGrayScale 'oPrintMgr.ColorMode = kPrintColorPalette oPrintMgr.NumberOfCopies = 1 oPrintMgr.Orientation = kPortraitOrientation 'oPrintMgr.Orientation = kLandscapeOrientation oPrintMgr.PaperSize = kPaperSizeCustom oPrintMgr.PaperHeight = 11 oPrintMgr.PaperWidth = 8.5 oPrintMgr.SubmitPrint
Thanks again
That's give for me a lot of work to set up my rule
Yannick