Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to get part status in ilogic (inv 2011)

4 REPLIES 4
Reply
Message 1 of 5
yannick3
1162 Views, 4 Replies

How to get part status in ilogic (inv 2011)

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

 

Yannick Verreault
INV PRO 2015
MS Office 2007
Win 7 pro, core i7 950, asus P6T WS
nvidia Gforce GTX 295
WD caviar black 500Go
WD caviar black 1To

4 REPLIES 4
Message 2 of 5
MjDeck
in reply to: yannick3

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

 


Mike Deck
Software Developer
Autodesk, Inc.

Message 3 of 5
yannick3
in reply to: yannick3

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

Yannick Verreault
INV PRO 2015
MS Office 2007
Win 7 pro, core i7 950, asus P6T WS
nvidia Gforce GTX 295
WD caviar black 500Go
WD caviar black 1To

Message 4 of 5
MjDeck
in reply to: yannick3

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

 

 

 


Mike Deck
Software Developer
Autodesk, Inc.

Message 5 of 5
yannick3
in reply to: yannick3

Thanks again

That's give for me a lot of work to set up my rule

Yannick

Yannick Verreault
INV PRO 2015
MS Office 2007
Win 7 pro, core i7 950, asus P6T WS
nvidia Gforce GTX 295
WD caviar black 500Go
WD caviar black 1To

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

Post to forums  

Autodesk Design & Make Report