I have a rule called 'ProcessPNG' that will create jpg and png images and sends them to a folder with a name.
I have another rule called 'Report' that will ProcessReport, which uses the images created and puts them into a word doc. I can run the 'ProcessPNG' rule first and it works, then when I run the 'Report' rule it works correctly also.
I need one rule that will process the 'ProcessPNG' rule first and wait for it to complete, then process the 'Report' rule.
Any suggestions?
I typically have the image writing rule return the path to the image, then supply that rule name to the PictureFile parameter in the picture writer child. That way, when the picture writer child gets evaluated, it demands the value of my image writing rule. See the Office Sample in the ETO Samples project for an example.
Chris
Thanks for the reply. I set up my rules according to your response and can see when the picture writer child gets evaluated it demands the value of my image writing rule. That is now working, I am still having some problems
with crashing when I evaluate the 'report' rule. It would be helpful to see some examples.
You mentioned "See the Office Sample in the ETO Samples project for an example."
I search my folders and couldn't fine the sample file, can you give me a location where they should be
or is there a download link I may not have these files.
Thanks, John
Autodesk Intent™ Professional 2011
64-Bit Edition
Copyright © 2010 Autodesk, Inc.
Version 4.3
Build: 482 Date: 4/26/2011
With
AutoCAD 2011
Hi John,
The Office Sample is an Inventor sample. The use of the office designs is the same in any host, this sample just uses an Inventor model.
To look at the sample, start Inventor and open the Intent Samples project. It should be in your projects list. Create a new Intent (mm) assembly, and set the root design to Office Sample.
Chris
This is the system that I am using:
Autodesk Intent™ Professional 2011
64-Bit Edition
Copyright © 2010 Autodesk, Inc.
Version 4.3
Build: 482 Date: 4/26/2011
With
AutoCAD 2011
Since I don't have Inventor is there a way I can get the Office Sample for my system?
John
We don't have a working sample for AutoCAD, but you can look at the designs by adding the Inventor samples to your library search path. On Win7 and Vista, you can find the Inventor Samples here:
C:\Users\Public\Documents\Autodesk\Intent 2011\Inventor\Samples
The most interesting design for you will be WordDocument.iks
Rule DoIt As Any
ProcessPNG
Report
End Rule
Piece of cake...
WIthin a rule, evaluations are procedural.
BTW the rule-name above is "doit" (with an "i") not "DOLT" (with an "L"). The font makes it look bad. Obviously, no insult was intended!
Here is an example of a rule that writes a png file to a folder(below).When I envoke this rule it will not run until
I mouse over the Model View. As soon as I mouse over the Model view it runs. Could there be something in my settings that requires this.
Rule ACADPNGOut As Any
acad_Command({"Model" })
acad_Command({"Filedia", "0"}) 'Added
acad_Command({"-View", "Restore", "CBCIso"})'Added
acad_command({"Zoom", "Extents"})'Added
acad_command({"PERSPECTIVE", "1"})'Added
acad_command({"PNGOUT", PNGFileName,"ALL", ""})
acad_Command({"-View", "Orthographic", "Front"})
acad_command({"PERSPECTIVE", "0"})
Return PNGFileName
End Rule