bulk place separate ipt files in separate IDW's

bulk place separate ipt files in separate IDW's

pepijnU6P68
Participant Participant
540 Views
7 Replies
Message 1 of 8

bulk place separate ipt files in separate IDW's

pepijnU6P68
Participant
Participant

Hello
i'm still new to the ilogic and automatization of inventor.
currently i'm trying to make labels of all our products, to do this I like to place al the IPT file in an IDW template. All IPT files will have the correct home view .
is this possible with ilogic an sheet formats or another automation program?

(see photo of what the result would need to look like)

 

thanks in advance

0 Likes
Accepted solutions (1)
541 Views
7 Replies
Replies (7)
Message 2 of 8

Michael.Navara
Advisor
Advisor

This is possible.

But if you want just export the images from parts, you can use direct export of this image without drawing. When you use 3D annotations, you can get "dimensioned drawing" from model.

0 Likes
Message 3 of 8

pepijnU6P68
Participant
Participant

 

0 Likes
Message 4 of 8

pepijnU6P68
Participant
Participant

 

Hello Michael, thanks! this looks like a good way to do this. Maybe a stupid question but the "dimensioned drawing" i can get by export to image after (like you said) place dimensions on the drawing ? 

 

0 Likes
Message 5 of 8

Michael.Navara
Advisor
Advisor
Accepted solution

Sorry, I forget to save the document before uploading.

Here is new samples with code for export preview from model

 

Code sample

Dim part As Document = ThisDoc.Document

'Create new document view
Dim view As Inventor.View = part.Views.Add()

'Setup view for export
view.DisplayMode = DisplayModeEnum.kWireframeWithHiddenEdgesRendering
view.ShowAmbientShadows = False
view.GoHome()
'etc.

'Setup background color
Dim backgroundColor As Inventor.Color = ThisApplication.TransientObjects.CreateColor(255, 255, 255, 0)

'Get current view camera object
Dim camera As Camera = view.Camera
'Export image
camera.SaveAsBitmap(part.FullFileName & ".jpg", 600, 600, backgroundColor)

'Close temporary view
view.Close()
Message 6 of 8

pepijnU6P68
Participant
Participant

Thanks,this works great!! would you know by any chance i could change the line thickness of the wire frame when exporting?

0 Likes
Message 7 of 8

Michael.Navara
Advisor
Advisor
0 Likes
Message 8 of 8

pepijnU6P68
Participant
Participant
No problem, thanks for the help!
0 Likes