I have an external ilogic rule that creates a set of DWF drawings for all parts and subassemblies (as long as the idw files exist) within and including a main assembly.
I would like to merge all the DWF drawings of the sub assemblies and component parts into the DWF of the main assembly. Is there a method within DWFAddIn that will allow me to merge the files? Is there another way that I can merge the DWF files using the same ilogic rule (one rule to create and merge all DWF's together?)
I'm thinking that this can't be done at this present time.
Assuming that nothing has changed in the last year and a half or so, it looks like there might not be a mechanism exposed in the API to do this:
But if you'd like to look for yourself, I think the DWF toolkit would be the place to start:
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.
Thanks for your help Curtis, I thought this might be the case - I've been looking all over for an answer to my question but without success. I have looked at the "aggregate" example in the DWF toolkit but my C++ is very rusty and I can't follow the flow of the code. Well, I guess I'll look at a secondary step after the files have been batch published. (Thanks, by the way, for displaying the code to batch publish on your blog - it was very helpful.)
I have created some code that merges all idw's under an assembly into a single idw which I can then export to dwf. This works great except for the title block.
The title block has been used by our company for years and uses the drawing "part number" as the drawing number. This is fine except that when I append idw's into the assembly idw, the title block shows the drawing part number of the assembly on all pages - essentially erasing the part number from the title block of all the other drawings. I would like to modify the title block definition during the execution of my ilogic code to change the text box from using the drawing properties for the part number to the model for the part number.
I have tested this by manually changing the assembly document to use the model part number instead of the drawing part number and it works. I could change the template definition for new drawings but we have many old drawings that I would have to change manually to make this work.
I have used the following code to identify the text box but I'm stuck as to how to change the text definition.
Dim oTB oTB = oDrawDoc.TitleBlock Dim oTxtBoxSearch Dim I For I = 1 To oTB.Definition.Sketch.TextBoxes.Count oEachText = oTB.Definition.Sketch.TextBoxes(I) If (oTxtBoxSearch.Text = "PART NUMBER") Then MessageBox.Show("Found Part Number", "Title") Exit For Else MessageBox.Show("No Part Number", "Title") End If Next I
The current text box shows this:
And I'd like to change it to this:
Thanks in advance!
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.