CADEditorX:VectorGraphics Processing Control | Viewing,Editing, Converting, Printing and Measuring DWG, DXF, SVG… andother CAD files
CADEditorX isan ActiveX component for adding CAD features to the Web page or tothe application under development in any development environmentsupporting ActiveX and COM technology, for example C#, Visual C++,Delphi, VB, JavaScript etc. It enables viewing, editing, converting,printing and measuring DWG, DXF, SVG, HPGL, PDF, STEP, IGES, STL andother CAD files.An easy-to-use API and numerous examples allow fast integration ofCADEditorX to the final application.
CADEditorXscope of use:
database systems
monitoring and remote control programs
CNC machines
CAD applications development
data export to CAD formats
document management systems and highly specialized products
MainFeatures
Viewing files:
- vector formats: DWG, DXF, PDF, HPGL, SVG, CGM etc.
- 3D models: STEP, IGES, STL, OBJ etc.
- raster formats: BMP, PNG, JPG, ICO, TIFF etc.
Editing 2D files: work with entity properties, layers, blocks, dimension and text styles, support of SHX fonts, support of XRefs etc.
Measuring in 2D and 3D modes as well as saving measurement results to TXT
Saving to DWG, DXF, PDF, SVG, CGM, PLT, STL, OBJ etc.
Batch conversion to DWG, DXF, PDF, SVG, PLT, CGM, BPM and other formats
Adding markups and commentaries to the file in the Redline mode
The Compare files tool for finding differences between two file revisions.
Multipage printing of large format files.
Sending a group of files to different output devices with Batch print
Easy-to-use API containing a single function and a single event
DemoExamples
TheSDK includes demo examples presented as executable files and thesource code in popular programming languages: C#, Delphi, VB.NET,HTML, VC++, VBA etc.
|
|
|
C# Demo |
VBA Demo |
Delphi Demo |
Tolearn instructions, commands and system variables it is especiallyconvenient to use the XMLIDE application.In this application you will find a lot of XML instruction examplesand what is more you can immediately see the result of theirexecution.
The Howto sectionof the CADEditorX help system contains ready solutions with the codeexamples showing how to handle the most important operations.
Themost important functions that can be implemented with the help of CADXML API are described in this section.
Thereare two ways allowing creating and processing XML format.
XMLas simple string
XMLcan be created as a simple string with the help of any programminglanguage This is the most simple way that can be recommended forinitial investigation and for many projects where there is no need tohandle complicated XML files.
Asimple way to work with CAD XML API:
1.Look at the example XML files and Howto helpsection.
2.Create XML strings on the basis of demo examples to implement therequired features.
3.You can either load XML files from HDD or add all these XML texts asstring constants directly to the application source code.
Werecommend to use the Format() function(which is present in all popular programming languages) to insertdata to XML strings.
C# example for calling line:
string command = @"
"; string result = CADEditorX.ProcessXML(command); |
XMLobtained with the help of the OnProcess callbackfunction can be also parsed using the common functions used to parsestrings in your programming language.
C# example for the OnProcess callback:
string result = CADEditorX.ProcessXML(""); |
XMLParser
Thereare many XML parsers that are suggested for all popular developmentlanguages. Microsoft Windows has the DOM technology for handling XML,which is very powerful but not very fast. There are a lot of simpleand fast XML parsers that are suggested as opensource for manyprogramming languages.
Itis recommended to use XML parser to implement complicated tasks withthe help of CAD XML API.
Howto reach functional which is implemented in CADEditorX / ABViewer viaXML
Theseinstruments work via the command line that can be used directly inthe corresponding panel of the user interface.
The command instructionis used to call the functional via the CADXML Interface.
Supportedcommands are described in the User Reference.
Exampleshowing how to start drawing a line:
|
Youcan find examples of the most important command calls inthe Commands sectionof the XML editor:
© Copyright 2000-2023 COGITO SOFTWARE CO.,LTD. All rights reserved