Sample Code
Marcellus Zebra
11/20/2013 9:33 AM
|
---|
Hi,
I work with WoutWare products from a pair of years.
Obviously I tested also a lot of cad libraries alternatives but I think the rigorous mathematical approach produces really the best results.
The only real problem is that not all developers can work for months for understand completly all required matrix computations for obtain a (simple) result.
In example, I want to generate a good Pdf file from my application that contains the current control view. I requested help in forum without success.
I understand that the customer care is expensive and requires a lot of time.
So my suggestion is this.
Why you don't allow developers to access your Sharp Viewer code instead of the really poor samples installed with libraries?
I think Sharp Viewer implements the 90% of a developer's requested features.
A good license agreement can protect you from malicious users.
If not, please increment samples capabilities and/or forum support.
Thank's very much and sorry for my terrible english,
marc.
|
Wout
11/26/2013 5:06 PM
|
---|
Hi Marc,
For unexperienced users the matrix transformations can be a little bit intimidating but you don't need to understand all the details to use it. The DWG DXF Sharp Viewer also does not contain export to PDF using a clip rectangle. In the topic that Rammi answered using a layout/viewport, that is one option. You could also use the PDF clipping, but the PDF would be bigger than necessary ofcourse, especially if you are clipping most of the drawing away. For clipping use PdfPageConfiguration.ClipRectangle in the PdfExporter.DrawPage. In general you'll need to do the following:
C# Code: / |