If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

iLogic DWF Export Problem

Hello All,

I have been attempting to use iLogic to generate a dwf. The rule I created contains the verbatim code from the "Publish DWF 2D and 3D" snippet. The problem is that the rule does not generate the 3d model, only the sheet. I have tested this on numerous drawings, with the same result. The only fix I have found is to initiate the Export > Export to DWF command using the "Complete" option, or "Custom" and selecting "3D Model" in the Drawing tab. The rule will then function correctly. Obviously this is a waste of time.

I have just begun playing with iLogic, so I do not know how to tweak the code to get it to work.

I was going to attach a sample ipt and its idw, but I was unable to upload the zip (or any file, for that matter), so I am pasting the code here instead:

Re: iLogic DWF Export Problem

Bunny i think i found the answer for this problem. There is a line of code missing in the Inventor Snippet. Add the red line of code and the ilogic-rule is working for me.
If DWFAddIn.HasSaveCopyAsOptions(oDataMedium, oContext, oOptions) Then
oOptions.Value("Launch_Viewer") = launchviewer
oOptions.Value("Publish_All_Component_Props") = 1
oOptions.Value("Publish_All_Physical_Props") = 1
oOptions.Value("Password") = 0
oOptions.Value("Publish_3D_Models") = Publish_3D_Models
If TypeOf oDocument Is DrawingDocument Then

Re: iLogic DWF Export Problem

Re: iLogic DWF Export Problem

This was great and help me do some things I wanted as well but I have something else I would like to do. I would like to use code to open a dwf markup and then republish the markup. Here is how I modified the code for the first step of making the dwf for the next person to check and mark up:

Re: iLogic DWF Export Problem

Originally Posted by RvdVeek

Bunny i think i found the answer for this problem. There is a line of code missing in the Inventor Snippet. Add the red line of code and the ilogic-rule is working for me.
If DWFAddIn.HasSaveCopyAsOptions(oDataMedium, oContext, oOptions) Then
oOptions.Value("Launch_Viewer") = launchviewer
oOptions.Value("Publish_All_Component_Props") = 1
oOptions.Value("Publish_All_Physical_Props") = 1
oOptions.Value("Password") = 0
oOptions.Value("Publish_3D_Models") = Publish_3D_Models
If TypeOf oDocument Is DrawingDocument Then

Rob.

Rob,

Can you add a line that would override the sheet color to be white? The pale yellow is great for reducing eye-strain, but not so hot for copy.