i have a lot of drawings.
i will open the drawing, i will make a zoom all and save it with a new name.
i have written a small example, but it doesn't work.
Solved! Go to Solution.
Solved by ynapeu. Go to Solution.
You mean these lines, unfortunately, 'Foreach' does not exist.
error CS1061: "DocumentCollection"has no Foreach......
Application.DocumentManager.ForEach(ofd.FileNames, delegate(Document doc) { doc.Editor.Command("._TILEMODE", "1"); doc.Editor.Command("._ZOOM", "_E"); doc.Save(); } );
ForEach is an extension method that is added by the code that is attached to that post. To use it you must add the code file attached to that post to your project.
If one would read the documentation, it would be half as difficult. The center point, height, and width must be specified in DCS coordinates.
@ynapeu wrote:If one would read the documentation, it would be half as difficult. The center point, height, and width must be specified in DCS coordinates.
I'm not sure what that has to do with not bothering to read the post I linked to, where it clearly states that the source code needed for the example code in the post was in an attached file.
Can't find what you're looking for? Ask the community or share your knowledge.