feat(java): implement PDF printing and block coordinate finding
This commit adds significant new functionality to the Aspose_CAD_Java project: - CadToPdfPrinter.java: Enables direct printing of CAD files to PDF documents. - ParameterizedCadPrinter.java & PrintByCoordinates.java: Provide advanced printing options, allowing for parameterized and coordinate-based exports. - FindBlockCoordinates.java: A utility to locate block coordinates within CAD drawings, essential for automation. The build system has been updated (pom.xml) to include these new classes, and new run scripts have been added for easier execution. Also includes a large set of examples from the official repository. Relevant .specstory documentation has been added.
This commit is contained in:
parent
fc79d59e53
commit
ec09c612b8
167
.specstory/history/2025-09-10_13-30Z-导出特定布局为pdf的java程序.md
Normal file
167
.specstory/history/2025-09-10_13-30Z-导出特定布局为pdf的java程序.md
Normal file
@ -0,0 +1,167 @@
|
||||
<!-- Generated by SpecStory -->
|
||||
|
||||
# 导出特定布局为pdf的java程序 (2025-09-10 13:30Z)
|
||||
|
||||
_**User (2025-09-10 13:06Z)**_
|
||||
|
||||
https://docs.aspose.com/cad/zh/java/developer-guide/autocad-drawings/dwg-drawings/#%E5%AF%BC%E5%87%BA%E7%89%B9%E5%AE%9A-dwg-%E5%B8%83%E5%B1%80%E4%B8%BA-pdf
|
||||
https://docs.aspose.com/cad/zh/java/developer-guide/autocad-drawings/dxf-drawings/#%E5%AF%BC%E5%87%BA%E7%89%B9%E5%AE%9A%E7%9A%84-dxf-%E5%B8%83%E5%B1%80%E4%B8%BA-pdf
|
||||
|
||||
在文件夹里,创建一个java程序,作用是导出dwg/DXF中,特定的布局为pdf
|
||||
|
||||
输入文件后,你先询问要哪个布局,然后再打印
|
||||
|
||||
---
|
||||
|
||||
_**Assistant**_
|
||||
|
||||
<think><details><summary>Thought Process</summary>**Planning the Java Project**
|
||||
|
||||
I've started sketching out the Java project's architecture. I'm considering the necessary libraries for DWG/DXF parsing and PDF generation. Right now, I'm weighing options for those libraries, considering their features and ease of integration. I'm aiming for a modular design to keep it manageable, since the core functionality is complex.
|
||||
|
||||
|
||||
**Assessing Project Foundation**
|
||||
|
||||
I've reviewed the `02_Aspose_CAD_Java` directory structure and `pom.xml`. Reusing this structure seems feasible. I now understand the existing dependencies, which will greatly aid in integrating the new functionality. I'm also working on determining the proper package structure for the new `ExportLayoutToPdf.java` file within `src/main/java`.
|
||||
|
||||
|
||||
**Examining the Current Setup**
|
||||
|
||||
I've started listing the files in the `02_Aspose_CAD_Java/src/main/java` directory to determine the existing Java files. Next, I plan to inspect the `pom.xml` file to learn about the project's dependencies, paying close attention to how Aspose.CAD is included. This will give me a clear understanding of the current structure before I begin creating `ExportLayoutToPdf.java` and implementing the layout export logic.
|
||||
|
||||
|
||||
</details></think>
|
||||
|
||||
---
|
||||
|
||||
好的,我将为您创建一个Java程序,该程序可以从DWG或DXF文件中导出指定的布局为PDF。
|
||||
|
||||
程序将首先接收一个文件路径作为输入,然后分析文件中的所有布局,并要求您选择要导出的布局,最后将选定的布局保存为PDF文件。
|
||||
|
||||
我将把这个新的Java程序放在 `02_Aspose_CAD_Java/java` 目录下。
|
||||
|
||||
在开始编写代码之前,我需要先了解一下现有Java项目的结构。首先,我将查看 `02_Aspose_CAD_Java/java/src/main/java` 目录下的文件,并检查 `pom.xml` 文件以确认Aspose.CAD的依赖配置。
|
||||
|
||||
---
|
||||
|
||||
```bash
|
||||
ls -R 02_Aspose_CAD_Java/java/src/main/java
|
||||
```
|
||||
|
||||
```
|
||||
-a---- 2025/9/8 16:26 4932 ApiExplorer.java
|
||||
-a---- 2025/9/10 21:28 4530 CadToPdfPrinter.java
|
||||
-a---- 2025/9/8 16:50 8245 ColorAnalyzer.java
|
||||
-a---- 2025/9/8 16:50 9973 GreenLineExtractor.java
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
<think><details><summary>Thought Process</summary>**Understanding the Project Structure**
|
||||
|
||||
I've started by examining the Java files; they lack a package structure and reside directly in `src/main/java`. Consequently, I'll mirror this structure. Now, the `pom.xml` file is next on my list, so I can get to grips with the dependencies, especially those relating to Aspose.
|
||||
|
||||
|
||||
**Investigating the pom.xml**
|
||||
|
||||
I've scrutinized the `pom.xml` file. I am currently focusing on the Aspose.CAD dependency, and I'll need to confirm the version and examine the transitive dependencies. I'll then make sure the project builds without any errors related to missing dependencies.
|
||||
|
||||
|
||||
</details></think>
|
||||
|
||||
---
|
||||
|
||||
好的,我看到现有的Java文件了,它们似乎都在`src/main/java`的根目录下,没有包结构。我将遵循这个约定。
|
||||
|
||||
接下来,我要检查`pom.xml`文件以了解项目的依赖关系,这对于确保我使用正确的Aspose.CAD库版本和其他依赖项至关重要。
|
||||
|
||||
---
|
||||
|
||||
Read file: undefined
|
||||
|
||||
---
|
||||
|
||||
<think><details><summary>Thought Process</summary>**Defining the Environment**
|
||||
|
||||
I've confirmed the project utilizes `as pose-cad` version `24.5` and Java 11, as per the `pom.xml` details. This foundational information allows me to proceed. Next, I'll formulate an action plan, anticipating user confirmation before advancing.
|
||||
|
||||
|
||||
**Developing the Java Code**
|
||||
|
||||
I'm now immersed in the coding phase, generating the `ExportLayoutToPdf.java` file. The logic is taking shape: importing required libraries, incorporating a `main` method, and parsing command-line arguments for the input CAD file. I'm planning to retrieve and display available layouts to prompt user selection. The next steps involve validating input, configuring `CadRasterizationOptions` with the selected layout and PDF generation parameters.
|
||||
|
||||
|
||||
**Planning the Implementation**
|
||||
|
||||
I've now fully formulated the implementation plan. I'll begin by creating `ExportLayoutToPdf.java` and then implement the core logic. This includes importing necessary libraries, crafting a `main` method, handling command-line arguments, loading the CAD file, retrieving and displaying layouts, prompting user input, and validating the chosen layout. I'll use `CadRasterizationOptions` and `PdfOptions` for configuration and handle error scenarios, including file not found or invalid layout selection. I am ready to start coding, pending your feedback on the proposed approach.
|
||||
|
||||
|
||||
**Outlining the Program**
|
||||
|
||||
I've reviewed the requirements and formulated a detailed plan. The core logic is clear: receive a DWG/DXF file, list available layouts, prompt for user selection, and export the chosen layout to PDF. I'll start by creating `ExportLayoutToPdf.java` and coding the steps, starting with input handling and layout retrieval. Your affirmation will trigger file creation and initial coding.
|
||||
|
||||
|
||||
</details></think>
|
||||
|
||||
---
|
||||
|
||||
好的,我已经分析了你的需求。我的计划如下:
|
||||
|
||||
1. 在 `02_Aspose_CAD_Java/java/src/main/java/` 目录下创建一个新的 Java 文件 `ExportLayoutToPdf.java`。
|
||||
2. 在该文件中编写代码,实现以下功能:
|
||||
* 程序启动后,要求用户输入一个 DWG 或 DXF 文件的路径。
|
||||
* 加载该文件并列出其中所有的布局。
|
||||
* 提示用户选择一个要导出的布局。
|
||||
* 将选定的布局导出为 PDF 文件,并保存在与输入文件相同的目录下。
|
||||
|
||||
这个方案是否可行?如果可以,我将开始编写代码。
|
||||
|
||||
---
|
||||
|
||||
## Todo List
|
||||
|
||||
- [-] 在 `02_Aspose_CAD_Java/java/src/main/java/` 目录下创建 `ExportLayoutToPdf.java` 文件。
|
||||
- [ ] 在 `ExportLayoutToPdf.java` 中实现加载 DWG/DXF、列出布局、请求用户选择并导出为 PDF 的逻辑。
|
||||
- [ ] 指导用户如何编译和运行新的 Java 程序。
|
||||
|
||||
---
|
||||
|
||||
_**User (2025-09-10 13:06Z)**_
|
||||
|
||||
文件路径在 C:\Users\83500\久翌\CAD编辑同步excel\测试文件区\pure
|
||||
|
||||
---
|
||||
|
||||
_**Assistant**_
|
||||
|
||||
<think><details><summary>Thought Process</summary>**Beginning the Implementation**
|
||||
|
||||
I've received the go-ahead and am now initiating the coding phase. First up, I'm creating `ExportLayoutToPdf.java` in the designated directory. This sets the foundation for exporting the CAD layout.
|
||||
|
||||
|
||||
**File Creation Commences**
|
||||
|
||||
I'm now focused on the coding phase, starting with creating `ExportLayoutToPdf.java`. I will handle command-line arguments, load the CAD file using Aspose.CAD, then present the user with a list of layouts. This'll involve selecting the layout, configuring PDF options, and finally saving the output. I'll also provide compile/run instructions using Maven. Finally, I'll check the example directory the user provided to prepare for their instructions.
|
||||
|
||||
|
||||
</details></think>
|
||||
|
||||
---
|
||||
|
||||
好的,我将开始在 `02_Aspose_CAD_Java/java/src/main/java/` 目录下创建 `ExportLayoutToPdf.java` 文件,并编写相应的代码。
|
||||
|
||||
根据您的指示,我将默认使用 `C:\Users\83500\久翌\CAD编辑同步excel\测试文件区\pure` 目录下的文件进行操作。为了方便您测试,我先列出该目录下的文件。
|
||||
|
||||
---
|
||||
|
||||
```bash
|
||||
ls C:\Users\83500\久翌\CAD编辑同步excel\测试文件区\pure
|
||||
```
|
||||
|
||||
```
|
||||
PS C:\Users\83500\久翌\CAD编辑同步excel\测试文件区> ^C
|
||||
PS C:\Users\83500\久翌\CAD编辑同步excel\测试文件区>
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
1
02_Aspose_CAD_Java/Aspose.CAD-for-Java-master/.gitignore
vendored
Normal file
1
02_Aspose_CAD_Java/Aspose.CAD-for-Java-master/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/Examples/target/
|
||||
@ -0,0 +1,18 @@
|
||||
## Aspose.CAD for Java Examples
|
||||
|
||||
This repository contains Java Example Project for [Aspose.CAD for Java](https://products.aspose.com/cad/java) which will help you learn Aspose.CAD for Java and write your own applications.
|
||||
|
||||
<p align="center">
|
||||
<a title="Download Examples ZIP" href="https://github.com/aspose-cad/Aspose.CAD-for-Java/archive/master.zip">
|
||||
<img src="https://raw.github.com/AsposeExamples/java-examples-dashboard/master/images/downloadZip-Button-Large.png" />
|
||||
</a>
|
||||
</p>
|
||||
|
||||
|
||||
## How to Run the Examples?
|
||||
|
||||
After you have downloaded the ZIP file from the [Download ZIP](https://github.com/aspose-cad/Aspose.CAD-for-Java/archive/master.zip) link above, please check the following link with detailed instructions on how to run these Source Code Examples.
|
||||
|
||||
[How to Run the Examples](https://docs.aspose.com/display/cadjava/How+to+Run+the+Examples)
|
||||
|
||||
Please feel free to contact us if you have any question, issue or suggestion.
|
||||
@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.aspose</groupId>
|
||||
<artifactId>cad-java-examples</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
<properties>
|
||||
<maven.compiler.source>1.7</maven.compiler.source>
|
||||
<maven.compiler.target>1.7</maven.compiler.target>
|
||||
</properties>
|
||||
<dependencies>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.aspose</groupId>
|
||||
<artifactId>aspose-cad</artifactId>
|
||||
<version>20.8</version>
|
||||
<classifier>javadoc</classifier>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.aspose</groupId>
|
||||
<artifactId>aspose-cad</artifactId>
|
||||
<version>20.9</version>
|
||||
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>AsposeJavaAPI</id>
|
||||
<name>Aspose Java API</name>
|
||||
<url>https://repository.aspose.com/repo/</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
</project>
|
||||
@ -0,0 +1,45 @@
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package IGESDrawings;
|
||||
|
||||
import PLTDrawings.*;
|
||||
import com.aspose.cad.examples.DWGDrawings.*;
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.CADConversion.PenSupportInExport;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadDrawTypeMode;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.CadText;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
import java.awt.Color;
|
||||
|
||||
|
||||
public class ExportIGEStoPDF {
|
||||
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
//ExStart:ExportIGEStoPDF
|
||||
String dataDir = Utils.getDataDir(ExportIGEStoPDF.class) + "IGESDrawings/";
|
||||
String PLTPathToFile = dataDir + "figa2.igs";
|
||||
Image image = Image.load(PLTPathToFile);
|
||||
|
||||
//Setting PDF Options
|
||||
PdfOptions pdfOptions = new PdfOptions();
|
||||
CadRasterizationOptions cadRasterizationOptions = new CadRasterizationOptions();
|
||||
cadRasterizationOptions.setDrawType(CadDrawTypeMode.UseObjectColor);
|
||||
cadRasterizationOptions.setPageHeight(1000);
|
||||
cadRasterizationOptions.setPageWidth(1000);
|
||||
|
||||
pdfOptions.setVectorRasterizationOptions(cadRasterizationOptions);
|
||||
|
||||
//Saving to PDF
|
||||
image.save(dataDir+"figa2.pdf", pdfOptions);
|
||||
|
||||
//ExEnd:ExportIGEStoPDF
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,48 @@
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package PLTDrawings;
|
||||
|
||||
import com.aspose.cad.examples.DWGDrawings.*;
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.CADConversion.PenSupportInExport;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadDrawTypeMode;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.CadText;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.JpegOptions;
|
||||
import com.aspose.cad.ImageOptionsBase;
|
||||
|
||||
import java.awt.Color;
|
||||
|
||||
|
||||
public class ExportPLTtoImage {
|
||||
|
||||
|
||||
public static void main(String[] args){
|
||||
String dataDir = Utils.getDataDir(ExportPLTtoImage.class) + "PLTDrawings\\";
|
||||
|
||||
//ExStart:ExportPLTtoImage
|
||||
|
||||
String PLTPathToFile = dataDir + "50states.plt";
|
||||
Image image = Image.load(PLTPathToFile);
|
||||
|
||||
//Setting PDF Options
|
||||
ImageOptionsBase imageOptions = new JpegOptions();
|
||||
|
||||
CadRasterizationOptions cadRasterizationOptions = new CadRasterizationOptions();
|
||||
cadRasterizationOptions.setDrawType(CadDrawTypeMode.UseObjectColor);
|
||||
cadRasterizationOptions.setPageHeight(1600);
|
||||
cadRasterizationOptions.setPageWidth(1600);
|
||||
cadRasterizationOptions.setBackgroundColor(com.aspose.cad.Color.getBlack());
|
||||
imageOptions.setVectorRasterizationOptions(cadRasterizationOptions);
|
||||
|
||||
//Saving to Image
|
||||
image.save(dataDir+"50states.jpeg", imageOptions);
|
||||
|
||||
//ExEnd:ExportPLTtoImage
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,43 @@
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package PLTDrawings;
|
||||
|
||||
import com.aspose.cad.examples.DWGDrawings.*;
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.CADConversion.PenSupportInExport;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadDrawTypeMode;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.CadText;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
import java.awt.Color;
|
||||
|
||||
|
||||
public class ExportPLTtoPDF {
|
||||
|
||||
|
||||
public static void main(String[] args){
|
||||
//ExStart:ExportPLTtoPDF
|
||||
String dataDir = Utils.getDataDir(ExportPLTtoPDF.class) + "PLTDrawings\\";
|
||||
String PLTPathToFile = dataDir + "50states.plt";
|
||||
Image image = Image.load(PLTPathToFile);
|
||||
|
||||
//Setting PDF Options
|
||||
PdfOptions pdfOptions = new PdfOptions();
|
||||
CadRasterizationOptions cadRasterizationOptions = new CadRasterizationOptions();
|
||||
cadRasterizationOptions.setDrawType(CadDrawTypeMode.UseObjectColor);
|
||||
cadRasterizationOptions.setPageHeight(1600);
|
||||
cadRasterizationOptions.setPageWidth(1600);
|
||||
cadRasterizationOptions.setBackgroundColor(com.aspose.cad.Color.getBlack());
|
||||
pdfOptions.setVectorRasterizationOptions(cadRasterizationOptions);
|
||||
|
||||
//Saving to PDF
|
||||
image.save(dataDir+"50states.pdf", pdfOptions);
|
||||
|
||||
//ExEnd:ExportPLTtoPDF
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
package com.aspose.cad.examples.ApplyLicense;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public class MeteredLicensing
|
||||
{
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
//ExStart:MeteredLicensing
|
||||
|
||||
// Access the setMeteredKey property and pass public and private keys as parameters
|
||||
com.aspose.cad.Metered.setMeteredKey("<valid pablic key>", "<valid private key>");
|
||||
|
||||
// Get consumed qantity value before accessing API
|
||||
BigDecimal quantityOld = com.aspose.cad.Metered.getConsumptionQuantity();
|
||||
System.out.println("Consumption quantity" + quantityOld);
|
||||
|
||||
// DO PROCESSING
|
||||
//com.aspose.cad.fileformats.cad.CadImage image =
|
||||
// (com.aspose.cad.fileformats.cad.CadImage)com.aspose.cad.Image.load("BlockRefDgn.dwg");
|
||||
|
||||
|
||||
// Get consumed qantity value after accessing API
|
||||
BigDecimal quantity = com.aspose.cad.Metered.getConsumptionQuantity();
|
||||
System.out.println("Consumption quantity" + quantity());
|
||||
|
||||
//ExEnd:MeteredLicensing
|
||||
}
|
||||
|
||||
private static String quantity() {
|
||||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,45 @@
|
||||
package com.aspose.cad.examples.CADConversion;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.ImageOptionsBase;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PngOptions;
|
||||
|
||||
public class AdjustingCADDrawingSizeUsingUnitType
|
||||
{
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
//ExStart:AdjustingCADDrawingSizeUsingUnitType
|
||||
String dataDir = Utils.getDataDir(AdjustingCADDrawingSizeUsingUnitType.class) + "CADConversion/";
|
||||
// Path to source file
|
||||
String sourceFilePath = dataDir + "sample.dwg";
|
||||
|
||||
// Load a CAD drawing in an instance of Image
|
||||
Image image = Image.load(sourceFilePath);
|
||||
|
||||
|
||||
// Create an instance of BmpOptions class
|
||||
com.aspose.cad.imageoptions.BmpOptions bmpOptions = new com.aspose.cad.imageoptions.BmpOptions();
|
||||
|
||||
// Create an instance of CadRasterizationOptions and set its various properties
|
||||
com.aspose.cad.imageoptions.CadRasterizationOptions cadRasterizationOptions =
|
||||
new com.aspose.cad.imageoptions.CadRasterizationOptions();
|
||||
|
||||
bmpOptions.setVectorRasterizationOptions(cadRasterizationOptions);
|
||||
|
||||
// Set the UnitType property
|
||||
cadRasterizationOptions.setUnitType(com.aspose.cad.imageoptions.UnitType.Centimenter);
|
||||
|
||||
// Set the layouts property
|
||||
cadRasterizationOptions.setLayouts( new String[] { "Model" } );
|
||||
|
||||
// Export layout to BMP format
|
||||
String outPath = sourceFilePath + ".bmp";
|
||||
image.save(outPath, bmpOptions);
|
||||
//ExEnd:AdjustingCADDrawingSizeUsingUnitType
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package com.aspose.cad.examples.CADConversion;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.ImageOptionsBase;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PngOptions;
|
||||
|
||||
public class AutoAdjustingCADDrawingSize
|
||||
{
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
//ExStart:AutoAdjustingCADDrawingSize
|
||||
String dataDir = Utils.getDataDir(AutoAdjustingCADDrawingSize.class) + "CADConversion/";
|
||||
// Path to source file
|
||||
String sourceFilePath = dataDir+"sample.dwg";
|
||||
|
||||
// Load a CAD drawing in an instance of Image
|
||||
com.aspose.cad.Image objImage = com.aspose.cad.Image.load(sourceFilePath);
|
||||
|
||||
// Create an instance of BmpOptions class
|
||||
com.aspose.cad.imageoptions.BmpOptions bmpOptions = new com.aspose.cad.imageoptions.BmpOptions();
|
||||
|
||||
// Create an instance of CadRasterizationOptions and set its various properties
|
||||
com.aspose.cad.imageoptions.CadRasterizationOptions cadRasterizationOptions =
|
||||
new com.aspose.cad.imageoptions.CadRasterizationOptions();
|
||||
|
||||
bmpOptions.setVectorRasterizationOptions(cadRasterizationOptions);
|
||||
|
||||
// Set the layouts property
|
||||
cadRasterizationOptions.setLayouts( new String[] { "Model" } );
|
||||
|
||||
// Export layout to BMP format
|
||||
String outPath = sourceFilePath + ".bmp";
|
||||
objImage.save(outPath, bmpOptions);
|
||||
//ExEnds:AutoAdjustingCADDrawingSize
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,52 @@
|
||||
package com.aspose.cad.examples.CADConversion;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.fileformats.cad.cadtables.CadLayerTable;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.JpegOptions;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
public class ConvertAllCADLayersToSeparateImages {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(ConvertAllCADLayersToSeparateImages.class) + "CADConversion/";
|
||||
//ExStart:ConvertAllCADLayersToSeparateImages
|
||||
String srcFile = dataDir + "conic_pyramid.dxf";
|
||||
|
||||
// Load a CAD drawing in an instance of CadImage
|
||||
CadImage image = (CadImage) Image.load(srcFile);
|
||||
|
||||
// Create an instance of CadRasterizationOptions
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
|
||||
// Set image width & height
|
||||
rasterizationOptions.setPageWidth(500);
|
||||
rasterizationOptions.setPageHeight(500);
|
||||
|
||||
// Get the layers in an instance of CadLayersDictionary.
|
||||
// Iterate over the layers
|
||||
for (String layer : image.getLayers().getLayersNames())
|
||||
{
|
||||
// Display layer name for tracking
|
||||
System.out.println("Start with " +layer);
|
||||
|
||||
List<String> stringList = Arrays.asList(layer);
|
||||
// Add the layer name to the CadRasterizationOptions's layer list
|
||||
rasterizationOptions.setLayers(stringList);
|
||||
|
||||
// Create an instance of JpegOptions (or any ImageOptions for raster formats)
|
||||
JpegOptions options = new JpegOptions();
|
||||
// Set VectorRasterizationOptions property to the instance of CadRasterizationOptions
|
||||
options.setVectorRasterizationOptions(rasterizationOptions);
|
||||
// Export each layer to JPEG format
|
||||
image.save(dataDir + layer + "_out_.jpg", options);
|
||||
}
|
||||
//ExEnd:ConvertAllCADLayersToSeparateImages
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,36 @@
|
||||
package com.aspose.cad.examples.CADConversion;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.ImageOptionsBase;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PngOptions;
|
||||
|
||||
public class ConvertCADDrawingToRasterImageFormat {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
String dataDir = Utils.getDataDir(ConvertCADDrawingToRasterImageFormat.class) + "CADConversion/";
|
||||
//ExStart:ConvertCADDrawingToRasterImageFormat
|
||||
String srcFile = dataDir + "conic_pyramid.dxf";
|
||||
|
||||
Image image = Image.load(srcFile);
|
||||
|
||||
// Create an instance of CadRasterizationOptions
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
// Set page width & height
|
||||
rasterizationOptions.setPageWidth(1200);
|
||||
rasterizationOptions.setPageHeight(1200);
|
||||
|
||||
// Create an instance of PngOptions for the resultant image
|
||||
ImageOptionsBase options = new PngOptions();
|
||||
//Set rasterization options
|
||||
options.setVectorRasterizationOptions(rasterizationOptions);
|
||||
|
||||
// Save resultant image
|
||||
image.save(dataDir + "conic_pyramid_raster_image_out_.png", options);
|
||||
//ExEnd:ConvertCADDrawingToRasterImageFormat
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,44 @@
|
||||
package com.aspose.cad.examples.CADConversion;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.DWGDrawings.ExportSpecificDWGLayoutToPDF;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.JpegOptions;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
public class ConvertCADLayerToRasterImageFormat {
|
||||
|
||||
public static void main(String[] args) {
|
||||
//ExStart:ConvertCADLayerToRasterImageFormat
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(ConvertCADLayerToRasterImageFormat.class) + "CADConversion/";
|
||||
|
||||
String srcFile = dataDir + "conic_pyramid.dxf";
|
||||
|
||||
// Load a CAD drawing in an instance of Image
|
||||
Image image = Image.load(srcFile);
|
||||
|
||||
// Create an instance of CadRasterizationOptions
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
// Set image width & height
|
||||
rasterizationOptions.setPageWidth(500);
|
||||
rasterizationOptions.setPageHeight(500);
|
||||
|
||||
|
||||
|
||||
List<String> stringList = new ArrayList<>(Arrays.asList("0"));
|
||||
// Add the layer name to the CadRasterizationOptions's layer list
|
||||
rasterizationOptions.setLayers(stringList);
|
||||
|
||||
// Create an instance of JpegOptions (or any ImageOptions for raster formats)
|
||||
JpegOptions options = new JpegOptions();
|
||||
// Set VectorRasterizationOptions property to the instance of CadRasterizationOptions
|
||||
options.setVectorRasterizationOptions(rasterizationOptions);
|
||||
// Export each layer to JPEG format
|
||||
image.save(dataDir + "CADLayersToRasterImageFormats_out_.jpg", options);
|
||||
//ExEnd:ConvertCADLayerToRasterImageFormat
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,42 @@
|
||||
package com.aspose.cad.examples.CADConversion;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.ImageOptionsBase;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.tiff.enums.TiffExpectedFormat;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.TiffOptions;
|
||||
|
||||
public class ConvertCADLayoutToRasterImageFormat {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(ConvertCADLayoutToRasterImageFormat.class) + "CADConversion/";
|
||||
//ExStart:ConvertCADLayoutToRasterImageFormat
|
||||
String srcFile = dataDir + "conic_pyramid.dxf";
|
||||
|
||||
Image image = Image.load(srcFile);
|
||||
|
||||
// Create an instance of CadRasterizationOptions
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
|
||||
// Set page width & height
|
||||
rasterizationOptions.setPageWidth(1200);
|
||||
rasterizationOptions.setPageHeight(1200);
|
||||
|
||||
// Specify a list of layout names
|
||||
rasterizationOptions.setLayouts(new String[] {"Model", "Layout1"});
|
||||
|
||||
// Create an instance of TiffOptions for the resultant image
|
||||
ImageOptionsBase options = new TiffOptions(TiffExpectedFormat.Default);
|
||||
|
||||
// Set rasterization options
|
||||
options.setVectorRasterizationOptions(rasterizationOptions);
|
||||
|
||||
// Save resultant image
|
||||
image.save(dataDir + "conic_pyramid_layoutstorasterimage_out_.tiff", options);
|
||||
//ExEnd:ConvertCADLayoutToRasterImageFormat
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,37 @@
|
||||
package com.aspose.cad.examples.CADConversion;
|
||||
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.OutputStream;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
|
||||
public class EnableTrackingForCADRenderingProcess {
|
||||
|
||||
public static void main(String[] args) throws FileNotFoundException {
|
||||
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(EnableTrackingForCADRenderingProcess.class) + "CADConversion/";
|
||||
//ExStart:EnableTrackingForCADRenderingProcess
|
||||
String srcFile = dataDir + "conic_pyramid.dxf";
|
||||
|
||||
Image image = Image.load(srcFile);
|
||||
|
||||
OutputStream stream = new FileOutputStream(dataDir + "conic_pyramid.pdf");
|
||||
PdfOptions pdfOptions = new PdfOptions();
|
||||
// Create an instance of CadRasterizationOptions and set its various properties
|
||||
CadRasterizationOptions cadRasterizationOptions = new CadRasterizationOptions();
|
||||
pdfOptions.setVectorRasterizationOptions(cadRasterizationOptions);
|
||||
cadRasterizationOptions.setPageWidth(800);
|
||||
cadRasterizationOptions.setPageHeight(600);
|
||||
|
||||
image.save(stream, pdfOptions);
|
||||
|
||||
System.out.println("Tracking enabled successfully for CAD rendering process.");
|
||||
//ExEnd:EnableTrackingForCADRenderingProcess
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,32 @@
|
||||
|
||||
package com.aspose.cad.examples.CADConversion;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
|
||||
|
||||
public class IntegrateIGESFormat {
|
||||
public static void main(String[] args)
|
||||
{
|
||||
//ExStart:IntegrateIGESFormat
|
||||
String dataDir = Utils.getDataDir(IntegrateIGESFormat.class) + "CADConversion/";
|
||||
|
||||
String sourceFilePath = dataDir + "figa2.igs";
|
||||
String outPath = dataDir +"meshes.pdf";
|
||||
|
||||
|
||||
Image igesImage = Image.load(sourceFilePath);
|
||||
|
||||
PdfOptions pdf = new PdfOptions();
|
||||
CadRasterizationOptions vectorOptions = new CadRasterizationOptions();
|
||||
vectorOptions.setPageHeight(1000) ;
|
||||
vectorOptions.setPageWidth(1000);
|
||||
|
||||
pdf.setVectorRasterizationOptions(vectorOptions);
|
||||
|
||||
igesImage.save(outPath, pdf);
|
||||
//ExEnd:IntegrateIGESFormat
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,32 @@
|
||||
|
||||
package com.aspose.cad.examples.CADConversion;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.fileformats.cad.CadLayoutDictionary;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.CadLayout;
|
||||
|
||||
|
||||
public class ListLayouts {
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
//ExStart:ListLayouts
|
||||
String dataDir = Utils.getDataDir(ListLayouts.class) + "CADConversion/";
|
||||
String sourceFilePath = dataDir + "conic_pyramid.dxf";
|
||||
|
||||
Image image = Image.load(sourceFilePath);
|
||||
|
||||
CadImage cadImage = (CadImage)image;
|
||||
|
||||
CadLayoutDictionary layouts = cadImage.getLayouts();
|
||||
for (CadLayout layout : layouts.getValues())
|
||||
{
|
||||
|
||||
System.out.println("Layout " +layout.getLayoutName());
|
||||
}
|
||||
|
||||
//ExEnd:ListLayouts
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
|
||||
package com.aspose.cad.examples.CADConversion;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
|
||||
|
||||
public class MeshSupport {
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
//ExStart:MeshSupport
|
||||
String dataDir = Utils.getDataDir(MeshSupport.class) + "CADConversion/";
|
||||
|
||||
String sourceFilePath = dataDir +"meshes.dwg";
|
||||
String outPath = dataDir + "meshes.pdf";
|
||||
|
||||
CadImage cadImage = (CadImage)Image.load(sourceFilePath);
|
||||
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
rasterizationOptions.setPageWidth(1600);
|
||||
rasterizationOptions.setPageHeight(1600);
|
||||
rasterizationOptions.setLayouts( new String[] { "Model" });
|
||||
|
||||
PdfOptions pdfOptions = new PdfOptions();
|
||||
pdfOptions.setVectorRasterizationOptions(rasterizationOptions);
|
||||
|
||||
cadImage.save(outPath, pdfOptions);
|
||||
|
||||
//ExEnd:MeshSupport
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,39 @@
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.aspose.cad.examples.CADConversion;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
import com.aspose.cad.imageoptions.PenOptions;
|
||||
import com.aspose.cad.internal.imaging.LineCap;
|
||||
|
||||
public class PenSupportInExport {
|
||||
|
||||
public static void main(String[] args) {
|
||||
//ExStart:PenSupportInExport
|
||||
String dataDir = Utils.getDataDir(PenSupportInExport.class) + "CADConversion/";
|
||||
String srcFile = dataDir + "conic_pyramid.dxf";
|
||||
CadImage cadImage = ((CadImage)(Image.load(srcFile)));
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
rasterizationOptions.setPageWidth(cadImage.getWidth() * 100);
|
||||
rasterizationOptions.setPageHeight(cadImage.getHeight() * 100);
|
||||
PdfOptions pdfOptions = new PdfOptions();
|
||||
// Here user can change default start cap and end cap of pens when exporting CadImage object to
|
||||
// image. It can be using for all image formats: pdf, png, bmp, gif, jpeg2000, jpeg, psd, tiff, wmf.
|
||||
// If user doesn't use PenOptions, system will use its own default pens (different in defferent places).
|
||||
PenOptions penOts = new PenOptions();
|
||||
penOts.setStartCap(LineCap.Flat);
|
||||
penOts.setEndCap(LineCap.Flat);
|
||||
//rasterizationOptions.setPenOptions(penOts);
|
||||
pdfOptions.setVectorRasterizationOptions(rasterizationOptions);
|
||||
cadImage.save((dataDir+"9LHATT-A56_generated.pdf"),pdfOptions);
|
||||
|
||||
//ExEnd:PenSupportInExport
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,31 @@
|
||||
package com.aspose.cad.examples.CADConversion;
|
||||
|
||||
import java.awt.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.CadBaseEntity;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.acadtable.CadTableEntity;
|
||||
import com.aspose.cad.fileformats.cad.cadtables.CadStyleTableObject;
|
||||
|
||||
public class ReadingDWT {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
// The path to the resource directory.
|
||||
//ExStart:ReadingDWT
|
||||
String dataDir = Utils.getDataDir(ReadingDWT.class) + "CADConversion/";
|
||||
String srcFile = dataDir + "conic_pyramid.dxf";
|
||||
|
||||
// Load a CAD drawing in an instance of CadImage
|
||||
//CadImage cadImage = (CadImage) Image.load(srcFile);
|
||||
com.aspose.cad.fileformats.cad.CadImage objImage =(CadImage) com.aspose.cad.Image.load(srcFile);
|
||||
|
||||
for(Object style : objImage.getStyles())
|
||||
{
|
||||
// Set the font name
|
||||
((com.aspose.cad.fileformats.cad.cadtables.CadStyleTableObject)style).setPrimaryFontName("Arial");
|
||||
}
|
||||
|
||||
//ExEnd:ReadingDWT
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,50 @@
|
||||
package com.aspose.cad.examples.CADConversion;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.awt.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadDrawTypeMode;
|
||||
import com.aspose.cad.fileformats.tiff.enums.TiffExpectedFormat;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
import com.aspose.cad.imageoptions.TiffOptions;
|
||||
|
||||
public class SetBackgroundAndDrawingColor {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(SetBackgroundAndDrawingColor.class) + "CADConversion/";
|
||||
//ExStart:SetBackgroundAndDrawingColor
|
||||
String srcFile = dataDir + "conic_pyramid.dxf";
|
||||
|
||||
// Image image = Image.load(srcFile);
|
||||
com.aspose.cad.Image objImage = com.aspose.cad.Image.load(srcFile);
|
||||
// Create an instance of CadRasterizationOptions and set its various properties
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
rasterizationOptions.setPageWidth(1600);
|
||||
rasterizationOptions.setPageHeight(1600);
|
||||
rasterizationOptions.setBackgroundColor(com.aspose.cad.Color.getBeige());
|
||||
rasterizationOptions.setDrawType(CadDrawTypeMode.UseDrawColor);
|
||||
rasterizationOptions.setBackgroundColor(com.aspose.cad.Color.getBlue());
|
||||
|
||||
|
||||
// Create an instance of PdfOptions
|
||||
PdfOptions pdfOptions = new PdfOptions();
|
||||
// Set the VectorRasterizationOptions property
|
||||
pdfOptions.setVectorRasterizationOptions(rasterizationOptions);
|
||||
|
||||
// Export CAD to PDF
|
||||
objImage.save(dataDir +"result_out_.pdf", pdfOptions);
|
||||
|
||||
// Create an instance of TiffOptions
|
||||
TiffOptions tiffOptions = new TiffOptions(TiffExpectedFormat.Default);
|
||||
|
||||
// Set the VectorRasterizationOptions property
|
||||
tiffOptions.setVectorRasterizationOptions(rasterizationOptions);
|
||||
|
||||
// Export CAD to TIFF
|
||||
objImage.save(dataDir + "result_out_.tiff", tiffOptions);
|
||||
//ExEnd:SetBackgroundAndDrawingColor
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,48 @@
|
||||
package com.aspose.cad.examples.CADConversion;
|
||||
|
||||
import java.awt.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.tiff.enums.TiffExpectedFormat;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
import com.aspose.cad.imageoptions.TiffOptions;
|
||||
|
||||
public class SetCanvasSizeAndMode {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(SetCanvasSizeAndMode.class) + "CADConversion/";
|
||||
//ExStart:SetCanvasSizeAndMode
|
||||
String srcFile = dataDir + "conic_pyramid.dxf";
|
||||
com.aspose.cad.Image objImage = com.aspose.cad.Image.load(srcFile);
|
||||
// Create an instance of CadRasterizationOptions and set its various properties
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
rasterizationOptions.setPageWidth(1600);
|
||||
rasterizationOptions.setPageHeight(1600);
|
||||
|
||||
rasterizationOptions.setAutomaticLayoutsScaling(true);
|
||||
|
||||
rasterizationOptions.setNoScaling(true);
|
||||
|
||||
// Create an instance of PdfOptions
|
||||
PdfOptions pdfOptions = new PdfOptions();
|
||||
|
||||
// Set the VectorRasterizationOptions property
|
||||
pdfOptions.setVectorRasterizationOptions(rasterizationOptions);
|
||||
|
||||
// Export CAD to PDF
|
||||
objImage.save(dataDir +"result_out_.pdf", pdfOptions);
|
||||
|
||||
// Create an instance of TiffOptions
|
||||
TiffOptions tiffOptions = new TiffOptions(TiffExpectedFormat.Default);
|
||||
|
||||
// Set the VectorRasterizationOptions property
|
||||
tiffOptions.setVectorRasterizationOptions(rasterizationOptions);
|
||||
|
||||
// Export CAD to TIFF
|
||||
objImage.save(dataDir + "result_out_.tiff", tiffOptions);
|
||||
//ExEnd:SetCanvasSizeAndMode
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,37 @@
|
||||
package com.aspose.cad.examples.CADConversion;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
|
||||
public class SettingAutoLayoutScaling {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(SettingAutoLayoutScaling.class) + "CADConversion/";
|
||||
//ExStart:SettingAutoLayoutScaling
|
||||
String srcFile = dataDir + "conic_pyramid.dxf";
|
||||
|
||||
Image image = Image.load(srcFile);
|
||||
|
||||
// Create an instance of CadRasterizationOptions and set its various properties
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
rasterizationOptions.setPageWidth(1600);
|
||||
rasterizationOptions.setPageHeight(1600);
|
||||
|
||||
// Set Auto Layout Scaling
|
||||
rasterizationOptions.setAutomaticLayoutsScaling(true);
|
||||
|
||||
// Create an instance of PdfOptions
|
||||
PdfOptions pdfOptions = new PdfOptions();
|
||||
// Set the VectorRasterizationOptions property
|
||||
pdfOptions.setVectorRasterizationOptions(rasterizationOptions);
|
||||
|
||||
// Export the CAD to PDF
|
||||
image.save(dataDir + "result_out_.pdf", pdfOptions);
|
||||
//ExEnd:SettingAutoLayoutScaling
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,29 @@
|
||||
package com.aspose.cad.examples.CADConversion;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.fileformats.cad.cadtables.CadStyleTableObject;
|
||||
|
||||
public class SubstituteFont {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(SubstituteFont.class) + "CADConversion/";
|
||||
//ExStart:SubstituteFont
|
||||
String srcFile = dataDir + "conic_pyramid.dxf";
|
||||
|
||||
// Load a CAD drawing in an instance of CadImage
|
||||
CadImage cadImage = (CadImage) Image.load(srcFile);
|
||||
|
||||
// Iterate over the items of CadStylesDictionary
|
||||
for(Object style : cadImage.getStyles())
|
||||
{
|
||||
// Set the font name
|
||||
((com.aspose.cad.fileformats.cad.cadtables.CadStyleTableObject)style).setPrimaryFontName("Arial");
|
||||
}
|
||||
|
||||
//ExEnd:SubstituteFont
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
package com.aspose.cad.examples.CADConversion;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
|
||||
public class SubstituteFontOfAParticularStyle {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(SubstituteFontOfAParticularStyle.class) + "CADConversion/";
|
||||
//ExStart:SubstituteFontOfAParticularStyle
|
||||
String srcFile = dataDir + "conic_pyramid.dxf";
|
||||
|
||||
// Load a CAD drawing in an instance of CadImage
|
||||
CadImage cadImage = (CadImage)Image.load(srcFile);
|
||||
|
||||
// Specify the font for one particular style
|
||||
|
||||
((com.aspose.cad.fileformats.cad.cadtables.CadStyleTableObject)cadImage.getStyles().get_Item(0)).setPrimaryFontName("Arial");
|
||||
//ExEnd:SubstituteFontOfAParticularStyle
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,45 @@
|
||||
|
||||
package com.aspose.cad.examples.DWFDrawings;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.JpegOptions;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
public class SupportOfLayers {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
|
||||
//ExStart:SupportOfLayers
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(SupportOfLayers.class) + "DWFDrawings/";
|
||||
|
||||
String srcFile = dataDir + "for_layers_test.dwf";
|
||||
String outFile = dataDir + "for_layers_test.jpg";
|
||||
|
||||
Image image = Image.load(srcFile);
|
||||
|
||||
/// Create an instance of CadRasterizationOptions and set its various properties
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
rasterizationOptions.setPageWidth(1600);
|
||||
rasterizationOptions.setPageHeight(1600);
|
||||
|
||||
// Add desired layers
|
||||
List<String> stringList = new ArrayList<>(Arrays.asList("LayerA"));
|
||||
rasterizationOptions.setLayers(stringList);
|
||||
|
||||
|
||||
JpegOptions jpegOptions = new JpegOptions();
|
||||
jpegOptions.setVectorRasterizationOptions(rasterizationOptions);
|
||||
|
||||
// Export the DXF to JPG
|
||||
image.save(outFile, jpegOptions);
|
||||
//ExEnd:SupportOfLayers
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.aspose.cad.examples.DWFXDrawings;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
|
||||
public class OpenDwfxFile {
|
||||
public static void main(String[] args) {
|
||||
//ExStart:1
|
||||
String SourceDir = Utils.getDataDir_DWFXDrawings();
|
||||
String OutputDir = Utils.getDataDir_Output();
|
||||
String filePath = SourceDir + "Tyrannosaurus.dwfx";
|
||||
|
||||
Image cadImageDwf = Image.load(filePath);
|
||||
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
|
||||
rasterizationOptions.setPageWidth(cadImageDwf.getSize().getWidth());
|
||||
rasterizationOptions.setPageHeight(cadImageDwf.getSize().getHeight());
|
||||
|
||||
PdfOptions CADf = new PdfOptions();
|
||||
CADf.setVectorRasterizationOptions(rasterizationOptions);
|
||||
|
||||
cadImageDwf.save(OutputDir + "OpenDwfxFile_out.pdf", CADf);
|
||||
//ExEnd:1
|
||||
System.out.println("OpenDwfxFile executed successfully");
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,53 @@
|
||||
|
||||
package com.aspose.cad.examples.DWGDrawings;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.CadBaseEntity;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.CadDgnUnderlay;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.CadUnderlay;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.UnderlayFlags;
|
||||
|
||||
|
||||
public class AccessingUnderlayFlagsofDWG {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
//ExStart:AccessingUnderlayFlagsofDWG
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(AccessingUnderlayFlagsofDWG.class) + "DWGDrawings/";
|
||||
|
||||
// Input file name and path
|
||||
String fileName = dataDir + "BlockRefDgn.dwg";
|
||||
|
||||
// Load an existing DWG file and convert it into CadImage
|
||||
CadImage image = (CadImage)Image.load(fileName);
|
||||
|
||||
// Go through each entity inside the DWG file
|
||||
for(CadBaseEntity entity : image.getEntities())
|
||||
{
|
||||
// Check if entity is of CadDgnUnderlay type
|
||||
if (entity instanceof CadDgnUnderlay)
|
||||
{
|
||||
// Access different underlay flags
|
||||
CadUnderlay underlay = (CadUnderlay) entity;
|
||||
System.out.println(underlay.getUnderlayPath());
|
||||
System.out.println(underlay.getUnderlayName());
|
||||
System.out.println(underlay.getInsertionPoint().getX());
|
||||
System.out.println(underlay.getInsertionPoint().getY());
|
||||
System.out.println(underlay.getRotationAngle());
|
||||
System.out.println(underlay.getScaleX());
|
||||
System.out.println(underlay.getScaleY());
|
||||
System.out.println(underlay.getScaleZ());
|
||||
System.out.println((underlay.getFlags() & UnderlayFlags.UnderlayIsOn) == UnderlayFlags.UnderlayIsOn);
|
||||
System.out.println((underlay.getFlags() & UnderlayFlags.ClippingIsOn) == UnderlayFlags.ClippingIsOn);
|
||||
System.out.println((underlay.getFlags() & UnderlayFlags.Monochrome) != UnderlayFlags.Monochrome);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
//ExEnd:AccessingUnderlayFlagsofDWG
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,57 @@
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.aspose.cad.examples.DWGDrawings;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.CADConversion.PenSupportInExport;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadDrawTypeMode;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.CadText;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
|
||||
|
||||
public class AddTextInDWG {
|
||||
|
||||
|
||||
public static void main(String[] args){
|
||||
//ExStart:AddTextInDWG
|
||||
String dataDir = Utils.getDataDir(AddTextInDWG.class) + "DWGDrawings/";
|
||||
String dwgPathToFile = dataDir + "SimpleEntites.dwg";
|
||||
|
||||
|
||||
Image image = Image.load(dwgPathToFile);
|
||||
|
||||
CadText cadText = new CadText();
|
||||
cadText.setStyleType("Standard");
|
||||
cadText.setDefaultValue("Some custom text");
|
||||
cadText.setColorId(256);
|
||||
cadText.setLayerName("0");
|
||||
cadText.getFirstAlignment().setX(47.9);
|
||||
cadText.getFirstAlignment().setY(5.56);
|
||||
cadText.setTextHeight(0.8);
|
||||
cadText.setScaleX(0);
|
||||
|
||||
CadImage cadImage = ((CadImage)(image));
|
||||
cadImage.getBlockEntities().get_Item("*Model_Space").addEntity(cadText);
|
||||
|
||||
PdfOptions pdfOptions = new PdfOptions();
|
||||
|
||||
CadRasterizationOptions cadRasterizationOptions = new CadRasterizationOptions();
|
||||
|
||||
pdfOptions.setVectorRasterizationOptions(cadRasterizationOptions);
|
||||
|
||||
cadRasterizationOptions.setDrawType(CadDrawTypeMode.UseObjectColor);
|
||||
|
||||
cadRasterizationOptions.setPageHeight(1600);
|
||||
cadRasterizationOptions.setPageWidth(1600);
|
||||
cadRasterizationOptions.setLayouts(new String[] {"Model"});
|
||||
image.save(dataDir+"SimpleEntites_generated.dwg.pdf", pdfOptions);
|
||||
|
||||
//ExEnd:AddTextInDWG
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,54 @@
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.aspose.cad.examples.DWGDrawings;
|
||||
|
||||
public class Assert {
|
||||
public static boolean areEqual(Object left, Object right) {
|
||||
return left == right;
|
||||
}
|
||||
|
||||
public static boolean areEqual(Object left, Object right, Object epsilon) {
|
||||
return left == right;
|
||||
}
|
||||
|
||||
public static boolean areNotEqual(Object left, Object right) {
|
||||
return left == right;
|
||||
}
|
||||
}
|
||||
/*
|
||||
class Assert {
|
||||
|
||||
static void areNotEqual(int length, int i) {
|
||||
throw new UnsupportedOperationException("Values are not Equal"); //To change body of generated methods, choose Tools | Templates.
|
||||
}
|
||||
static void areEqual(short length, short i) {
|
||||
throw new UnsupportedOperationException("Values are not Equal"); //To change body of generated methods, choose Tools | Templates.
|
||||
}
|
||||
static void areEqual(String styleDescription, String standard) {
|
||||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||||
}
|
||||
|
||||
static void IsTrue(boolean b, String invalid_Z_value) {
|
||||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||||
}
|
||||
|
||||
static void areEqual(double x, int i, int i0) {
|
||||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||||
}
|
||||
|
||||
static void areEqual(double arrowHeadSize, double d, double d0) {
|
||||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||||
}
|
||||
|
||||
static void areEqual(boolean hasMText) {
|
||||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||||
}
|
||||
|
||||
static void ifTrue(boolean hasMText, boolean b) {
|
||||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||||
}
|
||||
|
||||
}*/
|
||||
@ -0,0 +1,35 @@
|
||||
package com.aspose.cad.examples.DWGDrawings;
|
||||
|
||||
import com.aspose.cad.*;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
import java.awt.Image;
|
||||
|
||||
public class ConvertDWGFileToPDF {
|
||||
|
||||
public static void main(String[] args) {
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(ConvertDWGFileToPDF.class) + "DWGDrawings/";
|
||||
//ExStart:ConvertDWGFileToPDF
|
||||
String srcFile = dataDir + "Bottom_plate.dwg";
|
||||
|
||||
com.aspose.cad.Image objImage = com.aspose.cad.Image.load(srcFile);
|
||||
|
||||
// Create an instance of CadRasterizationOptions and set its various properties
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
rasterizationOptions.setBackgroundColor(Color.getWhite());
|
||||
rasterizationOptions.setPageWidth(1600);
|
||||
rasterizationOptions.setPageHeight(1600);
|
||||
|
||||
// Create an instance of PdfOptions
|
||||
PdfOptions pdfOptions = new PdfOptions();
|
||||
// Set the VectorRasterizationOptions property
|
||||
pdfOptions.setVectorRasterizationOptions(rasterizationOptions);
|
||||
|
||||
// Export the DWG to PDF
|
||||
objImage.save(dataDir + "Bottom_plate_out_.pdf", pdfOptions);
|
||||
//ExEnd:ConvertDWGFileToPDF
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,63 @@
|
||||
package com.aspose.cad.examples.DWGDrawings;
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.Point;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.fileformats.cad.cadparameters.CadStringParameter;
|
||||
import com.aspose.cad.fileformats.cad.cadtables.CadVportTableObject;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
|
||||
public class ConvertDWGToPDFBySupplyingCoordinates {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(ConvertDWGToPDFBySupplyingCoordinates.class) + "DWGDrawings/";
|
||||
//ExStart:1
|
||||
String srcFile = dataDir + "visualization_-_conference_room.dwg";
|
||||
|
||||
CadImage cadImage = (CadImage)Image.load(srcFile);
|
||||
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
rasterizationOptions.setLayouts(new String[]{"Model"});
|
||||
rasterizationOptions.setNoScaling(true);
|
||||
|
||||
// note: preserving some empty borders around part of image is the responsibility of customer
|
||||
// top left point of region to draw
|
||||
Point topLeft = new Point(500, 1000);
|
||||
double width = 3108;
|
||||
double height = 2489;
|
||||
|
||||
CadVportTableObject newView = new CadVportTableObject();
|
||||
CadStringParameter cadStringParameter = new CadStringParameter();
|
||||
cadStringParameter.init("*Active");
|
||||
newView.setName(cadStringParameter);
|
||||
newView.getCenterPoint().setX(topLeft.getX() + width / 2f);
|
||||
newView.getCenterPoint().setY(topLeft.getY() - height / 2f);
|
||||
newView.getViewHeight().setValue(height);;
|
||||
newView.getViewAspectRatio().setValue(width / height);
|
||||
|
||||
for (int i = 0; i < cadImage.getViewPorts().size(); i++)
|
||||
{
|
||||
CadVportTableObject currentView = (CadVportTableObject)(cadImage.getViewPorts().get_Item(i));
|
||||
if (cadImage.getViewPorts().size() == 1 || currentView.getName().getValue().equalsIgnoreCase("*active"))
|
||||
{
|
||||
cadImage.getViewPorts().set_Item(i, newView);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Create an instance of PdfOptions
|
||||
PdfOptions pdfOptions = new PdfOptions();
|
||||
// Set the VectorRasterizationOptions property
|
||||
pdfOptions.setVectorRasterizationOptions(rasterizationOptions);
|
||||
|
||||
dataDir = dataDir + "ConvertDWGToPDFBySupplyingCoordinates_out.pdf";
|
||||
//Export the DWG to PDF
|
||||
cadImage.save(dataDir, pdfOptions);
|
||||
|
||||
//ExEnd:1
|
||||
System.out.println("ConvertDWGToPDFBySupplyingCoordinates executed successfully");
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,34 @@
|
||||
package com.aspose.cad.examples.DWGDrawings;
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfCompliance;
|
||||
import com.aspose.cad.imageoptions.PdfDocumentOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
|
||||
public class DWGToCompliancePDF {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(DWGToCompliancePDF.class) + "DWGDrawings/";
|
||||
//ExStart:DWGToCompliancePDF
|
||||
String srcFile = dataDir + "Bottom_plate.dwg";
|
||||
|
||||
|
||||
com.aspose.cad.Image objImage = com.aspose.cad.Image.load(srcFile);
|
||||
// Create an instance of PdfOptions
|
||||
PdfOptions pdfOptions = new PdfOptions();
|
||||
pdfOptions.setVectorRasterizationOptions(new CadRasterizationOptions());
|
||||
|
||||
pdfOptions.setCorePdfOptions(new PdfDocumentOptions());
|
||||
|
||||
pdfOptions.getCorePdfOptions().setCompliance(PdfCompliance.PdfA1a);
|
||||
objImage.save(dataDir+"Saved1.pdf", pdfOptions);
|
||||
|
||||
pdfOptions.getCorePdfOptions().setCompliance(PdfCompliance.PdfA1b);
|
||||
objImage.save(dataDir+"Saved.pdf", pdfOptions);
|
||||
//ExEnd:DWGToCompliancePDF
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
|
||||
package com.aspose.cad.examples.DWGDrawings;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
|
||||
|
||||
public class DWGToDWF {
|
||||
public static void main(String[] args){
|
||||
|
||||
//ExStart:DWGToDWF
|
||||
String dataDir = Utils.getDataDir(DWGToDWF.class) + "DWGDrawings/";
|
||||
String inputFile = dataDir+ "Line.dwg";
|
||||
String outFile = dataDir+ "Line.dwf";
|
||||
CadImage cadImage = (CadImage)Image.load(inputFile);
|
||||
cadImage.save(outFile);
|
||||
//ExEnd:DWGToDWF
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,29 @@
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.aspose.cad.examples.DWGDrawings;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
|
||||
|
||||
public class DWGToDXF {
|
||||
|
||||
public static void main(String[] args){
|
||||
//ExStart:DWGToDXF
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(DWGToDXF.class) + "DWGDrawings/";
|
||||
String inputFile = dataDir+ "Line.dwg";
|
||||
String outFile = dataDir+ "Line.dxf";
|
||||
CadImage cadImage = (CadImage)Image.load(inputFile);
|
||||
|
||||
cadImage.save(outFile);
|
||||
//ExEnd:DWGToDXF
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -0,0 +1,144 @@
|
||||
package com.aspose.cad.examples.DWGDrawings;
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
import com.aspose.cad.imageoptions.UnitType;
|
||||
|
||||
public class ExportDWGToPDFOrRaster {
|
||||
//ExStart:ExportDWGToPDFOrRaster
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
|
||||
// The path to the resource directory.
|
||||
|
||||
String dataDir = Utils.getDataDir(ExportDWGToPDFOrRaster.class) + "DWGDrawings/";
|
||||
|
||||
String srcFile = dataDir + "Bottom_plate.dwg";
|
||||
|
||||
com.aspose.cad.Image objImage = com.aspose.cad.Image.load(srcFile);
|
||||
Boolean currentUnitIsMetric = IsMetric(objImage.getUnitType());
|
||||
int currentUnitCoefficient = objImage.getUnitType();
|
||||
|
||||
if (currentUnitIsMetric)
|
||||
{
|
||||
double metersCoeff = 1 / 1000.0;
|
||||
double scaleFactor = metersCoeff / currentUnitCoefficient;
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
rasterizationOptions.setPageWidth((float)(210 * scaleFactor));
|
||||
rasterizationOptions.setPageHeight((float)(297 * scaleFactor));
|
||||
rasterizationOptions.setUnitType(UnitType.Millimeter);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
rasterizationOptions.setPageWidth((float)(8.27f / currentUnitCoefficient));
|
||||
rasterizationOptions.setPageHeight((float)(11.69f / currentUnitCoefficient));
|
||||
rasterizationOptions.setUnitType(UnitType.Inch);
|
||||
}
|
||||
|
||||
PdfOptions pdfOptions = new PdfOptions();
|
||||
pdfOptions.setVectorRasterizationOptions(new CadRasterizationOptions());
|
||||
objImage.save(dataDir+"Saved.pdf", pdfOptions);
|
||||
|
||||
}
|
||||
|
||||
|
||||
public static Boolean IsMetric(int initial)
|
||||
{
|
||||
|
||||
Boolean isMetric = true;
|
||||
|
||||
switch (initial)
|
||||
{
|
||||
case UnitType.Inch:
|
||||
case UnitType.MicroInch:
|
||||
case UnitType.Mil:
|
||||
case UnitType.Foot:
|
||||
case UnitType.Yard:
|
||||
case UnitType.Mile:
|
||||
case UnitType.Unitless:
|
||||
isMetric = false;
|
||||
}
|
||||
|
||||
return isMetric;
|
||||
}
|
||||
|
||||
private Double Coefficient(int unitType)
|
||||
{
|
||||
Double coefficient = 1.0;
|
||||
|
||||
switch (unitType)
|
||||
{
|
||||
case UnitType.Parsec:
|
||||
coefficient = 3.0857 * 10000000000000000.0;
|
||||
break;
|
||||
case UnitType.LightYear:
|
||||
coefficient = 9.4607 * 1000000000000000.0;
|
||||
break;
|
||||
case UnitType.AstronomicalUnit:
|
||||
coefficient = 1.4960 * 100000000000.0;
|
||||
break;
|
||||
case UnitType.Gigameter:
|
||||
coefficient = 1000000000.0;
|
||||
break;
|
||||
case UnitType.Kilometer:
|
||||
coefficient = 1000.0;
|
||||
break;
|
||||
case UnitType.Decameter:
|
||||
coefficient = 10.0;
|
||||
break;
|
||||
case UnitType.Hectometer:
|
||||
coefficient = 100.0;
|
||||
break;
|
||||
case UnitType.Meter:
|
||||
coefficient = 1.0;
|
||||
break;
|
||||
case UnitType.Centimenter:
|
||||
coefficient = 0.01;
|
||||
break;
|
||||
case UnitType.Decimeter:
|
||||
coefficient = 0.1;
|
||||
break;
|
||||
case UnitType.Millimeter:
|
||||
coefficient = 0.001;
|
||||
break;
|
||||
case UnitType.Micrometer:
|
||||
coefficient = 0.000001;
|
||||
break;
|
||||
case UnitType.Nanometer:
|
||||
coefficient = 0.000000001;
|
||||
break;
|
||||
case UnitType.Angstrom:
|
||||
coefficient = 0.0000000001;
|
||||
break;
|
||||
case UnitType.Inch:
|
||||
coefficient = 1.0;
|
||||
break;
|
||||
case UnitType.MicroInch:
|
||||
coefficient = 0.000001;
|
||||
break;
|
||||
case UnitType.Mil:
|
||||
coefficient = 0.001;
|
||||
break;
|
||||
case UnitType.Foot:
|
||||
coefficient = 12.0;
|
||||
break;
|
||||
case UnitType.Yard:
|
||||
coefficient = 36.0;
|
||||
break;
|
||||
case UnitType.Mile:
|
||||
coefficient = 63360.0;
|
||||
break;
|
||||
}
|
||||
|
||||
return coefficient;
|
||||
}
|
||||
|
||||
//ExEnd:ExportDWGToPDFOrRaster
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -0,0 +1,40 @@
|
||||
|
||||
|
||||
package com.aspose.cad.examples.DWGDrawings;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PngOptions;
|
||||
|
||||
|
||||
public class ExportOLEObjects {
|
||||
|
||||
|
||||
public static void main(String[] args){
|
||||
|
||||
|
||||
//ExStart:ExportOLEObjects
|
||||
String dataDir = Utils.getDataDir(ExportOLEObjects.class) + "DWGDrawings/";
|
||||
|
||||
String[] files = new String[] { "D ZD junior D10m H2m.dwg", "ZD - Senior D6m H2m45.dwg" };
|
||||
|
||||
PngOptions pngOptions = new PngOptions();
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
pngOptions.setVectorRasterizationOptions(rasterizationOptions);
|
||||
rasterizationOptions.setLayouts(new String[] { "Layout1" });
|
||||
|
||||
for(String file : files)
|
||||
{
|
||||
CadImage cadImage = (CadImage)Image.load(dataDir + file);
|
||||
|
||||
cadImage.save(dataDir + file + "_out.png", pngOptions);
|
||||
|
||||
}
|
||||
|
||||
|
||||
//ExEnd:ExportOLEObjects
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,34 @@
|
||||
package com.aspose.cad.examples.DWGDrawings;
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
|
||||
public class ExportSpecificDWGLayoutToPDF {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(ExportSpecificDWGLayoutToPDF.class) + "DWGDrawings/";
|
||||
//ExStart:ExportSpecificDWGLayoutToPDF
|
||||
String srcFile = dataDir + "visualization_-_conference_room.dwg";
|
||||
|
||||
Image image = Image.load(srcFile);
|
||||
|
||||
// Create an instance of CadRasterizationOptions and set its various properties
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
rasterizationOptions.setPageWidth(1600);
|
||||
rasterizationOptions.setPageHeight(1600);
|
||||
// Specify desired layout name
|
||||
rasterizationOptions.setLayouts(new String[] {"Layout1"});
|
||||
|
||||
// Create an instance of PdfOptions
|
||||
PdfOptions pdfOptions = new PdfOptions();
|
||||
// Set the VectorRasterizationOptions property
|
||||
pdfOptions.setVectorRasterizationOptions(rasterizationOptions);
|
||||
|
||||
// Export the DWG to PDF
|
||||
image.save(dataDir + "ExportSpecificLayoutToPDF_out_.pdf", pdfOptions);
|
||||
//ExEnd:ExportSpecificDWGLayoutToPDF
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,30 @@
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.aspose.cad.examples.DWGDrawings;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.imageoptions.SvgOptions;
|
||||
import com.aspose.cad.imageoptions.svgoptionsparameters.SvgColorMode;
|
||||
|
||||
|
||||
public class ExportToSVG {
|
||||
|
||||
public static void main(String[] args){
|
||||
//ExStart:ExportToSVG
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(ExportToSVG.class) + "DWGDrawings/";
|
||||
Image image = Image.load(dataDir + "meshes.dwg");
|
||||
{
|
||||
SvgOptions options = new SvgOptions();
|
||||
options.setColorType(SvgColorMode.Grayscale);
|
||||
options.setTextAsShapes(true);
|
||||
image.save(dataDir + "meshes.svg");
|
||||
}
|
||||
//ExEnd:ExportToSVG
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,23 @@
|
||||
package com.aspose.cad.examples.DWGDrawings;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.fileformats.cad.cadparameters.CadStringParameter;
|
||||
|
||||
public class GetBlockAttributeValueOfExternalReference {
|
||||
|
||||
public static void main(String[] args) {
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(GetBlockAttributeValueOfExternalReference.class) + "DWGDrawings/";
|
||||
//ExStart:GetBlockAttributeValueOfExternalReference
|
||||
// Load an existing DWG file as CadImage.
|
||||
CadImage cadImage = (CadImage) Image.load(dataDir + "sample.dwg");
|
||||
|
||||
// Access the external path name property
|
||||
CadStringParameter sXternalRef = cadImage.getBlockEntities().get_Item("*MODEL_SPACE").getXRefPathName();
|
||||
System.out.println(sXternalRef);
|
||||
//ExEnd:GetBlockAttributeValueOfExternalReference
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.aspose.cad.examples.DWGDrawings;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.DXFDrawings.RenderDXFAsPDF;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadDrawTypeMode;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.*;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
|
||||
|
||||
public class ImportImageToDWG {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
|
||||
String dataDir = Utils.getDataDir(ImportImageToDWG.class) + "DWGDrawings/";
|
||||
//ExStart:ImportImageToDWG
|
||||
String srcFile = dataDir + "Drawing11.dwg";
|
||||
|
||||
Image image = Image.load(srcFile);
|
||||
|
||||
CadRasterImageDef cadRasterImageDef = new CadRasterImageDef("road-sign-custom.png", 640, 562);
|
||||
cadRasterImageDef.setObjectHandle("A3B4");
|
||||
|
||||
Cad3DPoint insertionPoint = new Cad3DPoint(26.77, 22.35);
|
||||
Cad3DPoint uVector = new Cad3DPoint(0.0061565450840500831, 0);
|
||||
Cad3DPoint vVector = new Cad3DPoint(0, 0.0061565450840500822);
|
||||
|
||||
CadRasterImage cadRasterImage = new CadRasterImage(cadRasterImageDef, insertionPoint, uVector, vVector);
|
||||
cadRasterImage.setImageDefReference("A3B4");
|
||||
cadRasterImage.setDisplayFlags((short)7);
|
||||
cadRasterImage.setClippingState((short)0);
|
||||
cadRasterImage.getClipBoundaryVertexList().add(new Cad2DPoint(-0.5, 0.5));
|
||||
cadRasterImage.getClipBoundaryVertexList().add(new Cad2DPoint(639.5, 561.5));
|
||||
|
||||
CadImage cadImage = ((CadImage)(image));
|
||||
cadImage.getBlockEntities().get_Item("*Model_Space").addEntity(cadRasterImage);
|
||||
CadBaseObject[] objs = cadImage.getObjects();
|
||||
CadBaseObject[] arr = new CadBaseObject[objs.length + 1];
|
||||
int ind = 0;
|
||||
|
||||
for (CadBaseObject obj : objs)
|
||||
{
|
||||
arr[ind] = obj;
|
||||
ind++;
|
||||
}
|
||||
|
||||
arr[ind] = cadRasterImageDef;
|
||||
cadImage.setObjects(arr);
|
||||
PdfOptions pdfOptions = new PdfOptions();
|
||||
CadRasterizationOptions cadRasterizationOptions = new CadRasterizationOptions();
|
||||
pdfOptions.setVectorRasterizationOptions(cadRasterizationOptions);
|
||||
cadRasterizationOptions.setDrawType(CadDrawTypeMode.UseObjectColor);
|
||||
|
||||
cadRasterizationOptions.setPageHeight(1600);
|
||||
cadRasterizationOptions.setPageWidth(1600);
|
||||
cadRasterizationOptions.setLayouts(new String[] {"Model"});
|
||||
|
||||
image.save((srcFile + "_generated.pdf"), pdfOptions);
|
||||
//ExEnd:ImportImageToDWG
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,30 @@
|
||||
package com.aspose.cad.examples.DWGDrawings;
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.fileformats.cad.CadLayoutDictionary;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.CadLayout;
|
||||
|
||||
public class ListAllLayoutsInAnAutoCADDrawing {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(ListAllLayoutsInAnAutoCADDrawing.class) + "DWGDrawings/";
|
||||
//ExStart:ListAllLayoutsInAnAutoCADDrawing
|
||||
String srcFile = dataDir + "conic_pyramid.dxf";
|
||||
|
||||
Image image = Image.load(srcFile);
|
||||
|
||||
CadImage cadImage = (CadImage)image;
|
||||
|
||||
CadLayoutDictionary layouts = cadImage.getLayouts();
|
||||
for (CadLayout layout : layouts.getValues())
|
||||
{
|
||||
System.out.println("Layout " + layout.getLayoutName());
|
||||
}
|
||||
|
||||
//ExEnd:ListAllLayoutsInAnAutoCADDrawing
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,60 @@
|
||||
package com.aspose.cad.examples.DWGDrawings;
|
||||
|
||||
import com.aspose.cad.*;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
//import java.awt.Image;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.fileformats.cad.cadconsts.CadEntityTypeName;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.CadBaseEntity;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.polylines.CadPolyFaceMesh;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.polylines.CadPolygonMesh;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class MeshSupportForDWG {
|
||||
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(MeshSupportForDWG.class) + "DWGDrawings/";
|
||||
//ExStart:MeshSupportForDWG
|
||||
String srcFile = dataDir + "meshes.dwg";
|
||||
|
||||
// com.aspose.cad. objImage = com.aspose.cad.CImage.load(srcFile);
|
||||
CadImage cadImage =(CadImage) com.aspose.cad.Image.load(srcFile);
|
||||
|
||||
try
|
||||
{
|
||||
for (CadBaseEntity entity : cadImage.getEntities())
|
||||
{
|
||||
if (entity instanceof CadPolyFaceMesh)
|
||||
{
|
||||
CadPolyFaceMesh asFaceMesh= (CadPolyFaceMesh)entity;
|
||||
|
||||
if (asFaceMesh != null)
|
||||
{
|
||||
System.out.println("Vetexes count: " + asFaceMesh.getMeshMVertexCount());
|
||||
}
|
||||
}
|
||||
else if (entity instanceof CadPolygonMesh)
|
||||
{
|
||||
CadPolygonMesh asPolygonMesh= (CadPolygonMesh)entity;
|
||||
|
||||
if (asPolygonMesh != null)
|
||||
{
|
||||
System.out.println("Vetexes count: " + asPolygonMesh.getMeshMVertexCount());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
cadImage.dispose();
|
||||
}
|
||||
//ExEnd:MeshSupportForDWG
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.aspose.cad.examples.DWGDrawings;
|
||||
|
||||
import com.aspose.cad.CodePages;
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.LoadOptions;
|
||||
import com.aspose.cad.MifCodePages;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
|
||||
|
||||
public class OverrideAutomaticCodePageDetectionDwg {
|
||||
public static void main(String[] args) {
|
||||
//ExStart:1
|
||||
String SourceDir = Utils.getDataDir_DWGDrawings();
|
||||
String dwgPathToFile = SourceDir + "SimpleEntites.dwg";
|
||||
|
||||
|
||||
LoadOptions opts = new LoadOptions();
|
||||
opts.setSpecifiedEncoding(CodePages.Japanese);
|
||||
opts.setSpecifiedMifEncoding(MifCodePages.Japanese);
|
||||
opts.setRecoverMalformedCifMif(false);
|
||||
|
||||
CadImage cadImage = (CadImage) Image.load(dwgPathToFile, opts);
|
||||
|
||||
//do export or something else with cadImage
|
||||
|
||||
//ExEnd:1
|
||||
System.out.println("OverrideAutomaticCodePageDetectionDwg executed successfully");
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.aspose.cad.examples.DWGDrawings;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.fileformats.cad.cadconsts.CadEntityTypeName;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.CadBaseEntity;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.ListIterator;
|
||||
|
||||
|
||||
public class ParticularDWGToImage {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
//ExStart:ParticularDWGToImage
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(ParticularDWGToImage.class) + "DWGDrawings/";
|
||||
String sourceFilePath = dataDir + "visualization_-_conference_room.dwg";
|
||||
|
||||
CadImage cadImage = ((CadImage)(Image.load(sourceFilePath)));
|
||||
|
||||
CadBaseEntity[] entities = cadImage.getEntities();
|
||||
|
||||
List<CadBaseEntity> filteredEntities = new ArrayList<CadBaseEntity>();
|
||||
for (CadBaseEntity baseEntity : entities) {
|
||||
// selection or filtration of entities
|
||||
if ((baseEntity.getTypeName() == CadEntityTypeName.TEXT)) {
|
||||
filteredEntities.add(baseEntity);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
CadBaseEntity[] arr = new CadBaseEntity[filteredEntities.size()];
|
||||
cadImage.setEntities(filteredEntities.toArray(arr));
|
||||
// Create an instance of CadRasterizationOptions and set its various properties
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
rasterizationOptions.setPageWidth(1600);
|
||||
rasterizationOptions.setPageHeight(1600);
|
||||
// Set Auto Layout Scaling
|
||||
rasterizationOptions.setAutomaticLayoutsScaling(true);
|
||||
// Create an instance of PdfOptions
|
||||
PdfOptions pdfOptions = new PdfOptions();
|
||||
// Set the VectorRasterizationOptions property
|
||||
pdfOptions.setVectorRasterizationOptions(rasterizationOptions);
|
||||
String outFile = dataDir + "result_out_generated.pdf";
|
||||
// Export the CAD to PDF
|
||||
cadImage.save(outFile, pdfOptions);
|
||||
//ExEnd:ParticularDWGToImage
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,32 @@
|
||||
package com.aspose.cad.examples.DWGDrawings;
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.Cad3DPoint;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.CadBaseEntity;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.CadUnderlay;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
|
||||
public class ReadXREEFMetaData {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(ReadXREEFMetaData.class) + "DWGDrawings/";
|
||||
//ExStart:ReadXREEFMetaData
|
||||
CadImage image = (CadImage)Image.load(dataDir+"Bottom_plate.dwg");
|
||||
{
|
||||
for (CadBaseEntity entity : image.getEntities())
|
||||
{
|
||||
if (entity instanceof CadUnderlay)
|
||||
{
|
||||
//XREF entity with metadata
|
||||
Cad3DPoint insertionPoint = ((CadUnderlay) entity).getInsertionPoint();
|
||||
String path = ((CadUnderlay) entity).getUnderlayPath();
|
||||
}
|
||||
}
|
||||
}
|
||||
//ExEnd:ReadXREEFMetaData
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
package com.aspose.cad.examples.DWGDrawings;
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
|
||||
public class RenderDWGDocument {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(RenderDWGDocument.class) + "DWGDrawings/";
|
||||
//ExStart:RenderDWGDocument
|
||||
String srcFile = dataDir + "visualization_-_conference_room.dwg";
|
||||
|
||||
Image image = Image.load(srcFile);
|
||||
|
||||
// Create an instance of CadRasterizationOptions and set its various properties
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
rasterizationOptions.setPageWidth(1600);
|
||||
rasterizationOptions.setPageHeight(1600);
|
||||
// Specify desired layout name
|
||||
rasterizationOptions.setLayouts(new String[] {"Layout1"});
|
||||
|
||||
// Create an instance of PdfOptions
|
||||
PdfOptions pdfOptions = new PdfOptions();
|
||||
// Set the VectorRasterizationOptions property
|
||||
pdfOptions.setVectorRasterizationOptions(rasterizationOptions);
|
||||
|
||||
// Export the DWG to PDF
|
||||
image.save(dataDir + "ExportSpecificLayoutToPDF_out_.pdf", pdfOptions);
|
||||
|
||||
//ExEnd:RenderDWGDocument
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,93 @@
|
||||
package com.aspose.cad.examples.DWGDrawings;
|
||||
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.fileformats.cad.CadLayoutDictionary;
|
||||
import com.aspose.cad.fileformats.cad.cadconsts.CadEntityTypeName;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.CadBaseEntity;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.CadBlockEntity;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.CadInsertObject;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.CadMText;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.CadText;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.attentities.CadAttDef;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.attentities.CadAttrib;
|
||||
import com.aspose.cad.fileformats.cad.cadtables.CadBlockTableObject;
|
||||
|
||||
public class SearchTextInDWGAutoCADFile {
|
||||
|
||||
//ExStart:SearchTextInDWGAutoCADFile
|
||||
private static final String dataDir = Utils.getDataDir(SearchTextInDWGAutoCADFile.class) + "DWGDrawings/";
|
||||
|
||||
public static void main(String[] args) {
|
||||
// Search Text In DWG AutoCAD File
|
||||
searchTextInDWGAutoCADFile();
|
||||
|
||||
// Search For Text In Specific Layout
|
||||
|
||||
}
|
||||
|
||||
public static void searchTextInDWGAutoCADFile()
|
||||
{
|
||||
//String dataDir="Test_Apsose.CAD\\";
|
||||
// Load an existing DWG file as CadImage.
|
||||
CadImage cadImage = (CadImage) CadImage.load(dataDir + "sample_file.dwg");
|
||||
for (CadBaseEntity entity : cadImage.getEntities())
|
||||
{
|
||||
IterateCADNodeEntities(entity);
|
||||
}
|
||||
|
||||
// Search for text in the block section
|
||||
for (CadBlockEntity blockEntity : cadImage.getBlockEntities().getValues())
|
||||
{
|
||||
for (CadBaseEntity entity : blockEntity.getEntities())
|
||||
{
|
||||
IterateCADNodeEntities(entity);
|
||||
}
|
||||
}
|
||||
}
|
||||
//Recursive function to iterate nodes inside nodes
|
||||
private static void IterateCADNodeEntities(CadBaseEntity obj)
|
||||
{
|
||||
switch (obj.getTypeName())
|
||||
{
|
||||
case CadEntityTypeName.TEXT:
|
||||
CadText childObjectText = (CadText) obj;
|
||||
|
||||
System.out.println(childObjectText.getDefaultValue());
|
||||
|
||||
break;
|
||||
|
||||
case CadEntityTypeName.MTEXT:
|
||||
CadMText childObjectMText = (CadMText) obj;
|
||||
|
||||
System.out.println(childObjectMText.getText());
|
||||
|
||||
break;
|
||||
|
||||
case CadEntityTypeName.INSERT:
|
||||
CadInsertObject childInsertObject = (CadInsertObject) obj;
|
||||
|
||||
for (CadBaseEntity tempobj : childInsertObject.getChildObjects())
|
||||
{
|
||||
IterateCADNodeEntities(tempobj);
|
||||
}
|
||||
break;
|
||||
|
||||
case CadEntityTypeName.ATTDEF:
|
||||
CadAttDef attDef = (CadAttDef) obj;
|
||||
|
||||
System.out.println(attDef.getDefaultString());
|
||||
break;
|
||||
|
||||
case CadEntityTypeName.ATTRIB:
|
||||
CadAttrib attAttrib = (CadAttrib) obj;
|
||||
|
||||
System.out.println(attAttrib.getDefaultText());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//ExEnd:SearchTextInDWGAutoCADFile
|
||||
}
|
||||
@ -0,0 +1,44 @@
|
||||
|
||||
package com.aspose.cad.examples.DWGDrawings;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
public class SupportForHiddenLines {
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
//ExStart:SupportForHiddenLines
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(SupportForHiddenLines.class) + "DWGDrawings/";
|
||||
|
||||
String sourceFilePath = dataDir + "Bottom_plate.dwg";
|
||||
String outPath = dataDir + "Bottom_plate.pdf";
|
||||
CadImage cadImage = (CadImage)Image.load(sourceFilePath);
|
||||
|
||||
|
||||
List<String> list = Arrays.asList("Print","L1_RegMark","L2_RegMark");
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
rasterizationOptions.setPageHeight(cadImage.getHeight());
|
||||
rasterizationOptions.setPageWidth(cadImage.getWidth()) ;
|
||||
rasterizationOptions.setLayers(list);
|
||||
|
||||
|
||||
|
||||
PdfOptions pdfOptions = new PdfOptions();
|
||||
rasterizationOptions.setLayouts(new String[] { "Model" });
|
||||
pdfOptions.setVectorRasterizationOptions(rasterizationOptions);
|
||||
|
||||
cadImage.save(outPath, pdfOptions);
|
||||
|
||||
System.out.println("\nThe DWG file exported successfully to PDF.\nFile saved at " + dataDir);
|
||||
//ExEnd:SupportForHiddenLines
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,80 @@
|
||||
package com.aspose.cad.examples.DWGDrawings;
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.CadMLeader;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.CadMLeaderContextData;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.CadMLeaderLine;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.CadMLeaderNode;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
|
||||
public class SupportMLeaderEntityForDWGFormat {
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
|
||||
// The path to the resource directory.
|
||||
|
||||
String dataDir = Utils.getDataDir(SupportMLeaderEntityForDWGFormat.class) + "DWGDrawings/";
|
||||
//ExStart:SupportMLeaderEntityForDWGFormat
|
||||
|
||||
String file = dataDir + "Multileaders.dwg";
|
||||
Image image = Image.load(file);
|
||||
|
||||
// Test
|
||||
CadImage cadImage = (CadImage)image;
|
||||
|
||||
|
||||
Assert.areNotEqual(cadImage.getEntities().length, 0);
|
||||
CadMLeader cadMLeader = (CadMLeader)cadImage.getEntities()[2];
|
||||
|
||||
Assert.areEqual(cadMLeader.getStyleDescription(), "Standard");
|
||||
Assert.areEqual(cadMLeader.getLeaderStyleId(), "12E");
|
||||
Assert.areEqual(cadMLeader.getArrowHeadId1(), "639");
|
||||
Assert.areEqual(cadMLeader.getLeaderLineTypeID(), "14");
|
||||
|
||||
CadMLeaderContextData context = cadMLeader.getContextData();
|
||||
|
||||
Assert.areEqual(context.getArrowHeadSize(), 30.0, 0.1);
|
||||
Assert.areEqual(context.getBasePoint().getX(), 481, 1);
|
||||
Assert.areEqual(context.getContentScale(), 1.0, 0.01);
|
||||
Assert.areEqual(context.getDefaultText().getValue(), "This is multileader with huge text\\P{\\H1.5x;6666666666666666666666666666\\P}bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");
|
||||
Assert.areEqual(context.hasMText(), true);
|
||||
|
||||
CadMLeaderNode mleaderNode = context.getLeaderNode();
|
||||
|
||||
Assert.areEqual(mleaderNode.getLastLeaderLinePoint().getX(), 473, 1);
|
||||
CadMLeaderLine leaderLine = mleaderNode.getLeaderLine();
|
||||
|
||||
Assert.areEqual(leaderLine.getBreakEndPoint().toString(), null);
|
||||
Assert.areEqual(Integer.toString(leaderLine.getBreakPointIndex().getValue()), Integer.toString(0));
|
||||
Assert.areEqual(leaderLine.getBreakStartPoint().toString(), null);
|
||||
Assert.areEqual(Integer.toString(leaderLine.getLeaderLineIndex().getValue()), Integer.toString(0));
|
||||
Assert.areEqual(Integer.toString(leaderLine.getLeaderPoints().size()), Integer.toString(4));
|
||||
|
||||
Assert.areEqual(Integer.toString(mleaderNode.getBranchIndex()), Integer.toString(0));
|
||||
|
||||
|
||||
Assert.areEqual(mleaderNode.getDogLegLength(), 8.0, 0.1);
|
||||
|
||||
Assert.areEqual(context.hasMText(), true);
|
||||
|
||||
// Assert.IsTrue((context.hasMText()==true , "Invalid Z value");
|
||||
Assert.areEqual(context.getTextAttachmentType().getValue(), (short)1);
|
||||
Assert.areEqual(context.getTextBackgroundColor().getValue(), 18);
|
||||
Assert.areEqual(context.getTextHeight(), 20.0, 0.1);
|
||||
Assert.areEqual(context.getTextStyleID().getValue(), "11");
|
||||
Assert.areEqual(context.getTextRotation().getValue(), 0.0, 0.01);
|
||||
|
||||
Assert.areEqual(cadMLeader.getArrowHeadId1(), "639");
|
||||
Assert.areEqual(cadMLeader.getLeaderType(), 1);
|
||||
Assert.areEqual(cadMLeader.getBlockContentColor(), 0);
|
||||
Assert.areEqual(cadMLeader.getLeaderLineColor(), 0);
|
||||
Assert.areEqual(cadMLeader.getTextHeight(), 1.0, 0.01);
|
||||
|
||||
//ExEnd:SupportMLeaderEntityForDWGFormat
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,21 @@
|
||||
package com.aspose.cad.examples.DWTDrawings;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
|
||||
|
||||
public class ConvertDWTToDXF {
|
||||
|
||||
public static void main(String[] args){
|
||||
|
||||
String dataDir = Utils.getDataDir(ConvertDWTToDXF.class) + "DWTDrawings/";
|
||||
|
||||
CadImage cadImage = (CadImage)Image.load(dataDir + "sample.dwt");
|
||||
String outFile = dataDir+ "example.dxf";
|
||||
cadImage.save(outFile);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.aspose.cad.examples.DXFDrawings;
|
||||
|
||||
import com.aspose.cad.Color;
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.CadBaseEntity;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.fileformats.cad.cadconsts.CadEntityTypeName;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class AddAttribMText {
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(AddAttribMText.class) + "DXFDrawings/";
|
||||
//ExStart:AddAttribMText
|
||||
String srcFile = dataDir + "conic_pyramid.dxf";
|
||||
|
||||
CadImage cadImage =(CadImage) Image.load(srcFile);
|
||||
|
||||
List<CadBaseEntity> mtextList = new ArrayList<CadBaseEntity>();
|
||||
List<CadBaseEntity> attribList = new ArrayList<CadBaseEntity>();
|
||||
try
|
||||
{
|
||||
for (CadBaseEntity entity : cadImage.getEntities())
|
||||
{
|
||||
if (entity.getTypeName() == CadEntityTypeName.MTEXT)
|
||||
{
|
||||
mtextList.add(entity);
|
||||
}
|
||||
|
||||
if (entity.getTypeName() == CadEntityTypeName.INSERT)
|
||||
{
|
||||
for (CadBaseEntity childObject : entity.getChildObjects())
|
||||
{
|
||||
if (childObject.getTypeName() == CadEntityTypeName.ATTRIB)
|
||||
{
|
||||
attribList.add(childObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
System.out.println("MText Size: "+ mtextList.size());
|
||||
System.out.println("Attribute Size: "+ attribList.size());
|
||||
}
|
||||
finally
|
||||
{
|
||||
cadImage.dispose();
|
||||
}
|
||||
|
||||
//ExEnd:AddAttribMText
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,26 @@
|
||||
|
||||
package com.aspose.cad.examples.DXFDrawings;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public class AddCustomProperties {
|
||||
public static void main(String[] args) {
|
||||
//ExStart:1
|
||||
String dataDir = Utils.getDataDir(ExportDXFToWMF.class) + "DXFDrawings/";
|
||||
String srcFile = dataDir + "conic_pyramid.dxf";
|
||||
String outFile = dataDir + "AddCustomProperties_out.dxf";
|
||||
CadImage cadImage = (CadImage)Image.load(srcFile);
|
||||
|
||||
cadImage.getHeader().getCustomProperties().put("CUSTOM_PROPERTY_1", "Custom property test 1");
|
||||
cadImage.getHeader().getCustomProperties().put("CUSTOM_PROPERTY_2", "Custom property test 2");
|
||||
cadImage.getHeader().getCustomProperties().put("CUSTOM_PROPERTY_3", "Custom property test 3");
|
||||
|
||||
cadImage.save(outFile);
|
||||
//ExEnd:1
|
||||
System.out.println("\nAddCustomProperties executed successfully.");
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,54 @@
|
||||
package com.aspose.cad.examples.DXFDrawings;
|
||||
|
||||
import com.aspose.cad.Color;
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.CadBaseEntity;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.CadBlockEntity;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.CadInsertObject;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.fileformats.cad.cadconsts.CadEntityTypeName;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class DecomposeCadInsertObject {
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(DecomposeCadInsertObject.class) + "DXFDrawings/";
|
||||
//ExStart:DecomposeCadInsertObject
|
||||
|
||||
String srcFile = dataDir + "conic_pyramid.dxf";
|
||||
|
||||
CadImage cadImage =(CadImage) Image.load(srcFile);
|
||||
|
||||
try
|
||||
{
|
||||
for (int i=0; i<cadImage.getEntities().length;i++)
|
||||
{
|
||||
if (cadImage.getEntities()[i].getTypeName() == CadEntityTypeName.INSERT)
|
||||
{
|
||||
CadBlockEntity block =
|
||||
(CadBlockEntity)cadImage.getBlockEntities().get_Item(((CadInsertObject)cadImage.getEntities()[i]).getName());
|
||||
for (CadBaseEntity blockChild : block.getEntities())
|
||||
{
|
||||
// process entities
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
cadImage.dispose();
|
||||
}
|
||||
//ExEnd:DecomposeCadInsertObject
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.aspose.cad.examples.DXFDrawings;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.CadRenderResult;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
import com.aspose.cad.imageoptions.RenderResult;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.OutputStream;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author mfazi
|
||||
*/
|
||||
public class EnableTracking {
|
||||
public static void main(String[] args) throws FileNotFoundException {
|
||||
//ExStart:EnableTracking
|
||||
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(EnableTracking.class) + "DXFDrawings/";
|
||||
|
||||
Image image = Image.load(dataDir + "conic_pyramid.dxf");
|
||||
{
|
||||
OutputStream stream = new FileOutputStream(dataDir + "output_conic_pyramid.pdf");
|
||||
{
|
||||
PdfOptions pdfOptions = new PdfOptions();
|
||||
CadRasterizationOptions cadRasterizationOptions = new CadRasterizationOptions();
|
||||
pdfOptions.setVectorRasterizationOptions(cadRasterizationOptions);
|
||||
cadRasterizationOptions.setPageWidth(800);
|
||||
cadRasterizationOptions.setPageHeight(600);
|
||||
|
||||
cadRasterizationOptions.RenderResult = new ErrorHandler();
|
||||
|
||||
System.out.println("Exporting to pdf format");
|
||||
image.save(stream, pdfOptions);
|
||||
}
|
||||
}
|
||||
//ExEnd:EnableTracking
|
||||
}
|
||||
//ExStart:CadRenderHandler
|
||||
public static class ErrorHandler extends CadRasterizationOptions.CadRenderHandler
|
||||
{
|
||||
@Override
|
||||
public void invoke(CadRenderResult result) {
|
||||
System.out.println("Tracking results of exporting");
|
||||
|
||||
if (result.isRenderComplete())
|
||||
return;
|
||||
|
||||
System.out.println("Have some problems:");
|
||||
|
||||
int idxError = 1;
|
||||
for (RenderResult rr : result.getFailures())
|
||||
{
|
||||
System.out.printf("{0}. {1}, {2}", idxError, rr.getRenderCode(), rr.getMessage());
|
||||
idxError++;
|
||||
}
|
||||
}
|
||||
}
|
||||
//ExEnd:CadRenderHandler
|
||||
|
||||
}
|
||||
@ -0,0 +1,36 @@
|
||||
package com.aspose.cad.examples.DXFDrawings;
|
||||
|
||||
import com.aspose.cad.Color;
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
|
||||
public class ExportDXFDrawingToPDF {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(ExportDXFDrawingToPDF.class) + "DXFDrawings/";
|
||||
//ExStart:ExportDXFDrawingToPDF
|
||||
String srcFile = dataDir + "conic_pyramid.dxf";
|
||||
|
||||
Image image = Image.load(srcFile);
|
||||
|
||||
// Create an instance of CadRasterizationOptions and set its various properties
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
rasterizationOptions.setBackgroundColor(Color.getWhite());
|
||||
rasterizationOptions.setPageWidth(1600);
|
||||
rasterizationOptions.setPageHeight(1600);
|
||||
|
||||
// Create an instance of PdfOptions
|
||||
PdfOptions pdfOptions = new PdfOptions();
|
||||
// Set the VectorRasterizationOptions property
|
||||
pdfOptions.setVectorRasterizationOptions(rasterizationOptions);
|
||||
|
||||
// Export the DXF to PDF
|
||||
image.save(dataDir + "conic_pyramid_out_.pdf", pdfOptions);
|
||||
//ExEnd:ExportDXFDrawingToPDF
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,46 @@
|
||||
package com.aspose.cad.examples.DXFDrawings;
|
||||
|
||||
import com.aspose.cad.Color;
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.ifc.IfcImage;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
import com.aspose.cad.imageoptions.WmfOptions;
|
||||
|
||||
public class ExportDXFToWMF {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(ExportDXFToWMF.class) + "DXFDrawings/";
|
||||
//ExStart:ExportDXFToWMF
|
||||
String srcFile = dataDir + "conic_pyramid.dxf";
|
||||
|
||||
Image image = Image.load(srcFile);
|
||||
|
||||
IfcImage cadImage = (IfcImage)Image.load((dataDir +"example.ifc"));
|
||||
try
|
||||
{
|
||||
{
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
|
||||
rasterizationOptions.setPageWidth(100);
|
||||
rasterizationOptions.setPageHeight(100);
|
||||
WmfOptions wmfOptions = new WmfOptions();
|
||||
|
||||
cadImage.save(dataDir+" example.ifc.wmf", wmfOptions);
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
cadImage.dispose();
|
||||
|
||||
}
|
||||
|
||||
// Export the DXF to PDF
|
||||
image.save(dataDir + "conic_pyramid_out_.pdf");
|
||||
}
|
||||
//ExEnd:ExportDXFToWMF
|
||||
}
|
||||
|
||||
@ -0,0 +1,96 @@
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.aspose.cad.examples.DXFDrawings;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.fileformats.cad.cadconsts.CadEntityTypeName;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.CadBaseEntity;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.CadText;
|
||||
import com.aspose.cad.fileformats.cad.cadtables.CadStyleTableObject;
|
||||
import java.io.File;
|
||||
import static java.lang.System.in;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author mfazi
|
||||
*/
|
||||
public class ExportImagesToDXF {
|
||||
|
||||
public static void main(String[] args){
|
||||
|
||||
//ExStart:ExportImagesToDXF
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(RenderDXFAsPDF.class) + "DXFDrawings/";
|
||||
|
||||
File[] files = new File(dataDir).listFiles();
|
||||
for (File file : files) {
|
||||
|
||||
String extension = GetFileExtension(file);
|
||||
if(extension == ".dxf"){
|
||||
|
||||
// ****************************
|
||||
// Set new font per document
|
||||
// ****************************
|
||||
CadImage cadImage = (CadImage)Image.load(file.getName());
|
||||
for (Object style : cadImage.getStyles()) {
|
||||
// Set font name
|
||||
((com.aspose.cad.fileformats.cad.cadtables.CadStyleTableObject)style).setPrimaryFontName("Broadway");
|
||||
}
|
||||
cadImage.save(file.getName() + "_font.dxf");
|
||||
|
||||
// ****************************
|
||||
// Hide all "straight" lines
|
||||
// ****************************
|
||||
CadImage cadImageEntity = (CadImage)Image.load(file.getName());
|
||||
for (CadBaseEntity entity : cadImageEntity.getEntities()) {
|
||||
// Make lines invisible
|
||||
if ((entity.getTypeName() == CadEntityTypeName.LINE)) {
|
||||
entity.setVisible((short)0);
|
||||
}
|
||||
}
|
||||
cadImageEntity.save(file.getName() + "_lines.dxf");
|
||||
|
||||
// ****************************
|
||||
// Manipulations with text
|
||||
// ****************************
|
||||
|
||||
CadImage cadImageText = (CadImage)Image.load(file.getName());
|
||||
for (CadBaseEntity entity : cadImageText.getEntities()) {
|
||||
// Make lines invisible
|
||||
if ((entity.getTypeName() == CadEntityTypeName.TEXT)) {
|
||||
((CadText)entity).setDefaultValue("New text here!!! :)");
|
||||
break;
|
||||
}
|
||||
}
|
||||
cadImageText.save(file.getName() + "_text.dxf");
|
||||
|
||||
}//If extension = .dxf
|
||||
}
|
||||
|
||||
//ExEnd:ExportImagesToDXF
|
||||
|
||||
}
|
||||
|
||||
//ExStart:GetFileExtension
|
||||
private static String GetFileExtension(File file) {
|
||||
String extension = "";
|
||||
|
||||
try {
|
||||
if (file != null && file.exists()) {
|
||||
String name = file.getName();
|
||||
extension = name.substring(name.lastIndexOf("."));
|
||||
}
|
||||
} catch (Exception e) {
|
||||
extension = "";
|
||||
}
|
||||
|
||||
return extension;
|
||||
|
||||
}
|
||||
//ExEnd:GetFileExtension
|
||||
}
|
||||
@ -0,0 +1,54 @@
|
||||
package com.aspose.cad.examples.DXFDrawings;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
import com.aspose.cad.fileformats.dwf.whip.objects.DwfWhipLayer;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.fileformats.dwf.DwfImage;
|
||||
import com.aspose.cad.imageoptions.JpegOptions;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
public class ExportSpecificDXFLayoutToImage {
|
||||
|
||||
public static void main(String[] args) {
|
||||
//ExStart:ExportSpecificDXFLayoutToImage
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(ExportSpecificDXFLayoutToPDF.class) + "DXFDrawings\\";
|
||||
|
||||
String srcFile = dataDir + "for_layers_test.dwf";
|
||||
|
||||
DwfImage image =(DwfImage)Image.load(srcFile);
|
||||
|
||||
List<String> layersNames=image.getLayers().getLayersNames();
|
||||
|
||||
DwfWhipLayer layer = image.getLayers().getLayerByName("0");
|
||||
for (DwfWhipLayer lr : image.getLayers())
|
||||
{
|
||||
//...
|
||||
}
|
||||
|
||||
// Create an instance of CadRasterizationOptions and set its various properties
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
rasterizationOptions.setPageWidth(1600);
|
||||
rasterizationOptions.setPageHeight(1600);
|
||||
|
||||
|
||||
String[] stringArray = Arrays.copyOf(layersNames.toArray(), layersNames.toArray().length, String[].class);
|
||||
|
||||
List<String> stringList = Arrays.asList(stringArray);
|
||||
// Add desired layers
|
||||
rasterizationOptions.setLayers(stringList);
|
||||
|
||||
JpegOptions jpegOptions = new JpegOptions();
|
||||
jpegOptions.setVectorRasterizationOptions(rasterizationOptions);
|
||||
String output = dataDir+"for_layers_test.jpg";
|
||||
// Export the DXF to Image
|
||||
image.save(output, jpegOptions);
|
||||
|
||||
//ExEnd:ExportSpecificDXFLayoutToImage
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
package com.aspose.cad.examples.DXFDrawings;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
|
||||
public class ExportSpecificDXFLayoutToPDF {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(ExportSpecificDXFLayoutToPDF.class) + "DXFDrawings/";
|
||||
//ExStart:ExportSpecificDXFLayoutToPDF
|
||||
String srcFile = dataDir + "conic_pyramid.dxf";
|
||||
|
||||
Image image = Image.load(srcFile);
|
||||
|
||||
// Create an instance of CadRasterizationOptions and set its various properties
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
rasterizationOptions.setPageWidth(1600);
|
||||
rasterizationOptions.setPageHeight(1600);
|
||||
// Specify desired layout name
|
||||
rasterizationOptions.setLayouts(new String[] {"Model"});
|
||||
|
||||
// Create an instance of PdfOptions
|
||||
PdfOptions pdfOptions = new PdfOptions();
|
||||
// Set the VectorRasterizationOptions property
|
||||
pdfOptions.setVectorRasterizationOptions(rasterizationOptions);
|
||||
|
||||
// Export the DXF to PDF
|
||||
image.save(dataDir + "conic_pyramid_layout_out_.pdf", pdfOptions);
|
||||
//ExEnd:ExportSpecificDXFLayoutToPDF
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package com.aspose.cad.examples.DXFDrawings;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
public class ExportSpecificLayerOfDXFDrawingToPDF {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(ExportSpecificLayerOfDXFDrawingToPDF.class) + "DXFDrawings/";
|
||||
//ExStart:ExportSpecificLayerOfDXFDrawingToPDF
|
||||
String srcFile = dataDir + "conic_pyramid.dxf";
|
||||
|
||||
Image image = Image.load(srcFile);
|
||||
|
||||
// Create an instance of CadRasterizationOptions and set its various properties
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
rasterizationOptions.setPageWidth(1600);
|
||||
rasterizationOptions.setPageHeight(1600);
|
||||
// Add desired layers
|
||||
List<String> stringList = new ArrayList<>(Arrays.asList("0"));
|
||||
rasterizationOptions.setLayers(stringList);
|
||||
|
||||
|
||||
// Create an instance of PdfOptions
|
||||
PdfOptions pdfOptions = new PdfOptions();
|
||||
// Set the VectorRasterizationOptions property
|
||||
pdfOptions.setVectorRasterizationOptions(rasterizationOptions);
|
||||
|
||||
// Export the DXF to PDF
|
||||
image.save(dataDir + "conic_pyramid_layer_out_.pdf", pdfOptions);
|
||||
//ExEnd:ExportSpecificLayerOfDXFDrawingToPDF
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,36 @@
|
||||
package com.aspose.cad.examples.DXFDrawings;
|
||||
|
||||
import com.aspose.cad.Color;
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
|
||||
public class RenderDXFAsPDF {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(RenderDXFAsPDF.class) + "DXFDrawings/";
|
||||
//ExStart:RenderDXFAsPDF
|
||||
String srcFile = dataDir + "conic_pyramid.dxf";
|
||||
|
||||
Image image = Image.load(srcFile);
|
||||
|
||||
// Create an instance of CadRasterizationOptions and set its various properties
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
rasterizationOptions.setBackgroundColor(Color.getWhite());
|
||||
rasterizationOptions.setPageWidth(1600);
|
||||
rasterizationOptions.setPageHeight(1600);
|
||||
|
||||
// Create an instance of PdfOptions
|
||||
PdfOptions pdfOptions = new PdfOptions();
|
||||
// Set the VectorRasterizationOptions property
|
||||
pdfOptions.setVectorRasterizationOptions(rasterizationOptions);
|
||||
|
||||
// Export the DXF to PDF
|
||||
image.save(dataDir + "conic_pyramid_out_.pdf", pdfOptions);
|
||||
//ExEnd:RenderDXFAsPDF
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,28 @@
|
||||
|
||||
package com.aspose.cad.examples.DXFDrawings;
|
||||
|
||||
|
||||
import com.aspose.cad.Color;
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.CADConversion.PenSupportInExport;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
import java.io.File;
|
||||
public class SaveDXFFiles {
|
||||
|
||||
public static void main(String[] args){
|
||||
//ExStart:SaveDXFFiles
|
||||
|
||||
String dataDir = Utils.getDataDir(SaveDXFFiles.class) + "CADConversion/";
|
||||
String srcFile = dataDir + "conic_pyramid.dxf";
|
||||
|
||||
CadImage cadImage = (CadImage)Image.load(srcFile);
|
||||
cadImage.save(dataDir+"conic.dxf");
|
||||
|
||||
//ExEnd:SaveDXFFiles
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,58 @@
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.aspose.cad.examples.DXFDrawings;
|
||||
|
||||
import com.aspose.cad.Color;
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadDrawTypeMode;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.Margins;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author mfazi
|
||||
*/
|
||||
public class SupportOfBlockClipping {
|
||||
|
||||
public static void main(String[] args){
|
||||
|
||||
//ExStart:SupportOfBlockClipping
|
||||
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(RenderDXFAsPDF.class) + "DXFDrawings/";
|
||||
String inputFile = dataDir + "SLS-CW-CD-CE001-R01_blockClip.dxf";
|
||||
String outputFile = dataDir + "SLS-CW-CD-CE001-R01_blockClip.pdf";
|
||||
|
||||
CadImage cadImage = (CadImage)Image.load(inputFile);
|
||||
|
||||
Margins margins = new Margins();
|
||||
margins.setTop(5);
|
||||
margins.setRight(30);
|
||||
margins.setBottom(5);
|
||||
margins.setLeft(30);
|
||||
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
rasterizationOptions.setBackgroundColor(Color.getWhite());
|
||||
rasterizationOptions.setDrawType(CadDrawTypeMode.UseObjectColor);
|
||||
rasterizationOptions.setPageWidth(1200);
|
||||
rasterizationOptions.setPageHeight(1600);
|
||||
rasterizationOptions.setMargins(margins);
|
||||
|
||||
rasterizationOptions.setLayouts( new String[] { "Model" } );
|
||||
|
||||
PdfOptions pdfOptions = new PdfOptions();
|
||||
pdfOptions.setVectorRasterizationOptions(rasterizationOptions);
|
||||
|
||||
cadImage.save(outputFile, pdfOptions);
|
||||
|
||||
//ExEnd:SupportOfBlockClipping
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,34 @@
|
||||
package com.aspose.cad.examples.ExportingCAD;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
//import com.aspose.cad.imageoptions.TypeOfEntities;
|
||||
|
||||
public class Export3DAutoCADImagesToPDF {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(Export3DAutoCADImagesToPDF.class) + "ExportingCAD/";
|
||||
//ExStart:Export3DAutoCADImagesToPDF
|
||||
|
||||
String srcFile = dataDir + "conic_pyramid.dxf";
|
||||
|
||||
Image cadImage = Image.load(srcFile);
|
||||
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
rasterizationOptions.setPageWidth(500);
|
||||
rasterizationOptions.setPageHeight(500);
|
||||
// rasterizationOptions.setTypeOfEntities(TypeOfEntities.Entities3D);
|
||||
|
||||
rasterizationOptions.setLayouts(new String[] {"Model"});
|
||||
PdfOptions pdfOptions = new PdfOptions();
|
||||
pdfOptions.setVectorRasterizationOptions(rasterizationOptions);
|
||||
cadImage.save(dataDir + "Export3DImagestoPDF_out_.pdf", pdfOptions);
|
||||
//ExStart:Export3DAutoCADImagesToPDF
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,52 @@
|
||||
package com.aspose.cad.examples.ExportingCAD;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.InterpolationMode;
|
||||
import com.aspose.cad.SmoothingMode;
|
||||
import com.aspose.cad.TextRenderingHint;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
//import com.aspose.cad.imageoptions.TypeOfEntities;
|
||||
|
||||
public class ExportCADLayoutsToPDF {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(ExportCADLayoutsToPDF.class) + "ExportingCAD/";
|
||||
//ExStart:ExportCADLayoutsToPDF
|
||||
String srcFile = dataDir + "conic_pyramid.dxf";
|
||||
|
||||
// Create an instance of CadImage class and load the file.
|
||||
Image cadImage = Image.load(srcFile);
|
||||
|
||||
// Create an instance of CadRasterizationOptions class
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
rasterizationOptions.setPageWidth(1600);
|
||||
rasterizationOptions.setPageHeight(1600);
|
||||
|
||||
// Set the Entities type property to Entities3D.
|
||||
// rasterizationOptions.setTypeOfEntities(TypeOfEntities.Entities3D);
|
||||
rasterizationOptions.setAutomaticLayoutsScaling(true);
|
||||
rasterizationOptions.setNoScaling (false);
|
||||
//rasterizationOptions.setScaleMethod(ScaleType.GrowToFit);
|
||||
rasterizationOptions.setContentAsBitmap(true);
|
||||
|
||||
// Set Layouts
|
||||
rasterizationOptions.setLayouts(new String[] {"Model"});
|
||||
|
||||
// Create an instance of PDF options class
|
||||
PdfOptions pdfOptions = new PdfOptions();
|
||||
pdfOptions.setVectorRasterizationOptions(rasterizationOptions);
|
||||
|
||||
// Set Graphics options
|
||||
rasterizationOptions.getGraphicsOptions().setSmoothingMode(SmoothingMode.HighQuality);
|
||||
rasterizationOptions.getGraphicsOptions().setTextRenderingHint(TextRenderingHint.AntiAliasGridFit);
|
||||
rasterizationOptions.getGraphicsOptions().setInterpolationMode(InterpolationMode.HighQualityBicubic);
|
||||
|
||||
// Export to PDF by calling the Save method
|
||||
cadImage.save(dataDir + "CADLayoutsToPDF_out_.pdf", pdfOptions);
|
||||
//ExEnd:ExportCADLayoutsToPDF
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package com.aspose.cad.examples.ExportingCAD;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.InterpolationMode;
|
||||
import com.aspose.cad.SmoothingMode;
|
||||
import com.aspose.cad.TextRenderingHint;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.imageoptions.BmpOptions;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
//import com.aspose.cad.imageoptions.TypeOfEntities;
|
||||
|
||||
public class ExportToBMP {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(ExportToBMP.class) + "ExportingCAD/";
|
||||
//ExStart:ExportToBMP
|
||||
String fileName = (dataDir + "site.dwf");
|
||||
|
||||
com.aspose.cad.Image image = com.aspose.cad.Image.load(fileName);
|
||||
|
||||
BmpOptions bmpOptions = new BmpOptions();
|
||||
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
bmpOptions.setVectorRasterizationOptions(rasterizationOptions);
|
||||
|
||||
rasterizationOptions.setPageHeight(500);
|
||||
rasterizationOptions.setPageWidth(500);
|
||||
rasterizationOptions.setLayouts(new String[] { "Model" });
|
||||
// export
|
||||
String outPath = dataDir +"site.bmp";
|
||||
image.save(outPath, bmpOptions);
|
||||
|
||||
//ExEnd:ExportToBMP
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,37 @@
|
||||
package com.aspose.cad.examples.ExportingCAD;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.InterpolationMode;
|
||||
import com.aspose.cad.SmoothingMode;
|
||||
import com.aspose.cad.TextRenderingHint;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
//import com.aspose.cad.imageoptions.TypeOfEntities;
|
||||
|
||||
public class ExportToPDF {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
|
||||
// The path to the resource directory.
|
||||
String dataDir = Utils.getDataDir(ExportToPDF.class) + "ExportingCAD/";
|
||||
//ExStart:ExportToPDF
|
||||
String fileName = (dataDir +"site.dwf");
|
||||
com.aspose.cad.Image image = com.aspose.cad.Image.load(fileName);
|
||||
{
|
||||
PdfOptions pdfOptions = new PdfOptions();
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
pdfOptions.setVectorRasterizationOptions(rasterizationOptions);
|
||||
|
||||
rasterizationOptions.setPageHeight(500);
|
||||
rasterizationOptions.setPageWidth(500);
|
||||
rasterizationOptions.setLayouts(new String[] { "Model" });
|
||||
// export
|
||||
String outPath = dataDir + "site.pdf";
|
||||
image.save(outPath, pdfOptions);
|
||||
}
|
||||
|
||||
//ExEnd:ExportToPDF
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,41 @@
|
||||
package com.aspose.cad.examples.ExportingDGN;
|
||||
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
|
||||
public class AccessingUnderlayFlagsofDWG
|
||||
{
|
||||
public static void main(String[] args)
|
||||
{
|
||||
//ExStart:AccessingUnderlayFlagsofDWG
|
||||
String dataDir = Utils.getDataDir(AccessingUnderlayFlagsofDWG.class) + "DWGDrawings/";
|
||||
String fileName = dataDir + "BlockRefDgn.dwg";
|
||||
|
||||
// Load an existing DWG file and convert it into CadImage
|
||||
com.aspose.cad.fileformats.cad.CadImage image = (com.aspose.cad.fileformats.cad.CadImage) com.aspose.cad.Image.load(fileName);
|
||||
|
||||
// Go through each entity inside the DWG file
|
||||
for (com.aspose.cad.fileformats.cad.cadobjects.CadBaseEntity entity : image.getEntities())
|
||||
{
|
||||
|
||||
// Check if entity is of CadDgnUnderlay type
|
||||
if (entity instanceof com.aspose.cad.fileformats.cad.cadobjects.CadDgnUnderlay)
|
||||
{
|
||||
// Access different underlay flags
|
||||
com.aspose.cad.fileformats.cad.cadobjects.CadUnderlay underlay = (com.aspose.cad.fileformats.cad.cadobjects.CadUnderlay) entity;
|
||||
System.out.println(underlay.getUnderlayPath());
|
||||
System.out.println(underlay.getUnderlayName());
|
||||
System.out.println(underlay.getInsertionPoint().getX());
|
||||
System.out.println(underlay.getInsertionPoint().getY());
|
||||
System.out.println(underlay.getRotationAngle());
|
||||
System.out.println(underlay.getScaleX());
|
||||
System.out.println(underlay.getScaleY());
|
||||
System.out.println(underlay.getScaleZ());
|
||||
System.out.println((underlay.getFlags() & com.aspose.cad.fileformats.cad.cadobjects.UnderlayFlags.UnderlayIsOn) == com.aspose.cad.fileformats.cad.cadobjects.UnderlayFlags.UnderlayIsOn);
|
||||
System.out.println((underlay.getFlags() & com.aspose.cad.fileformats.cad.cadobjects.UnderlayFlags.ClippingIsOn) == com.aspose.cad.fileformats.cad.cadobjects.UnderlayFlags.ClippingIsOn);
|
||||
System.out.println((underlay.getFlags() & com.aspose.cad.fileformats.cad.cadobjects.UnderlayFlags.Monochrome) != com.aspose.cad.fileformats.cad.cadobjects.UnderlayFlags.Monochrome);
|
||||
break;
|
||||
}
|
||||
}
|
||||
//ExEnd:AccessingUnderlayFlagsofDWG
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,58 @@
|
||||
package com.aspose.cad.examples.ExportingDGN;
|
||||
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
|
||||
|
||||
|
||||
public class ExportDGNAsPartofDWG
|
||||
{
|
||||
public static void main(String[] args)
|
||||
{
|
||||
//ExStart:ExportDGNAsPartofDWG
|
||||
|
||||
// Input and Output file paths
|
||||
String dataDir = Utils.getDataDir(ExportDGNAsPartofDWG.class) + "ExportingDGN/";
|
||||
// Input and Output file paths
|
||||
String fileName = dataDir + "BlockRefDgn.dwg";
|
||||
String outPath = dataDir +"BlockRefDgn.dwg.pdf";
|
||||
|
||||
// Create an instance of PdfOptions class as we are exporting the DWG file to PDF format
|
||||
com.aspose.cad.imageoptions.PdfOptions exportOptions = new com.aspose.cad.imageoptions.PdfOptions();
|
||||
|
||||
// Load any existing DWG file as image and convert it to CadImage type
|
||||
com.aspose.cad.fileformats.cad.CadImage cadImage = (com.aspose.cad.fileformats.cad.CadImage) com.aspose.cad.Image.load(fileName);
|
||||
|
||||
// Go through each entity inside the DWG file
|
||||
for (com.aspose.cad.fileformats.cad.cadobjects.CadBaseEntity baseEntity : cadImage.getEntities())
|
||||
{
|
||||
// Check if entity is an image definition
|
||||
if (baseEntity.getTypeName() == com.aspose.cad.fileformats.cad.cadconsts.CadEntityTypeName.DGNUNDERLAY)
|
||||
{
|
||||
com.aspose.cad.fileformats.cad.cadobjects.CadDgnUnderlay dgnFile = (com.aspose.cad.fileformats.cad.cadobjects.CadDgnUnderlay)baseEntity;
|
||||
|
||||
// Get external reference to object
|
||||
System.out.println(dgnFile.getUnderlayPath());
|
||||
}
|
||||
}
|
||||
|
||||
// Define settings for CadRasterizationOptions object
|
||||
com.aspose.cad.imageoptions.CadRasterizationOptions vectorRasterizationOptions = new com.aspose.cad.imageoptions.CadRasterizationOptions();
|
||||
vectorRasterizationOptions.setPageWidth(1600);
|
||||
vectorRasterizationOptions.setPageHeight(1600);
|
||||
vectorRasterizationOptions.setLayouts(new String[] { "Model" });
|
||||
vectorRasterizationOptions.setAutomaticLayoutsScaling(false);
|
||||
vectorRasterizationOptions.setNoScaling(true);
|
||||
|
||||
vectorRasterizationOptions.setBackgroundColor(com.aspose.cad.Color.getBlack());
|
||||
vectorRasterizationOptions.setDrawType(com.aspose.cad.fileformats.cad.CadDrawTypeMode.UseObjectColor);
|
||||
|
||||
// Set Vector Rasterization Options
|
||||
exportOptions.setVectorRasterizationOptions(vectorRasterizationOptions);
|
||||
|
||||
// Export the DWG to PDF by calling Save method
|
||||
cadImage.save(outPath, exportOptions);
|
||||
|
||||
//ExEnd:ExportDGNAsPartofDWG
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
package com.aspose.cad.examples.ExportingDGN;
|
||||
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.OutputStream;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.ImageOptionsBase;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.fileformats.dgn.DgnImage;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.JpegOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
|
||||
public class ExportEmbeddedDGN
|
||||
{
|
||||
public static void main(String[] args)
|
||||
{
|
||||
// Input and Output file paths
|
||||
//ExStart:ExportEmbeddedDGN
|
||||
|
||||
String dataDir = Utils.getDataDir(ExportEmbeddedDGN.class) + "ExportingDGN/";
|
||||
String fileName = dataDir + "BlockRefDgn.dwg";
|
||||
com.aspose.cad.Image objImage = com.aspose.cad.Image.load(fileName);
|
||||
{
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
rasterizationOptions.setLayouts(new String[] {"Model"});
|
||||
PdfOptions pdfOptions = new PdfOptions();
|
||||
pdfOptions.setVectorRasterizationOptions(rasterizationOptions);
|
||||
objImage.save(dataDir + "BlockRefDgn.pdf", pdfOptions);
|
||||
}
|
||||
//ExEnd:ExportEmbeddedDGN
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,36 @@
|
||||
package com.aspose.cad.examples.ExportingDGN;
|
||||
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.OutputStream;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.dgn.DgnImage;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
|
||||
public class ExportingDGNAutoCADFormatToPDF {
|
||||
|
||||
public static void main(String[] args) throws FileNotFoundException {
|
||||
|
||||
// Input and Output file paths
|
||||
String dataDir = Utils.getDataDir(ExportingDGNAutoCADFormatToPDF.class) + "ExportingDGN/";
|
||||
//ExStart:SupportForDGNV7
|
||||
String fileName = dataDir + "Nikon_D90_Camera.dgn";
|
||||
String outFile = dataDir + "Nikon_D90_Camera.dgn";
|
||||
|
||||
DgnImage objImage = (DgnImage)com.aspose.cad.Image.load(fileName);
|
||||
|
||||
PdfOptions options = new PdfOptions();
|
||||
CadRasterizationOptions vectorOptions = new CadRasterizationOptions();
|
||||
vectorOptions.setPageWidth(1500);
|
||||
vectorOptions.setPageHeight(1500);
|
||||
vectorOptions.setAutomaticLayoutsScaling(true);
|
||||
vectorOptions.setLayouts(new String[] { "1", "2", "3", "9" });//only export 4 (1,2,3 and 9) views
|
||||
options.setVectorRasterizationOptions(vectorOptions);
|
||||
|
||||
objImage.save(outFile, options);
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,46 @@
|
||||
package com.aspose.cad.examples.ExportingDGN;
|
||||
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.OutputStream;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.ImageOptionsBase;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.dgn.DgnImage;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
|
||||
import com.aspose.cad.imageoptions.JpegOptions;
|
||||
|
||||
public class ExportingDGNAutoCADFormatToRasterImageFormat {
|
||||
|
||||
public static void main(String[] args) throws FileNotFoundException
|
||||
{
|
||||
|
||||
String dataDir = Utils.getDataDir(ExportingDGNAutoCADFormatToRasterImageFormat.class) + "ExportingDGN/";
|
||||
//ExStart:ExportingDGNAutoCADFormatToRasterImageFormat
|
||||
|
||||
// Load an existing DGN file as DgnImage.
|
||||
DgnImage dgnImage = (DgnImage) Image.load(dataDir + "Nikon_D90_Camera.dgn");
|
||||
|
||||
// Create an object of JpegOptions class as we are converting the DGN to JPEG and assign DgnRasterizationOptions object to it.
|
||||
ImageOptionsBase options = new JpegOptions();
|
||||
|
||||
CadRasterizationOptions vectorOptions = new CadRasterizationOptions();
|
||||
vectorOptions.setPageWidth(600);
|
||||
vectorOptions.setPageHeight(400);
|
||||
|
||||
vectorOptions.setNoScaling(true);
|
||||
|
||||
vectorOptions.setAutomaticLayoutsScaling(false);
|
||||
|
||||
options.setVectorRasterizationOptions(vectorOptions);
|
||||
|
||||
OutputStream outStream = new FileOutputStream(dataDir + "ExportDGNToRasterImage_Out.jpg");
|
||||
|
||||
// Call the save method of the CadImage class object.
|
||||
dgnImage.save(outStream, options);
|
||||
|
||||
//ExEnd:ExportingDGNAutoCADFormatToRasterImageFormat
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,39 @@
|
||||
package com.aspose.cad.examples.ExportingDGN;
|
||||
|
||||
import com.aspose.cad.Color;
|
||||
|
||||
import java.awt.Image;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
import com.aspose.cad.fileformats.dgn.DgnElementType;
|
||||
import com.aspose.cad.fileformats.dgn.DgnImage;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.dgn.DgnImage;
|
||||
import com.aspose.cad.fileformats.dgn.dgnelements.DgnDrawingElementBase;
|
||||
|
||||
public class SupportForDGNV7
|
||||
{
|
||||
public static void main(String[] args)
|
||||
{
|
||||
// Input and Output file paths
|
||||
String dataDir = Utils.getDataDir(SupportForDGNV7.class) + "ExportingDGN/";
|
||||
//ExStart:SupportForDGNV7
|
||||
String fileName = dataDir + "Nikon_D90_Camera.dgn";
|
||||
String outFile = dataDir + "Nikon_D90_Camera.dgn";
|
||||
|
||||
DgnImage objImage = (DgnImage)com.aspose.cad.Image.load(fileName);
|
||||
|
||||
PdfOptions options = new PdfOptions();
|
||||
CadRasterizationOptions vectorOptions = new CadRasterizationOptions();
|
||||
vectorOptions.setPageWidth(1500);
|
||||
vectorOptions.setPageHeight(1500);
|
||||
vectorOptions.setAutomaticLayoutsScaling(true);
|
||||
vectorOptions.setBackgroundColor(Color.getBlack());
|
||||
vectorOptions.setLayouts(new String[] { "1", "2", "3", "9" });//only export 4 (1,2,3 and 9) views
|
||||
options.setVectorRasterizationOptions(vectorOptions);
|
||||
|
||||
objImage.save(outFile, options);
|
||||
|
||||
//ExEnd:SupportForDGNV7
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,55 @@
|
||||
package com.aspose.cad.examples.ExportingDGN;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.dgn.DgnElementType;
|
||||
import com.aspose.cad.fileformats.dgn.DgnImage;
|
||||
import com.aspose.cad.fileformats.dgn.dgnelements.DgnDrawingElementBase;
|
||||
|
||||
|
||||
|
||||
public class SupportedDGNElements
|
||||
{
|
||||
public static void main(String[] args)
|
||||
{
|
||||
String dataDir = Utils.getDataDir(SupportedDGNElements.class) + "ExportingDGN/";
|
||||
//ExStart:SupportedDGNElements
|
||||
// Input and Output file paths
|
||||
String fileName = "BlockRefDgn.dwg";
|
||||
String outPath = "BlockRefDgn.dwg.pdf";
|
||||
|
||||
DgnImage dgnImage = (DgnImage)Image.load(dataDir);
|
||||
{
|
||||
for (DgnDrawingElementBase element : dgnImage.getElements())
|
||||
{
|
||||
switch (element.getMetadata().getType())
|
||||
{
|
||||
case DgnElementType.Line:
|
||||
case DgnElementType.Ellipse:
|
||||
case DgnElementType.Curve:
|
||||
case DgnElementType.BSplineCurveHeader:
|
||||
case DgnElementType.Arc:
|
||||
case DgnElementType.Shape:
|
||||
case DgnElementType.PolyLine:
|
||||
case DgnElementType.TextNode:
|
||||
case DgnElementType.Text:
|
||||
case DgnElementType.ComplexShapeHeader:
|
||||
case DgnElementType.ComplexChainHeader:
|
||||
{
|
||||
//previously supported entities, now supported also for 3D
|
||||
break;
|
||||
}
|
||||
|
||||
case DgnElementType.SolidHeader3D:
|
||||
case DgnElementType.Cone:
|
||||
case DgnElementType.CellHeader:
|
||||
{
|
||||
//supported 3D entities
|
||||
break;
|
||||
}
|
||||
}
|
||||
//ExEnd:SupportedDGNElements
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,57 @@
|
||||
|
||||
|
||||
package com.aspose.cad.examples.Features;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.Cad3DPoint;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.CadMText;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.CadText;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
|
||||
|
||||
public class AddWatermark {
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
|
||||
//ExStart:AddWatermark
|
||||
String dataDir = Utils.getDataDir(AddWatermark.class) + "DWGDrawings/";
|
||||
// Path to source file
|
||||
String sourceFilePath = dataDir+"Drawing11.dwg";
|
||||
|
||||
CadImage cadImage = (CadImage) Image.load(sourceFilePath);
|
||||
|
||||
//add new MTEXT
|
||||
CadMText watermark = new CadMText();
|
||||
watermark.setText("Watermark message");
|
||||
watermark.setInitialTextHeight(40);
|
||||
watermark.setInsertionPoint(new Cad3DPoint(300, 40));
|
||||
watermark.setLayerName("0");
|
||||
cadImage.getBlockEntities().get_Item("*Model_Space").addEntity(watermark);
|
||||
|
||||
|
||||
|
||||
// or add more simple entity like Text
|
||||
CadText text = new CadText();
|
||||
text.setDefaultValue("Watermark text");
|
||||
text.setTextHeight(40);
|
||||
text.setFirstAlignment(new Cad3DPoint(300, 40));
|
||||
text.setLayerName("0") ;
|
||||
cadImage.getBlockEntities().get_Item("*Model_Space").addEntity(text);
|
||||
|
||||
|
||||
|
||||
// export to pdf
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
rasterizationOptions.setPageWidth(1600);
|
||||
rasterizationOptions.setPageHeight(1600);
|
||||
rasterizationOptions.setLayouts(new String[]{"Model"});
|
||||
PdfOptions pdfOptions = new PdfOptions();
|
||||
pdfOptions.setVectorRasterizationOptions(rasterizationOptions);
|
||||
cadImage.save(dataDir + "AddWatermark_out.pdf", pdfOptions);
|
||||
//ExEnd:AddWatermark
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,30 @@
|
||||
|
||||
|
||||
package com.aspose.cad.examples.Features;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
|
||||
|
||||
public class CFFToPDF {
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
|
||||
//ExStart:CFFToPDF
|
||||
String dataDir = Utils.getDataDir(CFFToPDF.class) + "CFF/";
|
||||
// Path to source file
|
||||
String sourceFilePath = dataDir+"WineBottle_Die.cf2";
|
||||
|
||||
Image image = Image.load(sourceFilePath);
|
||||
{
|
||||
PdfOptions options = new PdfOptions();
|
||||
image.save(dataDir + "WineBottle_Die_out.pdf",options);
|
||||
}
|
||||
|
||||
|
||||
//ExEnd:CFFToPDF
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,44 @@
|
||||
|
||||
package com.aspose.cad.examples.Features;
|
||||
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.ObserverPoint;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
|
||||
|
||||
public class FreePointOfView {
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
|
||||
//ExStart:FreePointOfView
|
||||
String dataDir = Utils.getDataDir(FreePointOfView.class) + "CADConversion/";
|
||||
// Path to source file
|
||||
String sourceFilePath = dataDir+"conic_pyramid.dxf";
|
||||
|
||||
// Load a CAD drawing in an instance of Image
|
||||
com.aspose.cad.Image objImage = com.aspose.cad.Image.load(sourceFilePath);
|
||||
|
||||
CadRasterizationOptions cadRasterizationOptions = new CadRasterizationOptions();
|
||||
cadRasterizationOptions.setPageHeight(1500);
|
||||
cadRasterizationOptions.setPageWidth(1500);
|
||||
// Create an instance of JpegOptions class
|
||||
com.aspose.cad.imageoptions.JpegOptions options = new com.aspose.cad.imageoptions.JpegOptions();
|
||||
|
||||
options.setVectorRasterizationOptions(cadRasterizationOptions);
|
||||
|
||||
|
||||
float xAngle = 10; //Angle of rotation along the X axis
|
||||
float yAngle = 30; //Angle of rotation along the Y axis
|
||||
float zAngle = 40; //Angle of rotation along the Z axis
|
||||
|
||||
ObserverPoint obvPoint = new ObserverPoint(xAngle,yAngle,zAngle);
|
||||
cadRasterizationOptions.setObserverPoint(obvPoint);
|
||||
|
||||
options.setVectorRasterizationOptions(cadRasterizationOptions);
|
||||
|
||||
//Saving to Image
|
||||
objImage.save(dataDir+"FreePointOfView_out.jpeg", options);
|
||||
//ExEnd:FreePointOfView
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,53 @@
|
||||
package com.aspose.cad.examples.Features;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.InterruptionTokenSource;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
public class PutTimeoutOnSave {
|
||||
|
||||
public static void main(String[] args) throws InterruptedException {
|
||||
//ExStart:1
|
||||
final String SourceDir = Utils.getDataDir_DWGDrawings();
|
||||
final String OutputDir = Utils.getDataDir_Output();
|
||||
final InterruptionTokenSource source = new com.aspose.cad.InterruptionTokenSource();
|
||||
try {
|
||||
final CadImage cadImageBig = (CadImage)Image.load(SourceDir + "Drawing11.dwg");
|
||||
try {
|
||||
CadRasterizationOptions rasterizationOptionsBig = new CadRasterizationOptions();
|
||||
rasterizationOptionsBig.setPageWidth(cadImageBig.getSize().getWidth() / 2);
|
||||
rasterizationOptionsBig.setPageHeight(cadImageBig.getSize().getHeight() / 2);
|
||||
|
||||
final PdfOptions CADfBig = new PdfOptions();
|
||||
CADfBig.setVectorRasterizationOptions(rasterizationOptionsBig);
|
||||
CADfBig.setInterruptionToken(source.getToken());
|
||||
|
||||
java.lang.Thread thread = new java.lang.Thread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
cadImageBig.save(OutputDir + "PutTimeoutOnSave_out.pdf", CADfBig);
|
||||
} catch (Throwable th) {
|
||||
System.out.println("interrupted !!!");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
thread.start();
|
||||
TimeUnit.SECONDS.sleep(3);
|
||||
source.interrupt();
|
||||
thread.join();
|
||||
} finally {
|
||||
cadImageBig.dispose();
|
||||
}
|
||||
} finally {
|
||||
source.dispose();
|
||||
}
|
||||
//ExEnd:1
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,44 @@
|
||||
|
||||
|
||||
package com.aspose.cad.examples.Features;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.SizeF;
|
||||
import com.aspose.cad.examples.DWGDrawings.ExportOLEObjects;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
import com.aspose.cad.imageoptions.VectorRasterizationOptions;
|
||||
|
||||
|
||||
public class SinglePDFWithDifferentLayouts {
|
||||
|
||||
|
||||
public static void main(String[] args){
|
||||
|
||||
|
||||
//ExStart:SinglePDFWithDifferentLayouts
|
||||
String dataDir = Utils.getDataDir(SinglePDFWithDifferentLayouts.class) + "DWGDrawings/";
|
||||
|
||||
CadImage cadImage = (CadImage)Image.load(dataDir + "City skyway map.dwg");
|
||||
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
rasterizationOptions.setPageWidth(1000);
|
||||
rasterizationOptions.setPageHeight(1000);
|
||||
|
||||
//custom sizes for several layouts
|
||||
rasterizationOptions.getLayoutPageSizes().addItem("ANSI C Plot", new SizeF(500, 1000));
|
||||
rasterizationOptions.getLayoutPageSizes().addItem("8.5 x 11 Plot", new SizeF(1000, 100));
|
||||
|
||||
PdfOptions pdfOptions = new PdfOptions();
|
||||
pdfOptions.setVectorRasterizationOptions(rasterizationOptions);
|
||||
|
||||
cadImage.save(dataDir + "singlePDF_out.pdf", pdfOptions);
|
||||
|
||||
|
||||
|
||||
//ExEnd:SinglePDFWithDifferentLayouts
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,43 @@
|
||||
|
||||
package com.aspose.cad.examples.Hyperlinks;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.CadBaseEntity;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.CadBlockEntity;
|
||||
import com.aspose.cad.fileformats.cad.cadobjects.CadInsertObject;
|
||||
|
||||
|
||||
public class EditHyperlink {
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
//ExStart:EditHyperlink
|
||||
String dataDir = Utils.getDataDir(EditHyperlink.class) + "DWGDrawings/";
|
||||
|
||||
|
||||
CadImage cadImage = (CadImage)Image.load(dataDir + "AutoCad_Sample.dwg");
|
||||
for (CadBaseEntity entity : cadImage.getEntities())
|
||||
{
|
||||
if (entity instanceof CadInsertObject)
|
||||
{
|
||||
CadBlockEntity block = cadImage.getBlockEntities().get_Item(((CadInsertObject)entity).getName());
|
||||
String value = block.getXRefPathName().getValue();
|
||||
if (value != null && !value.contentEquals(""))
|
||||
{
|
||||
block.getXRefPathName().setValue("new file reference.dwg");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (entity.getHyperlink() == "https://products.aspose.com")
|
||||
{
|
||||
entity.setHyperlink("https://www.aspose.com");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//ExEnd:EditHyperlink
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.aspose.cad.examples.IFCDrawings;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.ifc.IfcImage;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PngOptions;
|
||||
|
||||
|
||||
public class ExportIFCToPNG {
|
||||
public static void main(String[] args)
|
||||
{
|
||||
String dataDir = Utils.getDataDir(ExportIFCToPNG.class) + "ExportingIFC/";
|
||||
//ExStart:ExportIFCToPNG
|
||||
String fileName = dataDir +"example.ifc";
|
||||
IfcImage cadImage = (IfcImage)Image.load(fileName);
|
||||
|
||||
CadRasterizationOptions vectorOptions = new CadRasterizationOptions();
|
||||
vectorOptions.setPageWidth(1500);
|
||||
vectorOptions.setPageHeight(1500);
|
||||
|
||||
PngOptions pngOptions = new PngOptions();
|
||||
pngOptions.setVectorRasterizationOptions(vectorOptions);
|
||||
String outPath = dataDir + "example.png";
|
||||
cadImage.save(dataDir, pngOptions);
|
||||
|
||||
|
||||
//ExEnd:ExportIFCToPNG
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,28 @@
|
||||
|
||||
package com.aspose.cad.examples.OBJDrawings;
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PdfOptions;
|
||||
|
||||
|
||||
public class SupportOfOBJ {
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
//ExStart:SupportOfOBJ
|
||||
String dataDir = Utils.getDataDir(SupportOfOBJ.class) + "OBJDrawings/";
|
||||
|
||||
Image cadDoc = Image.load(dataDir + "example-580-W.obj");
|
||||
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
|
||||
rasterizationOptions.setPageWidth(cadDoc.getSize().getWidth());
|
||||
rasterizationOptions.setPageHeight(cadDoc.getSize().getHeight());
|
||||
PdfOptions CADf = new PdfOptions();
|
||||
CADf.setVectorRasterizationOptions(rasterizationOptions);
|
||||
cadDoc.save(dataDir + "example-580-W_custom.pdf", CADf);
|
||||
|
||||
//ExEnd:SupportOfOBJ
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,36 @@
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.aspose.cad.examples.STLDrawings;
|
||||
|
||||
|
||||
import com.aspose.cad.Image;
|
||||
import com.aspose.cad.examples.Utils.Utils;
|
||||
import com.aspose.cad.fileformats.dgn.DgnImage;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.fileformats.cad.CadImage;
|
||||
import com.aspose.cad.imageoptions.CadRasterizationOptions;
|
||||
import com.aspose.cad.imageoptions.PngOptions;
|
||||
|
||||
public class ExportSTLToPNG {
|
||||
public static void main(String[] args)
|
||||
{
|
||||
//ExStart:ExportSTLToPNG
|
||||
String dataDir = Utils.getDataDir(ExportSTLToPNG.class) + "ExportingSTL/";
|
||||
String fileName = dataDir + "example.stl";
|
||||
|
||||
CadImage cadImage = (CadImage)Image.load(fileName);
|
||||
CadRasterizationOptions vectorOptions = new CadRasterizationOptions();
|
||||
vectorOptions.setPageWidth(1500);
|
||||
vectorOptions.setPageHeight(1500);
|
||||
|
||||
PngOptions pngOptions = new PngOptions();
|
||||
//pngOptions.setVectorRasterizationOptions(rasterizationOptions);
|
||||
String outPath = dataDir + "galeon.stl.png";
|
||||
cadImage.save(outPath, pngOptions);
|
||||
|
||||
//ExEnd:ExportSTLToPNG
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,51 @@
|
||||
package com.aspose.cad.examples.Utils;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
public class Utils {
|
||||
|
||||
public static String getDataDir(Class c) {
|
||||
File dir = new File(System.getProperty("user.dir"));
|
||||
dir = new File(dir, "src");
|
||||
dir = new File(dir, "main");
|
||||
dir = new File(dir, "resources");
|
||||
|
||||
return dir.toString() + File.separator;
|
||||
}
|
||||
|
||||
public static String getDataDir_Output() {
|
||||
File dir = new File(System.getProperty("user.dir"));
|
||||
dir = new File(dir, "src");
|
||||
dir = new File(dir, "main");
|
||||
dir = new File(dir, "resources");
|
||||
|
||||
return dir.toString() + File.separator + "01_OutputDirectory" + File.separator;
|
||||
}
|
||||
|
||||
public static String getDataDir_DWGDrawings() {
|
||||
File dir = new File(System.getProperty("user.dir"));
|
||||
dir = new File(dir, "src");
|
||||
dir = new File(dir, "main");
|
||||
dir = new File(dir, "resources");
|
||||
|
||||
return dir.toString() + File.separator + "DWGDrawings" + File.separator;
|
||||
}
|
||||
|
||||
public static String getDataDir_DXFDrawings() {
|
||||
File dir = new File(System.getProperty("user.dir"));
|
||||
dir = new File(dir, "src");
|
||||
dir = new File(dir, "main");
|
||||
dir = new File(dir, "resources");
|
||||
|
||||
return dir.toString() + File.separator + "DXFDrawings" + File.separator;
|
||||
}
|
||||
|
||||
public static String getDataDir_DWFXDrawings() {
|
||||
File dir = new File(System.getProperty("user.dir"));
|
||||
dir = new File(dir, "src");
|
||||
dir = new File(dir, "main");
|
||||
dir = new File(dir, "resources");
|
||||
|
||||
return dir.toString() + File.separator + "DWFXDrawings" + File.separator;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,287 @@
|
||||
PLATE.001 SAMPLE MECHANICAL PART WITH ANNOTATION S 1
|
||||
USED AT AUTOFACT - OCTOBER 1982 AND IN VERSION 3.0 APPENDIX A S 2
|
||||
S 3
|
||||
ENTITY CONTENT: POINT, LINE, ARC and CONIC S 4
|
||||
LINEAR, ANGULAR, RADIUS, POINT and ORDINATE DIMENSION S 5
|
||||
GENERAL NOTE, GENERAL LABEL S 6
|
||||
S 7
|
||||
,,8HPANEL123,10HPANEL.IGES,4HEX 2,4HHAND,16,38,7,38,14,8HPANEL123,1.0, G 1
|
||||
1,4HINCH,1,0.028,13H900729.231652,0.0005,100.0, G 2
|
||||
25HIGES RFC Review Committee,8HIPO/NIST,6,0; G 3
|
||||
124 1 1 1 0 0 0 0 0D 1
|
||||
124 0 0 2 0 0D 2
|
||||
212 3 1 1 5 0 0 0 10100D 3
|
||||
212 0 0 2 0 0D 4
|
||||
214 5 1 1 5 0 0 0 10100D 5
|
||||
214 0 0 1 2 0D 6
|
||||
210 6 1 1 5 0 0 0 101D 7
|
||||
210 0 0 1 0 0D 8
|
||||
110 7 1 1 1 0 0 0 0D 9
|
||||
110 0 0 1 0 0D 10
|
||||
110 8 1 1 1 0 0 0 0D 11
|
||||
110 0 0 1 0 0D 12
|
||||
110 9 1 1 1 0 0 0 0D 13
|
||||
110 0 0 1 0 0D 14
|
||||
110 10 1 1 1 0 0 0 0D 15
|
||||
110 0 0 1 0 0D 16
|
||||
100 11 1 1 1 0 0 0 0D 17
|
||||
100 0 0 1 0 0D 18
|
||||
100 12 1 1 1 0 0 0 0D 19
|
||||
100 0 0 1 0 0D 20
|
||||
100 13 1 1 1 0 0 0 0D 21
|
||||
100 0 0 1 0 0D 22
|
||||
100 14 1 1 1 0 0 0 0D 23
|
||||
100 0 0 1 0 0D 24
|
||||
116 15 1 1 2 0 0 0 0D 25
|
||||
116 0 0 1 0 0D 26
|
||||
116 16 1 1 2 0 0 0 0D 27
|
||||
116 0 0 1 0 0D 28
|
||||
116 17 1 1 2 0 0 0 0D 29
|
||||
116 0 0 1 0 0D 30
|
||||
116 18 1 1 2 0 0 0 0D 31
|
||||
116 0 0 1 0 0D 32
|
||||
104 19 1 1 3 0 1 0 0D 33
|
||||
104 0 0 2 1 0D 34
|
||||
116 21 1 1 2 0 0 0 0D 35
|
||||
116 0 0 1 0 0D 36
|
||||
116 22 1 1 2 0 0 0 0D 37
|
||||
116 0 0 1 0 0D 38
|
||||
212 23 1 1 4 0 0 0 10100D 39
|
||||
212 0 0 1 0 0D 40
|
||||
214 24 1 1 4 0 0 0 10100D 41
|
||||
214 0 0 1 2 0D 42
|
||||
214 25 1 1 4 0 0 0 10100D 43
|
||||
214 0 0 1 2 0D 44
|
||||
106 26 1 1 4 0 0 0 10100D 45
|
||||
106 0 0 1 40 0D 46
|
||||
106 27 1 1 4 0 0 0 10100D 47
|
||||
106 0 0 1 40 0D 48
|
||||
216 28 1 1 4 0 0 0 101D 49
|
||||
216 0 0 1 0 0D 50
|
||||
212 29 1 1 4 0 0 0 10100D 51
|
||||
212 0 0 1 0 0D 52
|
||||
214 30 1 1 4 0 0 0 10100D 53
|
||||
214 0 0 1 2 0D 54
|
||||
214 31 1 1 4 0 0 0 10100D 55
|
||||
214 0 0 1 2 0D 56
|
||||
106 32 1 1 4 0 0 0 10100D 57
|
||||
106 0 0 1 40 0D 58
|
||||
106 33 1 1 4 0 0 0 10100D 59
|
||||
106 0 0 1 40 0D 60
|
||||
216 34 1 1 4 0 0 0 101D 61
|
||||
216 0 0 1 0 0D 62
|
||||
212 35 1 1 5 0 0 0 10100D 63
|
||||
212 0 0 1 0 0D 64
|
||||
106 36 1 1 5 0 0 0 10100D 65
|
||||
106 0 0 1 40 0D 66
|
||||
218 37 1 1 5 0 0 0 101D 67
|
||||
218 0 0 1 0 0D 68
|
||||
212 38 1 1 5 0 0 0 10100D 69
|
||||
212 0 0 1 0 0D 70
|
||||
106 39 1 1 5 0 0 0 10100D 71
|
||||
106 0 0 1 40 0D 72
|
||||
218 40 1 1 5 0 0 0 101D 73
|
||||
218 0 0 1 0 0D 74
|
||||
212 41 1 1 5 0 0 0 10100D 75
|
||||
212 0 0 1 0 0D 76
|
||||
106 42 1 1 5 0 0 0 10100D 77
|
||||
106 0 0 1 40 0D 78
|
||||
218 43 1 1 5 0 0 0 101D 79
|
||||
218 0 0 1 0 0D 80
|
||||
212 44 1 1 5 0 0 0 10100D 81
|
||||
212 0 0 1 0 0D 82
|
||||
106 45 1 1 5 0 0 0 10100D 83
|
||||
106 0 0 1 40 0D 84
|
||||
218 46 1 1 5 0 0 0 101D 85
|
||||
218 0 0 1 0 0D 86
|
||||
212 47 1 1 5 0 0 0 10100D 87
|
||||
212 0 0 1 0 0D 88
|
||||
106 48 1 1 5 0 0 0 10100D 89
|
||||
106 0 0 1 40 0D 90
|
||||
218 49 1 1 5 0 0 0 101D 91
|
||||
218 0 0 1 0 0D 92
|
||||
212 50 1 1 5 0 0 0 10100D 93
|
||||
212 0 0 1 0 0D 94
|
||||
106 51 1 1 5 0 0 0 10100D 95
|
||||
106 0 0 1 40 0D 96
|
||||
218 52 1 1 5 0 0 0 101D 97
|
||||
218 0 0 1 0 0D 98
|
||||
212 53 1 1 5 0 0 0 10100D 99
|
||||
212 0 0 2 0 0D 100
|
||||
106 55 1 1 5 0 0 0 10100D 101
|
||||
106 0 0 1 40 0D 102
|
||||
218 56 1 1 5 0 0 0 101D 103
|
||||
218 0 0 1 0 0D 104
|
||||
212 57 1 1 5 0 0 0 10100D 105
|
||||
212 0 0 2 0 0D 106
|
||||
106 59 1 1 5 0 0 0 10100D 107
|
||||
106 0 0 1 40 0D 108
|
||||
218 60 1 1 5 0 0 0 101D 109
|
||||
218 0 0 1 0 0D 110
|
||||
212 61 1 1 5 0 0 0 10100D 111
|
||||
212 0 0 2 0 0D 112
|
||||
214 63 1 1 5 0 0 0 10100D 113
|
||||
214 0 0 1 2 0D 114
|
||||
222 64 1 1 5 0 0 0 101D 115
|
||||
222 0 0 1 0 0D 116
|
||||
212 65 1 1 6 0 0 0 10100D 117
|
||||
212 0 0 1 0 0D 118
|
||||
214 66 1 1 6 0 0 0 10100D 119
|
||||
214 0 0 1 2 0D 120
|
||||
214 67 1 1 6 0 0 0 10100D 121
|
||||
214 0 0 1 2 0D 122
|
||||
106 68 1 1 6 0 0 0 1010100D 123
|
||||
106 0 0 1 40 0D 124
|
||||
106 69 1 1 6 0 0 0 10100D 125
|
||||
106 0 0 1 40 0D 126
|
||||
216 70 1 1 6 0 0 0 101D 127
|
||||
216 0 0 1 0 0D 128
|
||||
212 71 1 1 6 0 0 0 10100D 129
|
||||
212 0 0 1 0 0D 130
|
||||
214 72 1 1 6 0 0 0 10100D 131
|
||||
214 0 0 1 2 0D 132
|
||||
214 73 1 1 6 0 0 0 10100D 133
|
||||
214 0 0 1 2 0D 134
|
||||
106 74 1 1 6 0 0 0 10100D 135
|
||||
106 0 0 1 40 0D 136
|
||||
106 75 1 1 6 0 0 0 1010100D 137
|
||||
106 0 0 1 40 0D 138
|
||||
216 76 1 1 6 0 0 0 101D 139
|
||||
216 0 0 1 0 0D 140
|
||||
212 77 1 1 6 0 0 0 10100D 141
|
||||
212 0 0 1 0 0D 142
|
||||
214 78 1 1 6 0 0 0 10100D 143
|
||||
214 0 0 1 2 0D 144
|
||||
214 79 1 1 6 0 0 0 10100D 145
|
||||
214 0 0 1 2 0D 146
|
||||
106 80 1 1 6 0 0 0 10100D 147
|
||||
106 0 0 1 40 0D 148
|
||||
106 81 1 1 6 0 0 0 10100D 149
|
||||
106 0 0 1 40 0D 150
|
||||
216 82 1 1 6 0 0 0 101D 151
|
||||
216 0 0 1 0 0D 152
|
||||
212 83 1 1 6 0 0 0 10100D 153
|
||||
212 0 0 1 0 0D 154
|
||||
214 84 1 1 6 0 0 0 10100D 155
|
||||
214 0 0 1 2 0D 156
|
||||
214 85 1 1 6 0 0 0 10100D 157
|
||||
214 0 0 1 2 0D 158
|
||||
106 86 1 1 6 0 0 0 10100D 159
|
||||
106 0 0 1 40 0D 160
|
||||
106 87 1 1 6 0 0 0 10100D 161
|
||||
106 0 0 1 40 0D 162
|
||||
216 88 1 1 6 0 0 0 101D 163
|
||||
216 0 0 1 0 0D 164
|
||||
110 89 1 4 6 0 0 0 100D 165
|
||||
110 0 0 1 0 0D 166
|
||||
110 90 1 4 6 0 0 0 100D 167
|
||||
110 0 0 1 0 0D 168
|
||||
212 91 1 1 6 0 0 0 10100D 169
|
||||
212 0 0 1 0 0D 170
|
||||
214 92 1 1 6 0 0 0 10100D 171
|
||||
214 0 0 1 2 0D 172
|
||||
214 93 1 1 6 0 0 0 10100D 173
|
||||
214 0 0 1 2 0D 174
|
||||
106 94 1 1 6 0 0 0 1010100D 175
|
||||
106 0 0 1 40 0D 176
|
||||
106 95 1 1 6 0 0 0 1010100D 177
|
||||
106 0 0 1 40 0D 178
|
||||
202 96 1 1 6 0 0 0 101D 179
|
||||
202 0 0 1 0 0D 180
|
||||
124,0.70710678,-0.70710678,0.0,1.0,0.70710678,0.70710678,0.0, 1P 1
|
||||
1.0,0.0,0.0,1.0,0.0,0,0; 1P 2
|
||||
212,2,10,0.98,0.1,1,1.571,0.0,0,0,3.21,1.656,0.0,10HDRILL .010, 3P 3
|
||||
10,1.02,0.1,1,1.571,0.0,0,0,3.210,1.506,0.0,10H(6 PLACES),0,0; 3P 4
|
||||
214,2,0.150,0.050,0.0,4.800,2.000,4.562,1.546,4.262,1.546,0,0; 5P 5
|
||||
210,3,1,5,0,0; 7P 6
|
||||
110,0.0,0.200,0.0,0.0,3.000,0.0,0,0; 9P 7
|
||||
110,0.200,0.0,0.0,4.800,0.0,0.0,0,0; 11P 8
|
||||
110,5.000,0.200,0.0,5.000,3.000,0.0,0,0; 13P 9
|
||||
110,0.200,3.200,0.0,4.800,3.200,0.0,0,0; 15P 10
|
||||
100,0.0,4.800,3.000,5.000,3.000,4.800,3.200,0,0; 17P 11
|
||||
100,0.0,0.200,3.000,0.200,3.200,0.0,3.000,0,0; 19P 12
|
||||
100,0.0,0.200,0.200,0.0,0.200,0.200,0.00,0,0; 21P 13
|
||||
100,0.0,4.800,0.200,4.800,0.0,5.000,0.200,0,0; 23P 14
|
||||
116,4.000,3.000,0.0,0,0,0; 25P 15
|
||||
116,3.000,3.000,0.0,0,0,0; 27P 16
|
||||
116,2.000,3.000,0.0,0,0,0; 29P 17
|
||||
116,1.000,3.000,0.0,0,0,0; 31P 18
|
||||
104,4.000,0.0,16.000,0.0,0.0,-1.000,0.0,0.500,0.0,0.500,0.0, 33P 19
|
||||
0,0; 33P 20
|
||||
116,4.800,1.000,0.0,0,0,0; 35P 21
|
||||
116,4.800,2.000,0.0,0,0,0; 37P 22
|
||||
212,1,3,0.421,0.156,1,1.571,0.0,0,0,-0.639,1.614,0.0,3H3.2,0,0; 39P 23
|
||||
214,1,0.150,0.050,0.0,-0.454,3.200,-0.454,1.870,0,0; 41P 24
|
||||
214,1,0.150,0.050,0.0,-0.454,0.0,-0.454,1.514,0,0; 43P 25
|
||||
106,1,3,0.0,0.0,3.200,-0.094,3.200,-0.579,3.200,0,0; 45P 26
|
||||
106,1,3,0.0,0.0,0.0,-0.094,0.0,-0.579,0.0,0,0; 47P 27
|
||||
216,39,41,43,45,47,0,0; 49P 28
|
||||
212,1,3,0.437,0.156,1,1.571,0.0,0,0,2.032,-0.447,0.0,3H5.0,0,0; 51P 29
|
||||
214,1,0.150,0.050,0.0,0.0,-0.369,1.932,-0.369,0,0; 53P 30
|
||||
214,1,0.150,0.050,0.0,5.000,-0.369,2.519,-0.369,0,0; 55P 31
|
||||
106,1,3,0.0,0.0,0.0,0.0,-0.094,0.0,-0.494,0,0; 57P 32
|
||||
106,1,3,0.0,5.000,0.0,5.000,-0.094,5.000,-0.494,0,0; 59P 33
|
||||
216,51,53,55,57,59,0,0; 61P 34
|
||||
212,1,3,0.374,0.156,1,1.571,1.571,0,0,4.078,4.181,0.0,3H1.0,0,0; 63P 35
|
||||
106,1,3,0.0,4.000,3.094,4.000,3.188,4.000,3.993,0,0; 65P 36
|
||||
218,63,65,0,0; 67P 37
|
||||
212,1,3,0.421,0.156,1,1.571,1.571,0,0,3.078,4.183,0.0,3H2.0,0,0; 69P 38
|
||||
106,1,3,0.0,3.000,3.094,3.000,3.188,3.000,3.996,0,0; 71P 39
|
||||
218,69,71,0,0; 73P 40
|
||||
212,1,3,0.437,0.156,1,1.571,1.571,0,0,2.078,4.177,0.0,3H3.0,0,0; 75P 41
|
||||
106,1,3,0.0,2.000,3.094,2.000,3.188,2.000,3.989,0,0; 77P 42
|
||||
218,75,77,0,0; 79P 43
|
||||
212,1,3,0.437,0.156,1,1.571,1.571,0,0,1.078,4.177,0.0,3H4.0,0,0; 81P 44
|
||||
106,1,3,0.0,1.000,3.094,1.000,3.188,1.000,3.989,0,0; 83P 45
|
||||
218,81,83,0,0; 85P 46
|
||||
212,1,3,0.374,0.156,1,1.571,0.0,0,0,6.211,0.922,0.0,3H1.0,0,0; 87P 47
|
||||
106,1,3,0.0,4.894,1.000,4.988,1.000,6.024,1.000,0,0; 89P 48
|
||||
218,87,89,0,0; 91P 49
|
||||
212,1,3,0.421,0.156,1,1.571,0.0,0,0,6.211,1.922,0.0,3H2.0,0,0; 93P 50
|
||||
106,1,3,0.0,4.894,2.000,4.988,2.000,6.024,2.000,0,0; 95P 51
|
||||
218,93,95,0,0; 97P 52
|
||||
212,1,7,1.248,0.156,1,1.571,0.,0,0,6.23,-0.078,0.0,7HDATUM B,0, 99P 53
|
||||
0; 99P 54
|
||||
106,1,3,0.0,5.094,0.0,5.188,0.0,6.042,0.0,0,0; 101P 55
|
||||
218,99,101,0,0; 103P 56
|
||||
212,1,7,1.232,0.156,1,1.571,1.571,0,0,5.078,4.193,0.,7HDATUM A, 105P 57
|
||||
0,0; 105P 58
|
||||
106,1,3,0.0,5.000,3.094,5.000,3.187,5.000,4.006,0,0; 107P 59
|
||||
218,105,107,0,0; 109P 60
|
||||
212,2,4,0.35,0.100,1,1.571,0.,0,0,4.029,2.611,0.,4H.2 R,5,0.500, 111P 61
|
||||
0.100,1,1.571,0.0,0,0,4.029,2.461,0.0,5H(TYP),0,0; 111P 62
|
||||
214,2,0.150,0.050,0.0,4.877,3.185,4.862,2.511,4.562,2.511,0,0; 113P 63
|
||||
222,111,113,4.800,3.000,0,0; 115P 64
|
||||
212,1,3,0.240,0.100,1,1.571,0.0,0,0,1.559,0.602,0.0,3H1.0,0,0; 117P 65
|
||||
214,1,0.150,0.050,0.0,1.663,0.0,1.663,0.538,0,0; 119P 66
|
||||
214,1,0.150,0.050,0.0,1.663,1.000,1.663,0.766,0,0; 121P 67
|
||||
106,1,3,0.0,0.200,0.0,0.294,0.0,1.788,0.0,0,0; 123P 68
|
||||
106,1,3,0.0,1.000,1.000,1.094,1.000,1.788,1.000,0,0; 125P 69
|
||||
216,117,119,121,123,125,0,0; 127P 70
|
||||
212,1,3,0.240,0.100,1,1.571,0.0,0,0,0.537,0.275,0.0,3H1.0,0,0; 129P 71
|
||||
214,1,0.150,0.050,0.0,1.000,0.325,0.809,0.325,0,0; 131P 72
|
||||
214,1,0.150,0.050,0.0,0.0,0.325,0.473,0.325,0,0; 133P 73
|
||||
106,1,3,0.0,1.000,1.000,1.000,0.906,1.000,0.200,0,0; 135P 74
|
||||
106,1,3,0.0,0.0,0.012,0.0,0.106,0.0,0.200,0,0; 137P 75
|
||||
216,129,131,133,135,137,0,0; 139P 76
|
||||
212,1,3,0.240,0.100,1,1.571,0.0,0,0,0.470,1.289,0.0,3H1.0,0,0; 141P 77
|
||||
214,1,0.150,0.050,0.0,0.971,1.736,0.688,1.453,0,0; 143P 78
|
||||
214,1,0.150,0.050,0.0,0.264,1.029,0.459,1.225,0,0; 145P 79
|
||||
106,1,3,0.0,1.354,1.354,1.287,1.420,0.882,1.825,0,0; 147P 80
|
||||
106,1,3,0.0,0.646,0.646,0.580,0.713,0.175,1.118,0,0; 149P 81
|
||||
216,141,143,145,147,149,0,0; 151P 82
|
||||
212,1,2,0.170,0.100,1,1.571,0.0,0,0,1.631,1.622,0.0,2H.5,0,0; 153P 83
|
||||
214,1,0.150,0.050,0.0,1.863,1.509,2.146,1.226,0,0; 155P 84
|
||||
214,1,0.150,0.050,0.0,1.509,1.863,1.226,2.146,0,0; 157P 85
|
||||
106,1,3,0.0,1.177,0.823,1.243,0.890,1.951,1.598,0,0; 159P 86
|
||||
106,1,3,0.0,0.823,1.177,0.890,1.243,1.598,1.951,0,0; 161P 87
|
||||
216,153,155,157,159,161,0,0; 163P 88
|
||||
110,0.500,0.500,0.0,1.500,1.500,0.0,0,0; 165P 89
|
||||
110,1.225,0.775,0.0,0.775,1.225,0.0,0,0; 167P 90
|
||||
212,1,2,0.220,0.100,1,1.571,0.0,0,0,2.566,0.786,0.0,2H45,0,0; 169P 91
|
||||
214,1,0.150,0.050,0.0,2.847,0.0,2.754,0.722,0,0; 171P 92
|
||||
214,1,0.150,0.050,0.0,2.013,2.013,2.683,0.951,0,0; 173P 93
|
||||
106,1,3,0.0,4.988,0.0,4.894,0.0,2.972,0.0,0,0; 175P 94
|
||||
106,1,3,0.0,2.000,2.000,2.066,2.066,2.101,2.101,0,0; 177P 95
|
||||
202,169,175,177,0.0,0.0,2.847,171,173,0,0; 179P 96
|
||||
S 7G 3D 180P 96 T 1
|
||||
Binary file not shown.
Binary file not shown.
@ -0,0 +1,681 @@
|
||||
$BOF
|
||||
V2
|
||||
ORDER
|
||||
END
|
||||
MAIN,Layout
|
||||
UM
|
||||
LL,10.492488,34.045633
|
||||
UR,294.307512,423.154367
|
||||
SCALE,1,1
|
||||
C,WineBottle_0,18.492488,42.045633,0,1,1
|
||||
C,WineBottle_0,103.079452,415.154367,180,1,1
|
||||
C,WineBottle_0,79.568508,42.045633,0,1,1
|
||||
C,WineBottle_0,164.155472,415.154367,180,1,1
|
||||
C,WineBottle_0,140.644528,42.045633,0,1,1
|
||||
C,WineBottle_0,225.231492,415.154367,180,1,1
|
||||
C,WineBottle_0,201.720548,42.045633,0,1,1
|
||||
C,WineBottle_0,286.307512,415.154367,180,1,1
|
||||
C,DIEMARKS_1,3,10,0,1,1
|
||||
C,CROPMARKS_2,3,10,0,1,1
|
||||
C,FOLDMARKS_3,3,10,0,1,1
|
||||
C,SHEET_4,3,10,0,1,1
|
||||
END
|
||||
SUB,WineBottle_0
|
||||
L,2,1,0,54.623664,10.09647,54.637004,10.16879,0,0
|
||||
L,2,1,0,54.637004,10.16879,54.649985,10.265073,0,0
|
||||
L,2,1,0,54.649985,10.265073,54.662615,10.384957,0,0
|
||||
L,2,1,0,54.662615,10.384957,54.674898,10.528084,0,0
|
||||
L,2,1,0,54.674898,10.528084,54.686842,10.694094,0,0
|
||||
L,2,1,0,54.686842,10.694094,54.698453,10.882629,0,0
|
||||
L,2,1,0,54.698453,10.882629,54.709738,11.093327,0,0
|
||||
L,2,1,0,54.709738,11.093327,54.720704,11.325831,0,0
|
||||
L,2,1,0,54.720704,11.325831,54.731356,11.57978,0,0
|
||||
L,2,1,0,54.731356,11.57978,54.741702,11.854814,0,0
|
||||
L,2,1,0,54.741702,11.854814,54.751748,12.150576,0,0
|
||||
L,2,1,0,54.751748,12.150576,54.7615,12.466704,0,0
|
||||
L,2,1,0,54.7615,12.466704,54.770966,12.80284,0,0
|
||||
L,2,1,0,54.770966,12.80284,54.780151,13.158623,0,0
|
||||
L,2,1,0,54.780151,13.158623,54.789062,13.533695,0,0
|
||||
L,2,1,0,54.789062,13.533695,54.797705,13.927697,0,0
|
||||
L,2,1,0,54.797705,13.927697,54.806088,14.340267,0,0
|
||||
L,2,1,0,54.806088,14.340267,54.814217,14.771049,0,0
|
||||
L,2,1,0,54.814217,14.771049,54.822098,15.219681,0,0
|
||||
L,2,1,0,54.822098,15.219681,54.829738,15.685803,0,0
|
||||
L,2,1,0,54.829738,15.685803,54.837143,16.169058,0,0
|
||||
L,2,1,0,54.837143,16.169058,54.84432,16.669085,0,0
|
||||
L,2,1,0,54.84432,16.669085,54.851275,17.185524,0,0
|
||||
L,2,1,0,54.851275,17.185524,54.858015,17.718017,0,0
|
||||
L,2,1,0,54.858015,17.718017,54.864547,18.266204,0,0
|
||||
L,2,1,0,54.864547,18.266204,54.870877,18.829725,0,0
|
||||
L,2,1,0,54.870877,18.829725,54.877011,19.408221,0,0
|
||||
L,2,1,0,54.877011,19.408221,54.88872,20.608699,0,0
|
||||
L,2,1,0,54.88872,20.608699,54.899725,21.864764,0,0
|
||||
L,2,1,0,54.899725,21.864764,54.91008,23.173538,0,0
|
||||
L,2,1,0,54.91008,23.173538,54.919836,24.532146,0,0
|
||||
L,2,1,0,54.919836,24.532146,54.929045,25.937713,0,0
|
||||
L,2,1,0,54.929045,25.937713,54.93776,27.387361,0,0
|
||||
L,2,1,0,54.93776,27.387361,54.946034,28.878217,0,0
|
||||
L,2,1,0,54.946034,28.878217,54.953918,30.407405,0,0
|
||||
L,2,1,0,54.953918,30.407405,54.961464,31.972047,0,0
|
||||
L,2,1,0,54.961464,31.972047,54.968726,33.569268,0,0
|
||||
L,2,1,0,54.968726,33.569268,54.975755,35.196193,0,0
|
||||
L,2,1,0,54.975755,35.196193,54.982604,36.849946,0,0
|
||||
L,2,1,0,54.982604,36.849946,54.989325,38.527652,0,0
|
||||
L,2,1,0,54.989325,38.527652,54.99597,40.226434,0,0
|
||||
L,2,1,0,54.99597,40.226434,55.002592,41.943416,0,0
|
||||
L,2,1,0,55.002592,41.943416,55.009243,43.675721,0,0
|
||||
L,2,1,0,55.009243,43.675721,55.02284,47.174806,0,0
|
||||
L,2,1,0,55.02284,47.174806,55.03718,50.700677,0,0
|
||||
L,2,1,0,55.03718,50.700677,55.052682,54.230333,0,0
|
||||
L,2,1,0,55.052682,54.230333,55.069764,57.740766,0,0
|
||||
L,2,1,0,55.069764,57.740766,55.079028,59.481584,0,0
|
||||
L,2,1,0,55.079028,59.481584,55.088844,61.208967,0,0
|
||||
L,2,1,0,55.088844,61.208967,55.099264,62.920041,0,0
|
||||
L,2,1,0,55.099264,62.920041,55.11034,64.611932,0,0
|
||||
L,2,1,0,55.11034,64.611932,55.122126,66.281762,0,0
|
||||
L,2,1,0,55.122126,66.281762,55.134672,67.926656,0,0
|
||||
L,2,1,0,55.134672,67.926656,55.148032,69.543737,0,0
|
||||
L,2,1,0,55.148032,69.543737,55.162257,71.130128,0,0
|
||||
L,2,1,0,55.162257,71.130128,55.1774,72.682958,0,0
|
||||
L,2,1,0,55.1774,72.682958,55.193514,74.19935,0,0
|
||||
L,2,1,0,55.193514,74.19935,55.21065,75.676423,0,0
|
||||
L,2,1,0,55.21065,75.676423,55.228861,77.111306,0,0
|
||||
L,2,1,0,55.228861,77.111306,55.248199,78.501123,0,0
|
||||
L,2,1,0,55.248199,78.501123,55.268717,79.842996,0,0
|
||||
L,2,1,0,55.268717,79.842996,55.290466,81.13405,0,0
|
||||
L,2,1,0,55.290466,81.13405,55.313499,82.371408,0,0
|
||||
L,2,1,0,55.313499,82.371408,55.337869,83.552202,0,0
|
||||
L,2,1,0,55.337869,83.552202,55.350571,84.120477,0,0
|
||||
L,2,1,0,55.350571,84.120477,55.363627,84.673539,0,0
|
||||
L,2,1,0,55.363627,84.673539,55.377043,85.211023,0,0
|
||||
L,2,1,0,55.377043,85.211023,55.390826,85.73256,0,0
|
||||
L,2,1,0,55.390826,85.73256,55.404983,86.237802,0,0
|
||||
L,2,1,0,55.404983,86.237802,55.419519,86.726388,0,0
|
||||
L,2,1,0,55.419519,86.726388,55.434441,87.197953,0,0
|
||||
L,2,1,0,55.434441,87.197953,55.449757,87.652139,0,0
|
||||
L,2,1,0,55.449757,87.652139,55.465472,88.088586,0,0
|
||||
L,2,1,0,55.465472,88.088586,55.481592,88.506944,0,0
|
||||
L,2,1,0,55.481592,88.506944,55.498126,88.906839,0,0
|
||||
L,2,1,0,55.498126,88.906839,55.515078,89.287919,0,0
|
||||
L,2,1,0,55.515078,89.287919,55.532456,89.649827,0,0
|
||||
L,2,1,0,55.532456,89.649827,55.550267,89.992196,0,0
|
||||
L,2,1,0,55.550267,89.992196,55.568516,90.314676,0,0
|
||||
L,2,1,0,55.568516,90.314676,55.58721,90.616899,0,0
|
||||
L,2,1,0,55.58721,90.616899,55.606356,90.898507,0,0
|
||||
L,2,1,0,55.606356,90.898507,55.62596,91.159143,0,0
|
||||
L,2,1,0,55.62596,91.159143,55.696056,92.176141,0,0
|
||||
L,2,1,0,55.696056,92.176141,55.747383,93.226884,0,0
|
||||
L,2,1,0,55.747383,93.226884,55.77952,94.311395,0,0
|
||||
L,2,1,0,55.77952,94.311395,55.79205,95.429681,0,0
|
||||
L,2,1,0,55.79205,95.429681,55.784554,96.581773,0,0
|
||||
L,2,1,0,55.784554,96.581773,55.756612,97.767671,0,0
|
||||
L,2,1,0,55.756612,97.767671,55.707806,98.987397,0,0
|
||||
L,2,1,0,55.707806,98.987397,55.637717,100.240968,0,0
|
||||
L,2,1,0,55.637717,100.240968,55.545927,101.52839,0,0
|
||||
L,2,1,0,55.545927,101.52839,55.432017,102.849695,0,0
|
||||
L,2,1,0,55.432017,102.849695,55.295567,104.204889,0,0
|
||||
L,2,1,0,55.295567,104.204889,55.13616,105.59398,0,0
|
||||
L,2,1,0,55.13616,105.59398,54.953376,107.017,0,0
|
||||
L,2,1,0,54.953376,107.017,54.746797,108.473947,0,0
|
||||
L,2,1,0,54.746797,108.473947,54.516003,109.964853,0,0
|
||||
L,2,1,0,54.516003,109.964853,54.260577,111.489724,0,0
|
||||
L,2,1,0,54.260577,111.489724,53.980099,113.048578,0,0
|
||||
L,2,1,0,53.980099,113.048578,53.67415,114.641427,0,0
|
||||
L,2,1,0,53.67415,114.641427,53.342312,116.268289,0,0
|
||||
L,2,1,0,53.342312,116.268289,52.984166,117.929185,0,0
|
||||
L,2,1,0,52.984166,117.929185,52.599294,119.624124,0,0
|
||||
L,2,1,0,52.599294,119.624124,52.187275,121.35312,0,0
|
||||
L,2,1,0,52.187275,121.35312,51.747692,123.116189,0,0
|
||||
L,2,1,0,51.747692,123.116189,51.280127,124.913354,0,0
|
||||
L,2,1,0,51.280127,124.913354,50.784159,126.744623,0,0
|
||||
L,2,1,0,50.784159,126.744623,50.259371,128.610017,0,0
|
||||
L,2,1,0,50.259371,128.610017,49.705343,130.509546,0,0
|
||||
L,2,1,0,49.705343,130.509546,49.121657,132.443231,0,0
|
||||
L,2,1,0,49.121657,132.443231,48.507894,134.411081,0,0
|
||||
L,2,1,0,48.507894,134.411081,47.863635,136.413118,0,0
|
||||
L,2,1,0,47.863635,136.413118,47.188462,138.44935,0,0
|
||||
L,2,1,0,47.188462,138.44935,46.481955,140.5198,0,0
|
||||
L,2,1,0,46.481955,140.5198,45.779349,142.591668,0,0
|
||||
L,2,1,0,45.779349,142.591668,45.115438,144.630945,0,0
|
||||
L,2,1,0,45.115438,144.630945,44.489147,146.635782,0,0
|
||||
L,2,1,0,44.489147,146.635782,43.899402,148.604303,0,0
|
||||
L,2,1,0,43.899402,148.604303,43.345127,150.534707,0,0
|
||||
L,2,1,0,43.345127,150.534707,42.825249,152.425119,0,0
|
||||
L,2,1,0,42.825249,152.425119,42.338691,154.273706,0,0
|
||||
L,2,1,0,42.338691,154.273706,41.88438,156.078622,0,0
|
||||
L,2,1,0,41.88438,156.078622,41.461239,157.838022,0,0
|
||||
L,2,1,0,41.461239,157.838022,41.068196,159.550058,0,0
|
||||
L,2,1,0,41.068196,159.550058,40.704173,161.212899,0,0
|
||||
L,2,1,0,40.704173,161.212899,40.368098,162.82467,0,0
|
||||
L,2,1,0,40.368098,162.82467,40.058894,164.383554,0,0
|
||||
L,2,1,0,40.058894,164.383554,39.775486,165.887704,0,0
|
||||
L,2,1,0,39.775486,165.887704,39.516801,167.33526,0,0
|
||||
L,2,1,0,39.516801,167.33526,39.396393,168.03724,0,0
|
||||
L,2,1,0,39.396393,168.03724,39.281763,168.724389,0,0
|
||||
L,2,1,0,39.281763,168.724389,39.172776,169.396463,0,0
|
||||
L,2,1,0,39.172776,169.396463,39.069297,170.053232,0,0
|
||||
L,2,1,0,39.069297,170.053232,38.971194,170.694482,0,0
|
||||
L,2,1,0,38.971194,170.694482,38.87833,171.31997,0,0
|
||||
L,2,1,0,38.87833,171.31997,38.790571,171.929467,0,0
|
||||
L,2,1,0,38.790571,171.929467,38.707783,172.522729,0,0
|
||||
L,2,1,0,38.707783,172.522729,38.629833,173.099557,0,0
|
||||
L,2,1,0,38.629833,173.099557,38.556585,173.659692,0,0
|
||||
L,2,1,0,38.556585,173.659692,38.487905,174.20292,0,0
|
||||
L,2,1,0,38.487905,174.20292,38.42366,174.728998,0,0
|
||||
L,2,1,0,38.42366,174.728998,38.363714,175.237695,0,0
|
||||
L,2,1,0,38.363714,175.237695,38.307931,175.728799,0,0
|
||||
L,2,1,0,38.307931,175.728799,38.256181,176.20205,0,0
|
||||
L,2,1,0,38.256181,176.20205,38.208328,176.657251,0,0
|
||||
L,2,1,0,38.208328,176.657251,38.164236,177.094156,0,0
|
||||
L,2,1,0,38.164236,177.094156,38.123771,177.512521,0,0
|
||||
L,2,1,0,38.123771,177.512521,38.086801,177.912133,0,0
|
||||
L,2,1,0,38.086801,177.912133,38.053188,178.292749,0,0
|
||||
L,2,1,0,38.053188,178.292749,38.022802,178.654153,0,0
|
||||
L,2,1,0,38.022802,178.654153,37.995504,178.996118,0,0
|
||||
L,2,1,0,37.995504,178.996118,37.971162,179.318383,0,0
|
||||
L,2,1,0,37.971162,179.318383,37.949644,179.620736,0,0
|
||||
L,2,1,0,37.949644,179.620736,37.93081,179.902963,0,0
|
||||
L,2,1,0,37.93081,179.902963,37.914531,180.164804,0,0
|
||||
L,2,1,0,37.914531,180.164804,37.900669,180.406045,0,0
|
||||
L,2,1,0,37.900669,180.406045,37.889093,180.626458,0,0
|
||||
L,2,1,0,37.889093,180.626458,37.879665,180.825799,0,0
|
||||
L,2,1,0,37.879665,180.825799,37.872253,181.003839,0,0
|
||||
L,2,1,0,37.872253,181.003839,37.866722,181.160363,0,0
|
||||
L,2,1,0,37.866722,181.160363,37.862937,181.295129,0,0
|
||||
L,2,1,0,37.862937,181.295129,37.860765,181.407907,0,0
|
||||
L,2,1,0,37.860765,181.407907,37.860071,181.498468,0,0
|
||||
L,2,1,0,37.860071,181.498468,37.858957,181.599466,0,0
|
||||
L,2,1,0,37.858957,181.599466,37.855667,181.742852,0,0
|
||||
L,2,1,0,37.855667,181.742852,37.850274,181.927362,0,0
|
||||
L,2,1,0,37.850274,181.927362,37.842859,182.151742,0,0
|
||||
L,2,1,0,37.842859,182.151742,37.833496,182.414727,0,0
|
||||
L,2,1,0,37.833496,182.414727,37.822259,182.715051,0,0
|
||||
L,2,1,0,37.822259,182.715051,37.809226,183.051446,0,0
|
||||
L,2,1,0,37.809226,183.051446,37.794477,183.422647,0,0
|
||||
L,2,1,0,37.794477,183.422647,37.778081,183.827401,0,0
|
||||
L,2,1,0,37.778081,183.827401,37.76012,184.264444,0,0
|
||||
L,2,1,0,37.76012,184.264444,37.740667,184.732507,0,0
|
||||
L,2,1,0,37.740667,184.732507,37.7198,185.230325,0,0
|
||||
L,2,1,0,37.7198,185.230325,37.697595,185.756646,0,0
|
||||
L,2,1,0,37.697595,185.756646,37.674127,186.31019,0,0
|
||||
L,2,1,0,37.674127,186.31019,37.649473,186.889703,0,0
|
||||
L,2,1,0,37.649473,186.889703,37.62371,187.493921,0,0
|
||||
L,2,1,0,37.62371,187.493921,37.596912,188.121591,0,0
|
||||
L,2,1,0,37.596912,188.121591,37.569158,188.771417,0,0
|
||||
L,2,1,0,37.569158,188.771417,37.540523,189.442163,0,0
|
||||
L,2,1,0,37.540523,189.442163,37.511083,190.132562,0,0
|
||||
L,2,1,0,37.511083,190.132562,37.480915,190.841348,0,0
|
||||
L,2,1,0,37.480915,190.841348,37.450092,191.567254,0,0
|
||||
L,2,1,0,37.450092,191.567254,37.418695,192.30903,0,0
|
||||
L,2,1,0,37.418695,192.30903,37.386796,193.065393,0,0
|
||||
L,2,1,0,37.386796,193.065393,37.321807,194.616845,0,0
|
||||
L,2,1,0,37.321807,194.616845,37.255733,196.211541,0,0
|
||||
L,2,1,0,37.255733,196.211541,37.189182,197.839334,0,0
|
||||
L,2,1,0,37.189182,197.839334,37.122766,199.490136,0,0
|
||||
L,2,1,0,37.122766,199.490136,36.992774,202.820337,0,0
|
||||
L,2,1,0,36.992774,202.820337,36.930421,204.479501,0,0
|
||||
L,2,1,0,36.930421,204.479501,36.870639,206.121255,0,0
|
||||
L,2,1,0,36.870639,206.121255,36.814042,207.735467,0,0
|
||||
L,2,1,0,36.814042,207.735467,36.761238,209.312051,0,0
|
||||
L,2,1,0,36.761238,209.312051,36.712835,210.840875,0,0
|
||||
L,2,1,0,36.712835,210.840875,36.690475,211.584222,0,0
|
||||
L,2,1,0,36.690475,211.584222,36.669446,212.311837,0,0
|
||||
L,2,1,0,36.669446,212.311837,36.649822,213.02247,0,0
|
||||
L,2,1,0,36.649822,213.02247,36.631679,213.714853,0,0
|
||||
L,2,1,0,36.631679,213.714853,36.615095,214.387704,0,0
|
||||
L,2,1,0,36.615095,214.387704,36.600145,215.039773,0,0
|
||||
L,2,1,0,36.600145,215.039773,36.586904,215.669809,0,0
|
||||
L,2,1,0,36.586904,215.669809,36.575452,216.276529,0,0
|
||||
L,2,1,0,36.575452,216.276529,36.565862,216.858682,0,0
|
||||
L,2,1,0,36.565862,216.858682,36.55821,217.414987,0,0
|
||||
L,2,1,0,36.55821,217.414987,36.552576,217.944207,0,0
|
||||
L,2,1,0,36.552576,217.944207,36.549032,218.445062,0,0
|
||||
L,2,1,0,36.549032,218.445062,36.547655,218.916284,0,0
|
||||
L,2,1,0,36.547655,218.916284,36.548522,219.356622,0,0
|
||||
L,2,1,0,36.548522,219.356622,36.551711,219.764795,0,0
|
||||
L,2,1,0,36.551711,219.764795,36.557296,220.139566,0,0
|
||||
L,2,1,0,36.557296,220.139566,36.565353,220.479654,0,0
|
||||
L,2,1,0,36.565353,220.479654,36.57596,220.783792,0,0
|
||||
L,2,1,0,36.57596,220.783792,36.601652,221.913995,0,0
|
||||
L,2,1,0,36.601652,221.913995,36.587037,223.014581,0,0
|
||||
L,2,1,0,36.587037,223.014581,36.537448,224.079599,0,0
|
||||
L,2,1,0,36.537448,224.079599,36.458219,225.103067,0,0
|
||||
L,2,1,0,36.458219,225.103067,36.354679,226.079004,0,0
|
||||
L,2,1,0,36.354679,226.079004,36.232166,227.001443,0,0
|
||||
L,2,1,0,36.232166,227.001443,36.165458,227.440713,0,0
|
||||
L,2,1,0,36.165458,227.440713,36.096008,227.864373,0,0
|
||||
L,2,1,0,36.096008,227.864373,36.02448,228.271676,0,0
|
||||
L,2,1,0,36.02448,228.271676,35.951541,228.661859,0,0
|
||||
L,2,1,0,35.951541,228.661859,35.877859,229.034189,0,0
|
||||
L,2,1,0,35.877859,229.034189,35.804099,229.387918,0,0
|
||||
L,2,1,0,35.804099,229.387918,35.730928,229.722284,0,0
|
||||
L,2,1,0,35.730928,229.722284,35.659011,230.036538,0,0
|
||||
L,2,1,0,35.659011,230.036538,35.589019,230.329965,0,0
|
||||
L,2,1,0,35.589019,230.329965,35.521615,230.601785,0,0
|
||||
L,2,1,0,35.521615,230.601785,35.457467,230.851266,0,0
|
||||
L,2,1,0,35.457467,230.851266,35.397241,231.077646,0,0
|
||||
L,2,1,0,35.397241,231.077646,35.341604,231.280206,0,0
|
||||
L,2,1,0,35.341604,231.280206,35.291221,231.458185,0,0
|
||||
L,2,1,0,35.291221,231.458185,35.246763,231.610818,0,0
|
||||
L,2,1,0,35.246763,231.610818,35.20889,231.73739,0,0
|
||||
L,2,1,0,35.20889,231.73739,35.178275,231.837121,0,0
|
||||
L,2,1,0,35.178275,231.837121,35.155582,231.909295,0,0
|
||||
L,2,1,0,35.155582,231.909295,35.141477,231.953134,0,0
|
||||
L,2,1,0,35.141477,231.953134,35.136627,231.96792,0,0
|
||||
L,2,1,0,35.136627,231.96792,18.104511,231.790475,0,0
|
||||
L,2,1,0,18.104511,231.790475,18.116672,231.791467,0,0
|
||||
L,2,1,0,18.116672,231.791467,18.149543,231.790414,0,0
|
||||
L,2,1,0,18.149543,231.790414,18.197715,231.781366,0,0
|
||||
L,2,1,0,18.197715,231.781366,18.255763,231.758279,0,0
|
||||
L,2,1,0,18.255763,231.758279,18.318279,231.715204,0,0
|
||||
L,2,1,0,18.318279,231.715204,18.379844,231.646112,0,0
|
||||
L,2,1,0,18.379844,231.646112,18.435039,231.545022,0,0
|
||||
L,2,1,0,18.435039,231.545022,18.478454,231.405954,0,0
|
||||
L,2,1,0,18.478454,231.405954,18.504672,231.222879,0,0
|
||||
L,2,1,0,18.504672,231.222879,18.508274,230.989831,0,0
|
||||
L,2,1,0,18.508274,230.989831,18.499904,230.852701,0,0
|
||||
L,2,1,0,18.499904,230.852701,18.483848,230.700815,0,0
|
||||
L,2,1,0,18.483848,230.700815,18.459434,230.533441,0,0
|
||||
L,2,1,0,18.459434,230.533441,18.425979,230.349817,0,0
|
||||
L,2,1,0,18.425979,230.349817,18.382808,230.149209,0,0
|
||||
L,2,1,0,18.382808,230.149209,18.329246,229.930856,0,0
|
||||
L,2,1,0,18.329246,229.930856,18.264617,229.694024,0,0
|
||||
L,2,1,0,18.264617,229.694024,18.188239,229.437951,0,0
|
||||
L,2,1,0,18.188239,229.437951,18.099437,229.161889,0,0
|
||||
L,2,1,0,18.099437,229.161889,17.997539,228.865075,0,0
|
||||
L,2,1,0,17.997539,228.865075,17.881862,228.546792,0,0
|
||||
L,2,1,0,17.881862,228.546792,17.751731,228.206262,0,0
|
||||
L,2,1,0,17.751731,228.206262,17.62318,227.855203,0,0
|
||||
L,2,1,0,17.62318,227.855203,17.512103,227.506234,0,0
|
||||
L,2,1,0,17.512103,227.506234,17.417629,227.159936,0,0
|
||||
L,2,1,0,17.417629,227.159936,17.33887,226.816919,0,0
|
||||
L,2,1,0,17.33887,226.816919,17.225006,226.14306,0,0
|
||||
L,2,1,0,17.225006,226.14306,17.163478,225.489419,0,0
|
||||
L,2,1,0,17.163478,225.489419,17.147258,224.860757,0,0
|
||||
L,2,1,0,17.147258,224.860757,17.169319,224.261819,0,0
|
||||
L,2,1,0,17.169319,224.261819,17.222637,223.697351,0,0
|
||||
L,2,1,0,17.222637,223.697351,17.300178,223.172113,0,0
|
||||
L,2,1,0,17.300178,223.172113,17.39492,222.690866,0,0
|
||||
L,2,1,0,17.39492,222.690866,17.499828,222.258371,0,0
|
||||
L,2,1,0,17.499828,222.258371,17.607883,221.879358,0,0
|
||||
L,2,1,0,17.607883,221.879358,17.660888,221.711404,0,0
|
||||
L,2,1,0,17.660888,221.711404,17.712047,221.558603,0,0
|
||||
L,2,1,0,17.712047,221.558603,17.760478,221.421548,0,0
|
||||
L,2,1,0,17.760478,221.421548,17.805301,221.300851,0,0
|
||||
L,2,1,0,17.805301,221.300851,17.845638,221.197076,0,0
|
||||
L,2,1,0,17.845638,221.197076,17.880611,221.110849,0,0
|
||||
L,2,1,0,17.880611,221.110849,17.909339,221.042749,0,0
|
||||
L,2,1,0,17.909339,221.042749,17.93095,220.993371,0,0
|
||||
L,2,1,0,17.93095,220.993371,17.94456,220.963296,0,0
|
||||
L,2,1,0,17.94456,220.963296,17.949291,220.953149,0,0
|
||||
L,2,1,0,17.949291,220.953149,17.94889,220.941873,0,0
|
||||
L,2,1,0,17.94889,220.941873,17.9477,220.908349,0,0
|
||||
L,2,1,0,17.9477,220.908349,17.945735,220.853021,0,0
|
||||
L,2,1,0,17.945735,220.853021,17.943015,220.77633,0,0
|
||||
L,2,1,0,17.943015,220.77633,17.939556,220.678735,0,0
|
||||
L,2,1,0,17.939556,220.678735,17.935375,220.560663,0,0
|
||||
L,2,1,0,17.935375,220.560663,17.93048,220.42257,0,0
|
||||
L,2,1,0,17.93048,220.42257,17.924899,220.264901,0,0
|
||||
L,2,1,0,17.924899,220.264901,17.918643,220.088098,0,0
|
||||
L,2,1,0,17.918643,220.088098,17.911727,219.892617,0,0
|
||||
L,2,1,0,17.911727,219.892617,17.904174,219.678903,0,0
|
||||
L,2,1,0,17.904174,219.678903,17.895992,219.447381,0,0
|
||||
L,2,1,0,17.895992,219.447381,17.887203,219.19851,0,0
|
||||
L,2,1,0,17.887203,219.19851,17.877822,218.932748,0,0
|
||||
L,2,1,0,17.877822,218.932748,17.867862,218.650522,0,0
|
||||
L,2,1,0,17.867862,218.650522,17.857349,218.352289,0,0
|
||||
L,2,1,0,17.857349,218.352289,17.84629,218.038492,0,0
|
||||
L,2,1,0,17.84629,218.038492,17.834705,217.709573,0,0
|
||||
L,2,1,0,17.834705,217.709573,17.810024,217.008172,0,0
|
||||
L,2,1,0,17.810024,217.008172,17.783435,216.251626,0,0
|
||||
L,2,1,0,17.783435,216.251626,17.755069,215.443521,0,0
|
||||
L,2,1,0,17.755069,215.443521,17.725063,214.587426,0,0
|
||||
L,2,1,0,17.725063,214.587426,17.693542,213.686899,0,0
|
||||
L,2,1,0,17.693542,213.686899,17.660644,212.745508,0,0
|
||||
L,2,1,0,17.660644,212.745508,17.626499,211.766809,0,0
|
||||
L,2,1,0,17.626499,211.766809,17.591236,210.754373,0,0
|
||||
L,2,1,0,17.591236,210.754373,17.554988,209.711786,0,0
|
||||
L,2,1,0,17.554988,209.711786,17.51789,208.642587,0,0
|
||||
L,2,1,0,17.51789,208.642587,17.480068,207.550348,0,0
|
||||
L,2,1,0,17.480068,207.550348,17.441657,206.438638,0,0
|
||||
L,2,1,0,17.441657,206.438638,17.402793,205.311013,0,0
|
||||
L,2,1,0,17.402793,205.311013,17.324214,203.022332,0,0
|
||||
L,2,1,0,17.324214,203.022332,17.245387,200.712808,0,0
|
||||
L,2,1,0,17.245387,200.712808,17.167365,198.410974,0,0
|
||||
L,2,1,0,17.167365,198.410974,17.128986,197.271859,0,0
|
||||
L,2,1,0,17.128986,197.271859,17.091205,196.145364,0,0
|
||||
L,2,1,0,17.091205,196.145364,17.054153,195.035043,0,0
|
||||
L,2,1,0,17.054153,195.035043,17.017959,193.944482,0,0
|
||||
L,2,1,0,17.017959,193.944482,16.982467,192.8836,0,0
|
||||
L,2,1,0,16.982467,192.8836,16.94736,191.859063,0,0
|
||||
L,2,1,0,16.94736,191.859063,16.912513,190.8695,0,0
|
||||
L,2,1,0,16.912513,190.8695,16.877811,189.913553,0,0
|
||||
L,2,1,0,16.877811,189.913553,16.843143,188.989847,0,0
|
||||
L,2,1,0,16.843143,188.989847,16.808391,188.097024,0,0
|
||||
L,2,1,0,16.808391,188.097024,16.773433,187.233712,0,0
|
||||
L,2,1,0,16.773433,187.233712,16.738162,186.398553,0,0
|
||||
L,2,1,0,16.738162,186.398553,16.702453,185.590188,0,0
|
||||
L,2,1,0,16.702453,185.590188,16.666198,184.80726,0,0
|
||||
L,2,1,0,16.666198,184.80726,16.629272,184.048379,0,0
|
||||
L,2,1,0,16.629272,184.048379,16.591564,183.312188,0,0
|
||||
L,2,1,0,16.591564,183.312188,16.552959,182.597345,0,0
|
||||
L,2,1,0,16.552959,182.597345,16.513336,181.902459,0,0
|
||||
L,2,1,0,16.513336,181.902459,16.472583,181.226175,0,0
|
||||
L,2,1,0,16.472583,181.226175,16.430583,180.567132,0,0
|
||||
L,2,1,0,16.430583,180.567132,16.387218,179.923974,0,0
|
||||
L,2,1,0,16.387218,179.923974,16.342369,179.295312,0,0
|
||||
L,2,1,0,16.342369,179.295312,16.247772,178.076089,0,0
|
||||
L,2,1,0,16.247772,178.076089,16.145854,176.898523,0,0
|
||||
L,2,1,0,16.145854,176.898523,16.03569,175.751718,0,0
|
||||
L,2,1,0,16.03569,175.751718,15.916351,174.624765,0,0
|
||||
L,2,1,0,15.916351,174.624765,15.786899,173.506738,0,0
|
||||
L,2,1,0,15.786899,173.506738,15.646411,172.386712,0,0
|
||||
L,2,1,0,15.646411,172.386712,15.493957,171.253808,0,0
|
||||
L,2,1,0,15.493957,171.253808,15.451805,170.957055,0,0
|
||||
L,2,1,0,15.451805,170.957055,15.404785,170.638742,0,0
|
||||
L,2,1,0,15.404785,170.638742,15.352985,170.299539,0,0
|
||||
L,2,1,0,15.352985,170.299539,15.296501,169.940072,0,0
|
||||
L,2,1,0,15.296501,169.940072,15.235427,169.561044,0,0
|
||||
L,2,1,0,15.235427,169.561044,15.169849,169.16308,0,0
|
||||
L,2,1,0,15.169849,169.16308,15.099864,168.746866,0,0
|
||||
L,2,1,0,15.099864,168.746866,15.025562,168.313043,0,0
|
||||
L,2,1,0,15.025562,168.313043,14.947036,167.862283,0,0
|
||||
L,2,1,0,14.947036,167.862283,14.864376,167.395242,0,0
|
||||
L,2,1,0,14.864376,167.395242,14.777679,166.912561,0,0
|
||||
L,2,1,0,14.777679,166.912561,14.68703,166.414941,0,0
|
||||
L,2,1,0,14.68703,166.414941,14.494258,165.377435,0,0
|
||||
L,2,1,0,14.494258,165.377435,14.286796,164.287988,0,0
|
||||
L,2,1,0,14.286796,164.287988,14.065383,163.151895,0,0
|
||||
L,2,1,0,14.065383,163.151895,13.830753,161.97442,0,0
|
||||
L,2,1,0,13.830753,161.97442,13.58364,160.760858,0,0
|
||||
L,2,1,0,13.58364,160.760858,13.324787,159.516473,0,0
|
||||
L,2,1,0,13.324787,159.516473,13.054927,158.246545,0,0
|
||||
L,2,1,0,13.054927,158.246545,12.774795,156.956369,0,0
|
||||
L,2,1,0,12.774795,156.956369,12.186668,154.336343,0,0
|
||||
L,2,1,0,12.186668,154.336343,11.566291,151.698617,0,0
|
||||
L,2,1,0,11.566291,151.698617,11.245853,150.386331,0,0
|
||||
L,2,1,0,11.245853,150.386331,10.919559,149.085443,0,0
|
||||
L,2,1,0,10.919559,149.085443,10.588153,147.801248,0,0
|
||||
L,2,1,0,10.588153,147.801248,10.252365,146.539026,0,0
|
||||
L,2,1,0,10.252365,146.539026,9.912933,145.30404,0,0
|
||||
L,2,1,0,9.912933,145.30404,9.570598,144.101602,0,0
|
||||
L,2,1,0,9.570598,144.101602,9.226089,142.93696,0,0
|
||||
L,2,1,0,9.226089,142.93696,8.880149,141.815408,0,0
|
||||
L,2,1,0,8.880149,141.815408,8.533508,140.742212,0,0
|
||||
L,2,1,0,8.533508,140.742212,8.186908,139.722665,0,0
|
||||
L,2,1,0,8.186908,139.722665,8.013851,139.234659,0,0
|
||||
L,2,1,0,8.013851,139.234659,7.841083,138.762033,0,0
|
||||
L,2,1,0,7.841083,138.762033,7.668689,138.305475,0,0
|
||||
L,2,1,0,7.668689,138.305475,7.496768,137.865609,0,0
|
||||
L,2,1,0,7.496768,137.865609,7.325408,137.443116,0,0
|
||||
L,2,1,0,7.325408,137.443116,7.154701,137.038659,0,0
|
||||
L,2,1,0,7.154701,137.038659,6.984741,136.652887,0,0
|
||||
L,2,1,0,6.984741,136.652887,6.81562,136.28647,0,0
|
||||
L,2,1,0,6.81562,136.28647,6.647319,135.917619,0,0
|
||||
L,2,1,0,6.647319,135.917619,6.479804,135.524751,0,0
|
||||
L,2,1,0,6.479804,135.524751,6.313129,135.108819,0,0
|
||||
L,2,1,0,6.313129,135.108819,6.147357,134.670785,0,0
|
||||
L,2,1,0,6.147357,134.670785,5.982551,134.211595,0,0
|
||||
L,2,1,0,5.982551,134.211595,5.818763,133.732209,0,0
|
||||
L,2,1,0,5.818763,133.732209,5.656059,133.233583,0,0
|
||||
L,2,1,0,5.656059,133.233583,5.494495,132.716661,0,0
|
||||
L,2,1,0,5.494495,132.716661,5.334136,132.182405,0,0
|
||||
L,2,1,0,5.334136,132.182405,5.175037,131.631776,0,0
|
||||
L,2,1,0,5.175037,131.631776,5.017257,131.065713,0,0
|
||||
L,2,1,0,5.017257,131.065713,4.860858,130.485177,0,0
|
||||
L,2,1,0,4.860858,130.485177,4.552444,129.284517,0,0
|
||||
L,2,1,0,4.552444,129.284517,4.250266,128.037423,0,0
|
||||
L,2,1,0,4.250266,128.037423,3.954807,126.751527,0,0
|
||||
L,2,1,0,3.954807,126.751527,3.666545,125.434472,0,0
|
||||
L,2,1,0,3.666545,125.434472,3.385959,124.093881,0,0
|
||||
L,2,1,0,3.385959,124.093881,3.113521,122.737405,0,0
|
||||
L,2,1,0,3.113521,122.737405,2.59502,120.00731,0,0
|
||||
L,2,1,0,2.59502,120.00731,2.349906,118.648958,0,0
|
||||
L,2,1,0,2.349906,118.648958,2.114856,117.305261,0,0
|
||||
L,2,1,0,2.114856,117.305261,1.890354,115.983842,0,0
|
||||
L,2,1,0,1.890354,115.983842,1.676864,114.692346,0,0
|
||||
L,2,1,0,1.676864,114.692346,1.474876,113.438401,0,0
|
||||
L,2,1,0,1.474876,113.438401,1.284866,112.229638,0,0
|
||||
L,2,1,0,1.284866,112.229638,1.194499,111.644594,0,0
|
||||
L,2,1,0,1.194499,111.644594,1.107307,111.073709,0,0
|
||||
L,2,1,0,1.107307,111.073709,1.023345,110.517938,0,0
|
||||
L,2,1,0,1.023345,110.517938,0.94268,109.978235,0,0
|
||||
L,2,1,0,0.94268,109.978235,0.865367,109.455552,0,0
|
||||
L,2,1,0,0.865367,109.455552,0.791465,108.950853,0,0
|
||||
L,2,1,0,0.791465,108.950853,0.721034,108.465081,0,0
|
||||
L,2,1,0,0.721034,108.465081,0.654136,107.9992,0,0
|
||||
L,2,1,0,0.654136,107.9992,0.590831,107.554162,0,0
|
||||
L,2,1,0,0.590831,107.554162,0.531173,107.130914,0,0
|
||||
L,2,1,0,0.531173,107.130914,0.475231,106.730417,0,0
|
||||
L,2,1,0,0.475231,106.730417,0.423057,106.353624,0,0
|
||||
L,2,1,0,0.423057,106.353624,0.374713,106.001497,0,0
|
||||
L,2,1,0,0.374713,106.001497,0.330261,105.674974,0,0
|
||||
L,2,1,0,0.330261,105.674974,0.289756,105.375024,0,0
|
||||
L,2,1,0,0.289756,105.375024,0.253265,105.102594,0,0
|
||||
L,2,1,0,0.253265,105.102594,0.22084,104.858636,0,0
|
||||
L,2,1,0,0.22084,104.858636,0.192546,104.644113,0,0
|
||||
L,2,1,0,0.192546,104.644113,0.168441,104.459977,0,0
|
||||
L,2,1,0,0.168441,104.459977,0.148586,104.307176,0,0
|
||||
L,2,1,0,0.148586,104.307176,0.133037,104.18667,0,0
|
||||
L,2,1,0,0.133037,104.18667,0.121856,104.09942,0,0
|
||||
L,2,1,0,0.121856,104.09942,0.115104,104.046365,0,0
|
||||
L,2,1,0,0.115104,104.046365,0.112842,104.028466,0,0
|
||||
L,2,1,0,0.112842,104.028466,0.112823,104.014108,0,0
|
||||
L,2,1,0,0.112823,104.014108,0.112762,103.971307,0,0
|
||||
L,2,1,0,0.112762,103.971307,0.112659,103.900514,0,0
|
||||
L,2,1,0,0.112659,103.900514,0.112518,103.802156,0,0
|
||||
L,2,1,0,0.112518,103.802156,0.112338,103.676652,0,0
|
||||
L,2,1,0,0.112338,103.676652,0.112121,103.524453,0,0
|
||||
L,2,1,0,0.112121,103.524453,0.111865,103.345987,0,0
|
||||
L,2,1,0,0.111865,103.345987,0.111576,103.141679,0,0
|
||||
L,2,1,0,0.111576,103.141679,0.111247,102.911966,0,0
|
||||
L,2,1,0,0.111247,102.911966,0.110881,102.657289,0,0
|
||||
L,2,1,0,0.110881,102.657289,0.110485,102.378068,0,0
|
||||
L,2,1,0,0.110485,102.378068,0.11005,102.074746,0,0
|
||||
L,2,1,0,0.11005,102.074746,0.109584,101.747751,0,0
|
||||
L,2,1,0,0.109584,101.747751,0.109085,101.397523,0,0
|
||||
L,2,1,0,0.109085,101.397523,0.108554,101.024484,0,0
|
||||
L,2,1,0,0.108554,101.024484,0.10799,100.629068,0,0
|
||||
L,2,1,0,0.10799,100.629068,0.107398,100.211717,0,0
|
||||
L,2,1,0,0.107398,100.211717,0.106773,99.772851,0,0
|
||||
L,2,1,0,0.106773,99.772851,0.106117,99.312913,0,0
|
||||
L,2,1,0,0.106117,99.312913,0.105434,98.832338,0,0
|
||||
L,2,1,0,0.105434,98.832338,0.104724,98.331552,0,0
|
||||
L,2,1,0,0.104724,98.331552,0.103984,97.810983,0,0
|
||||
L,2,1,0,0.103984,97.810983,0.103218,97.271081,0,0
|
||||
L,2,1,0,0.103218,97.271081,0.102424,96.712266,0,0
|
||||
L,2,1,0,0.102424,96.712266,0.101604,96.134965,0,0
|
||||
L,2,1,0,0.101604,96.134965,0.100761,95.539628,0,0
|
||||
L,2,1,0,0.100761,95.539628,0.099891,94.926675,0,0
|
||||
L,2,1,0,0.099891,94.926675,0.098998,94.296548,0,0
|
||||
L,2,1,0,0.098998,94.296548,0.098083,93.649675,0,0
|
||||
L,2,1,0,0.098083,93.649675,0.097145,92.986482,0,0
|
||||
L,2,1,0,0.097145,92.986482,0.096183,92.307412,0,0
|
||||
L,2,1,0,0.096183,92.307412,0.095203,91.612893,0,0
|
||||
L,2,1,0,0.095203,91.612893,0.0942,90.90336,0,0
|
||||
L,2,1,0,0.0942,90.90336,0.093177,90.179246,0,0
|
||||
L,2,1,0,0.093177,90.179246,0.091075,88.689012,0,0
|
||||
L,2,1,0,0.091075,88.689012,0.088901,87.145639,0,0
|
||||
L,2,1,0,0.088901,87.145639,0.086658,85.552591,0,0
|
||||
L,2,1,0,0.086658,85.552591,0.084354,83.913347,0,0
|
||||
L,2,1,0,0.084354,83.913347,0.081993,82.231355,0,0
|
||||
L,2,1,0,0.081993,82.231355,0.079582,80.51008,0,0
|
||||
L,2,1,0,0.079582,80.51008,0.077121,78.752984,0,0
|
||||
L,2,1,0,0.077121,78.752984,0.074623,76.96354,0,0
|
||||
L,2,1,0,0.074623,76.96354,0.072086,75.145204,0,0
|
||||
L,2,1,0,0.072086,75.145204,0.069518,73.301439,0,0
|
||||
L,2,1,0,0.069518,73.301439,0.066924,71.435708,0,0
|
||||
L,2,1,0,0.066924,71.435708,0.064311,69.551477,0,0
|
||||
L,2,1,0,0.064311,69.551477,0.061679,67.6522,0,0
|
||||
L,2,1,0,0.061679,67.6522,0.056396,63.822385,0,0
|
||||
L,2,1,0,0.056396,63.822385,0.051113,59.97397,0,0
|
||||
L,2,1,0,0.051113,59.97397,0.045867,56.134649,0,0
|
||||
L,2,1,0,0.045867,56.134649,0.043273,54.22706,0,0
|
||||
L,2,1,0,0.043273,54.22706,0.040706,52.332135,0,0
|
||||
L,2,1,0,0.040706,52.332135,0.038169,50.453336,0,0
|
||||
L,2,1,0,0.038169,50.453336,0.035671,48.594129,0,0
|
||||
L,2,1,0,0.035671,48.594129,0.03321,46.757974,0,0
|
||||
L,2,1,0,0.03321,46.757974,0.030799,44.948335,0,0
|
||||
L,2,1,0,0.030799,44.948335,0.028438,43.168672,0,0
|
||||
L,2,1,0,0.028438,43.168672,0.026134,41.422452,0,0
|
||||
L,2,1,0,0.026134,41.422452,0.023891,39.713138,0,0
|
||||
L,2,1,0,0.023891,39.713138,0.021717,38.044193,0,0
|
||||
L,2,1,0,0.021717,38.044193,0.019615,36.419076,0,0
|
||||
L,2,1,0,0.019615,36.419076,0.017589,34.841253,0,0
|
||||
L,2,1,0,0.017589,34.841253,0.015647,33.314187,0,0
|
||||
L,2,1,0,0.015647,33.314187,0.013793,31.84134,0,0
|
||||
L,2,1,0,0.013793,31.84134,0.012901,31.126333,0,0
|
||||
L,2,1,0,0.012901,31.126333,0.012031,30.426177,0,0
|
||||
L,2,1,0,0.012031,30.426177,0.011188,29.741309,0,0
|
||||
L,2,1,0,0.011188,29.741309,0.010368,29.072158,0,0
|
||||
L,2,1,0,0.010368,29.072158,0.009574,28.419162,0,0
|
||||
L,2,1,0,0.009574,28.419162,0.008808,27.782748,0,0
|
||||
L,2,1,0,0.008808,27.782748,0.008068,27.163354,0,0
|
||||
L,2,1,0,0.008068,27.163354,0.007358,26.56141,0,0
|
||||
L,2,1,0,0.007358,26.56141,0.006675,25.977351,0,0
|
||||
L,2,1,0,0.006675,25.977351,0.006019,25.411606,0,0
|
||||
L,2,1,0,0.006019,25.411606,0.005393,24.864612,0,0
|
||||
L,2,1,0,0.005393,24.864612,0.004802,24.3368,0,0
|
||||
L,2,1,0,0.004802,24.3368,0.004238,23.828603,0,0
|
||||
L,2,1,0,0.004238,23.828603,0.003707,23.340453,0,0
|
||||
L,2,1,0,0.003707,23.340453,0.003208,22.872785,0,0
|
||||
L,2,1,0,0.003208,22.872785,0.002742,22.42603,0,0
|
||||
L,2,1,0,0.002742,22.42603,0.002307,22.000622,0,0
|
||||
L,2,1,0,0.002307,22.000622,0.001911,21.596994,0,0
|
||||
L,2,1,0,0.001911,21.596994,0.001544,21.215577,0,0
|
||||
L,2,1,0,0.001544,21.215577,0.001216,20.856806,0,0
|
||||
L,2,1,0,0.001216,20.856806,0.000926,20.521113,0,0
|
||||
L,2,1,0,0.000926,20.521113,0.000671,20.20893,0,0
|
||||
L,2,1,0,0.000671,20.20893,0.000453,19.920692,0,0
|
||||
L,2,1,0,0.000453,19.920692,0.000274,19.65683,0,0
|
||||
L,2,1,0,0.000274,19.65683,0.000133,19.417777,0,0
|
||||
L,2,1,0,0.000133,19.417777,0.00003,19.203968,0,0
|
||||
L,2,1,0,0.00003,19.203968,-0.000031,19.015833,0,0
|
||||
L,2,1,0,-0.000031,19.015833,-0.00005,18.853807,0,0
|
||||
L,2,1,0,-0.00005,18.853807,0.002357,18.266649,0,0
|
||||
L,2,1,0,0.002357,18.266649,0.009605,17.695676,0,0
|
||||
L,2,1,0,0.009605,17.695676,0.021739,17.140702,0,0
|
||||
L,2,1,0,0.021739,17.140702,0.03881,16.601541,0,0
|
||||
L,2,1,0,0.03881,16.601541,0.060863,16.078007,0,0
|
||||
L,2,1,0,0.060863,16.078007,0.087943,15.569914,0,0
|
||||
L,2,1,0,0.087943,15.569914,0.120101,15.077076,0,0
|
||||
L,2,1,0,0.120101,15.077076,0.157379,14.599306,0,0
|
||||
L,2,1,0,0.157379,14.599306,0.247482,13.68823,0,0
|
||||
L,2,1,0,0.247482,13.68823,0.358627,12.835197,0,0
|
||||
L,2,1,0,0.358627,12.835197,0.491187,12.038718,0,0
|
||||
L,2,1,0,0.491187,12.038718,0.645534,11.297306,0,0
|
||||
L,2,1,0,0.645534,11.297306,0.822044,10.609472,0,0
|
||||
L,2,1,0,0.822044,10.609472,1.021079,9.973727,0,0
|
||||
L,2,1,0,1.021079,9.973727,1.243019,9.388584,0,0
|
||||
L,2,1,0,1.243019,9.388584,1.488235,8.852555,0,0
|
||||
L,2,1,0,1.488235,8.852555,1.757099,8.36415,0,0
|
||||
L,2,1,0,1.757099,8.36415,2.049983,7.921882,0,0
|
||||
L,2,1,0,2.049983,7.921882,2.367256,7.524262,0,0
|
||||
L,2,1,0,2.367256,7.524262,2.709293,7.169803,0,0
|
||||
L,2,1,0,2.709293,7.169803,2.898128,6.999968,0,0
|
||||
L,2,1,0,2.898128,6.999968,3.109374,6.824148,0,0
|
||||
L,2,1,0,3.109374,6.824148,3.341972,6.642808,0,0
|
||||
L,2,1,0,3.341972,6.642808,3.594848,6.456409,0,0
|
||||
L,2,1,0,3.594848,6.456409,3.866935,6.265419,0,0
|
||||
L,2,1,0,3.866935,6.265419,4.157173,6.070299,0,0
|
||||
L,2,1,0,4.157173,6.070299,4.464485,5.871514,0,0
|
||||
L,2,1,0,4.464485,5.871514,4.787815,5.669528,0,0
|
||||
L,2,1,0,4.787815,5.669528,5.478233,5.25781,0,0
|
||||
L,2,1,0,5.478233,5.25781,6.219898,4.838858,0,0
|
||||
L,2,1,0,6.219898,4.838858,7.004264,4.416384,0,0
|
||||
L,2,1,0,7.004264,4.416384,7.822803,3.994099,0,0
|
||||
L,2,1,0,7.822803,3.994099,8.666973,3.575717,0,0
|
||||
L,2,1,0,8.666973,3.575717,9.528236,3.16495,0,0
|
||||
L,2,1,0,9.528236,3.16495,10.398055,2.765511,0,0
|
||||
L,2,1,0,10.398055,2.765511,11.267898,2.381111,0,0
|
||||
L,2,1,0,11.267898,2.381111,12.129222,2.015464,0,0
|
||||
L,2,1,0,12.129222,2.015464,12.973495,1.672282,0,0
|
||||
L,2,1,0,12.973495,1.672282,13.792179,1.355277,0,0
|
||||
L,2,1,0,13.792179,1.355277,14.576732,1.068162,0,0
|
||||
L,2,1,0,14.576732,1.068162,14.975452,0.936918,0,0
|
||||
L,2,1,0,14.975452,0.936918,15.40657,0.814077,0,0
|
||||
L,2,1,0,15.40657,0.814077,15.869495,0.699683,0,0
|
||||
L,2,1,0,15.869495,0.699683,16.363635,0.593777,0,0
|
||||
L,2,1,0,16.363635,0.593777,16.8884,0.4964,0,0
|
||||
L,2,1,0,16.8884,0.4964,17.443195,0.407595,0,0
|
||||
L,2,1,0,17.443195,0.407595,18.027431,0.327401,0,0
|
||||
L,2,1,0,18.027431,0.327401,18.640514,0.255863,0,0
|
||||
L,2,1,0,18.640514,0.255863,19.281856,0.193019,0,0
|
||||
L,2,1,0,19.281856,0.193019,19.950859,0.138913,0,0
|
||||
L,2,1,0,19.950859,0.138913,20.646938,0.093585,0,0
|
||||
L,2,1,0,20.646938,0.093585,21.369499,0.057078,0,0
|
||||
L,2,1,0,21.369499,0.057078,22.11795,0.029433,0,0
|
||||
L,2,1,0,22.11795,0.029433,22.891696,0.01069,0,0
|
||||
L,2,1,0,22.891696,0.01069,23.690153,0.000892,0,0
|
||||
L,2,1,0,23.690153,0.000892,24.512721,0.00008,0,0
|
||||
L,2,1,0,24.512721,0.00008,25.358814,0.008297,0,0
|
||||
L,2,1,0,25.358814,0.008297,26.227838,0.025584,0,0
|
||||
L,2,1,0,26.227838,0.025584,27.119201,0.05198,0,0
|
||||
L,2,1,0,27.119201,0.05198,28.032314,0.087529,0,0
|
||||
L,2,1,0,28.032314,0.087529,28.966581,0.132273,0,0
|
||||
L,2,1,0,28.966581,0.132273,29.921415,0.186252,0,0
|
||||
L,2,1,0,29.921415,0.186252,30.896219,0.249508,0,0
|
||||
L,2,1,0,30.896219,0.249508,31.890407,0.322083,0,0
|
||||
L,2,1,0,31.890407,0.322083,32.903383,0.404018,0,0
|
||||
L,2,1,0,32.903383,0.404018,33.934558,0.495354,0,0
|
||||
L,2,1,0,33.934558,0.495354,34.983339,0.596134,0,0
|
||||
L,2,1,0,34.983339,0.596134,36.049133,0.706398,0,0
|
||||
L,2,1,0,36.049133,0.706398,37.131351,0.826189,0,0
|
||||
L,2,1,0,37.131351,0.826189,38.2294,0.955548,0,0
|
||||
L,2,1,0,38.2294,0.955548,39.342688,1.094516,0,0
|
||||
L,2,1,0,39.342688,1.094516,40.470624,1.243135,0,0
|
||||
L,2,1,0,40.470624,1.243135,41.576414,1.412411,0,0
|
||||
L,2,1,0,41.576414,1.412411,42.624643,1.611774,0,0
|
||||
L,2,1,0,42.624643,1.611774,43.616782,1.838897,0,0
|
||||
L,2,1,0,43.616782,1.838897,44.554304,2.091455,0,0
|
||||
L,2,1,0,44.554304,2.091455,45.438681,2.367123,0,0
|
||||
L,2,1,0,45.438681,2.367123,46.271387,2.663575,0,0
|
||||
L,2,1,0,46.271387,2.663575,47.053895,2.978487,0,0
|
||||
L,2,1,0,47.053895,2.978487,47.787678,3.309531,0,0
|
||||
L,2,1,0,47.787678,3.309531,48.474207,3.654383,0,0
|
||||
L,2,1,0,48.474207,3.654383,49.114956,4.010719,0,0
|
||||
L,2,1,0,49.114956,4.010719,49.711398,4.37621,0,0
|
||||
L,2,1,0,49.711398,4.37621,50.265005,4.748534,0,0
|
||||
L,2,1,0,50.265005,4.748534,50.777249,5.125364,0,0
|
||||
L,2,1,0,50.777249,5.125364,51.249606,5.504374,0,0
|
||||
L,2,1,0,51.249606,5.504374,51.683546,5.88324,0,0
|
||||
L,2,1,0,51.683546,5.88324,52.080542,6.259636,0,0
|
||||
L,2,1,0,52.080542,6.259636,52.442068,6.631236,0,0
|
||||
L,2,1,0,52.442068,6.631236,52.769596,6.995715,0,0
|
||||
L,2,1,0,52.769596,6.995715,53.064598,7.350748,0,0
|
||||
L,2,1,0,53.064598,7.350748,53.328548,7.694009,0,0
|
||||
L,2,1,0,53.328548,7.694009,53.562919,8.023172,0,0
|
||||
L,2,1,0,53.562919,8.023172,53.769183,8.335913,0,0
|
||||
L,2,1,0,53.769183,8.335913,53.948813,8.629906,0,0
|
||||
L,2,1,0,53.948813,8.629906,54.103281,8.902825,0,0
|
||||
L,2,1,0,54.103281,8.902825,54.234061,9.152344,0,0
|
||||
L,2,1,0,54.234061,9.152344,54.342626,9.376139,0,0
|
||||
L,2,1,0,54.342626,9.376139,54.430447,9.571885,0,0
|
||||
L,2,1,0,54.430447,9.571885,54.498999,9.737255,0,0
|
||||
L,2,1,0,54.498999,9.737255,54.549753,9.869923,0,0
|
||||
L,2,1,0,54.549753,9.869923,54.584182,9.967566,0,0
|
||||
L,2,1,0,54.584182,9.967566,54.60376,10.027857,0,0
|
||||
L,2,1,0,54.60376,10.027857,54.609958,10.048471,0,0
|
||||
L,2,1,0,54.609958,10.048471,54.623664,10.09647,0,0
|
||||
END
|
||||
SUB,DIEMARKS_1
|
||||
L,2,1,0,286.307512,218.6,291.307512,218.6,0,0
|
||||
L,2,1,0,288.454734,216.1,288.454734,221.1,0,0
|
||||
L,2,1,0,7.492488,218.6,12.492488,218.6,0,0
|
||||
L,2,1,0,286.131123,24.045633,286.131123,29.045633,0,0
|
||||
L,2,1,0,12.3161,24.045633,12.3161,29.045633,0,0
|
||||
L,2,1,0,12.3161,408.154367,12.3161,413.154367,0,0
|
||||
L,2,1,0,286.131123,408.154367,286.131123,413.154367,0,0
|
||||
L,2,1,0,286.307512,408.154367,291.307512,408.154367,0,0
|
||||
L,2,1,0,286.307512,29.045633,291.307512,29.045633,0,0
|
||||
L,2,1,0,7.492488,29.045633,12.492488,29.045633,0,0
|
||||
L,2,1,0,7.492488,408.154367,12.492488,408.154367,0,0
|
||||
L,2,1,0,9.639711,216.1,9.639711,221.1,0,0
|
||||
END
|
||||
SUB,CROPMARKS_2
|
||||
END
|
||||
SUB,FOLDMARKS_3
|
||||
END
|
||||
SUB,SHEET_4
|
||||
END
|
||||
$EOF
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 62 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user