<< Click to Display Table of Contents >> CAD XML API Reference |
Parameter | Type | Description |
---|---|---|
DrawingData | List | Drawing data structure |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
Parameter | Type | Description |
---|---|---|
Created | ListItem | Created |
Updated | ListItem | Updated |
Parameter | Type | Description |
---|---|---|
Handle | EntHandle | Handle can be given directly via $ or indirectly via @ attributes, it also accepts a list of handles divided by the ";" sign. For example: Handle="$24", Handle="@1", Handle="@;$27;$28" |
Parameter | Type | Description |
---|---|---|
Handle | EntHandle | Handle can be given directly via $ or indirectly via @ attributes, it also accepts a list of handles divided by the ";" sign. For example: Handle="$24", Handle="@1", Handle="@;$27;$28" |
1 2 3 4 5 6 7 8 9 10 11 | <? xml version = "1.0" encoding = "utf-8" ?> < cadsofttools version = "2" > <!-- Description: Instruction ADD adds entities and Drawing Structure Data to the current drawing. There are many examples of adding particular classes with ADD instruction which are described in Classes examples. --> < add > <!-- The following line adds a text. --> < cstText Text = "CADSoftTools" Point = "0.5, 0.5" Height = "1" /> <!-- The following line adds a line. --> < cstLine point = "0,0,0" Point1 = "10,0,0" /> </ add > < FitToSize /> </ cadsofttools > |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | <? xml version = "1.0" encoding = "utf-8" ?> < cadsofttools version = "2" > <!-- Description: The example shows how to add a complicated Drawing Structure Data to the current drawing. --> < add > < cstSectionTables Name = "TABLES" > < SubEntities > < cstTable Name = "LAYER" > < SubEntities > < cstLayer name = "Layer2" Color = "0;3;" /> < cstLayer name = "Invisible" Visible = "False" /> < cstLayer name = "Locked" Locked = "True" /> </ SubEntities > </ cstTable > </ SubEntities > </ cstSectionTables > < cstSectionBlocks Name = "BLOCKS" > < SubEntities > < cstBlock name = "block1" > < SubEntities > < cstLine point = "0,0,0" point1 = "50,0,0" /> < cstText point = "0,3,0" text = "This is a block" height = "3" /> </ SubEntities > </ cstBlock > </ SubEntities > </ cstSectionBlocks > <!-- Add entities Model --> < cstInsert blockname = "block1" point = "0,50,0" layer = "Layer2" /> < cstLine point = "10,10,0" point1 = "20,30,0" Color = "0;1;" HandleSave = "@1" /> < cstCircle point = "10,10,0" radius = "20" HandleSave = "@2" /> < cstText point = "0,-20,0" text = "Enghlish Русский Franzosisch Francais" height = "3" /> <!-- Add to an existing block --> < cstSectionBlocks Name = "BLOCKS" > < SubEntities > < cstBlock name = "block1" > < SubEntities > < cstLWPolyline > < SubEntities > < cstVertex point = "10,10,0" /> < cstVertex point = "10,40,0" /> < cstVertex point = "40,40,0" /> </ SubEntities > </ cstLWPolyline > </ SubEntities > </ cstBlock > </ SubEntities > </ cstSectionBlocks > </ add > < fittosize /> <!-- To get the handle of the created entities, use the attribute HandleSave="@Index". --> <!-- Then you'll be able to use it as an alias to the real Handle of the object. --> <!-- To get the real Handle, use the command <get Handle="@Index"/> --> < get Handle = "@1" /> </ cadsofttools > |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <? xml version = "1.0" encoding = "utf-8" ?> < cadsofttools version = "2" > <!-- Description: the example shows how to work with HandleSave --> < add > < cstText point = "10,10,0" Text = "HandleSave is @77" Height = "3" HandleSave = "@77" /> </ add > <!-- Handles alias @77 can be used for select and other instructions --> < select Handle = "@77" /> < apply Color = "0;1;" /> < FitToSize /> <!-- Signs to OnSelectEntity event. Handle in result will be the last selected entity. If you press the entity which is created in this example, the result will be its real Handle. --> < signtoevent Event = "OnSelectEntity" /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
1 2 3 4 5 6 7 8 9 10 11 12 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > < AppCommand Name = "batchprint" > < Items DirName = "" > < Item FileName = "C:\Users\Username\Documents\CADEditorX 15\Samples\Gasket.dwg" > <!-- Orientation: Landscape = 0, Portrait = 1 --> < Layout Name = "Model" Printer = "Microsoft Print to PDF" PaperSizeName = "A3" Orientation = "0" /> < Layout Name = "Layout1" Printer = "Microsoft XPS Document Writer" PaperSizeName = "A4" Orientation = "1" /> </ Item > </ Items > </ AppCommand > </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Parameters | String | Any object's attribute that has no read-only modifiers can be used as a parameter |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: Instruction APPLY assigns new values to the entity attributes. The entity must be selected at first, by using Select Instruction, by mouse, etc. --> <!-- XML for adding a line to select by handle parameter --> < add > < cstLine point = "0,0,0" Point1 = "10,0,0" Handlesave = "@1" /> </ add > < Select Handle = "@1" /> < apply lineweight = "2.00 MM" point1 = "50,10,0" Color = "0;33;" /> <!-- Zoom rect of the selected entities to the screen --> < ShowSelectedEntities /> < UnSelect Handle = "@1" /> </ cadsofttools > |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!--Description: Changing layer properties. --> <!--Adds layers--> < add > < cstSectionTables Name = "TABLES" > < SubEntities > < cstTable Name = "LAYER" > < SubEntities > < cstLayer name = "Layer1" Color = "0;3;" /> < cstLayer name = "Layer2" /> </ SubEntities > </ cstTable > </ SubEntities > </ cstSectionTables > </ add > <!--Selection of layers for changing. IMPORTANT! While selecting the objects that are not visible in the area Model it is necessary to state the parameter Marker="false"--> < select PathName = "TABLES;LAYER;Layer1" Marker = "false" /> <!--Assignation of new values to the properties of the selected layers. --> < apply visible = "false" Locked = "true" /> <!--Deselection of the selected layers.--> < unselect PathName = "TABLES;LAYER;Layer1" Marker = "false" /> </ cadsofttools > |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: Changing of the text style properties; setting of the current text style. --> <!--XML for adding a new text style --> < add > < cstSectionTables Name = "TABLES" > < SubEntities > < cstTable Name = "STYLE" > < SubEntities > < cstStyle Name = "Arial bold" PrimaryFont = "arialbd.ttf" FontName = "Arial" FontStyle = "2" /> </ SubEntities > </ cstTable > </ SubEntities > </ cstSectionTables > </ add > <!--Selection of a text style according to its name and assignation of new values to the text style properties. IMPORTANT! While selecting the objects that are not visible in the area Model it is necessary to state the parameter Marker="false" --> < select PathName = "TABLES;STYLE;Arial bold;" Marker = "false" /> < apply PrimaryFont = "arialbi.ttf" FontStyle = "3" FixedHeight = "6" /> < unselect PathName = "TABLES;STYLE;Arial bold" Marker = "false" /> <!--Setting a new text style as the current one. --> < command text = "TextStyle " Arial bold""/> </ cadsofttools > |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: Changing of the dimension style properties; setting the current dimension style. --> <!-- ArrowType = DimRBlk: 0 = _CLOSEDFILLED; 1 =_CLOSEDBLANK; 2 = _CLOSED; 3 = _DOT; 4 = _ARCHTICK; 5 = _OBLIQUE; 6 = _OPEN; 7 = _ORIGIN; 8 = _ORIGIN2; 9 = _OPEN90; 10 = _OPEN30; 11 = _DOTSMALL; 12 = _DOTBLANK; 13 = _SMALL; 14 = _BOXBLANK; 15 = _BOXFILLED; 16 = _DATUMBLANK; 17 = _DATUMFILLED; 18 = _INTEGRAL; 20 = _NONE.--> < add > < cstSectionTables Name = "TABLES" > < SubEntities > < cstTable Name = "DIMSTYLE" > < SubEntities > < cstDimensionStyle Name = "CADSoftTools" DimTxt = "3.5" DimBlk = "_OBLIQUE" DimBlk1 = "_OBLIQUE" DimBlk2 = "_OBLIQUE" DimAsz = "2.5" /> </ SubEntities > </ cstTable > </ SubEntities > </ cstSectionTables > </ add > <!--Selection of a dimension style according to its name and assignation of new values to the dimension style properties. IMPORTANT! While selecting the objects that are not visible in the area Model it is necessary to state the parameter Marker="false" --> <!-- DimSah is a switch which manages styles of dimensional arrows. "True" allows changing the style of the both arrows with the help of DIMBLK. "False" allows changing the style of separate arrows with the help of DIMBLK1 and DIMBLK2. --> < select PathName = "TABLES;DIMSTYLE;STANDARD;" Marker = "false" /> < apply DimBlk = "_DOTBLANK" DimSah = "True" DimBlk1 = "_ARCHTICK" DimBlk2 = "_OBLIQUE" DimAsz = "0.25" DimTxt = "0.3" /> < unselect PathName = "TABLES;DIMSTYLE;STANDARD" Marker = "false" /> <!--Setting the dimension style as the current one. --> < command text = "DimStyle " CADSoftTools""/> </ cadsofttools > |
1 2 3 4 5 6 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > < Select PathName = "HEADER" Marker = "False" /> < apply DIMLUNIT = "4" DIMDEC = "4" Marker = "False" /> < UnSelect PathName = "HEADER" Marker = "False" /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Caption | String | Caption of button |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
Parameter | Type | Description |
---|---|---|
Format | String | Output file format |
base64 | Base64 | Picture in Base64 encoding. |
1 2 3 4 5 | <? xml version = "1.0" encoding = "utf-8" ?> < cadsofttools version = "2" > <!-- Takes a screenshot and turns it into a Base64 string. --> < capturescreen /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Text | String | Text for the console command line, help, etc. |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
Parameter | Type | Description |
---|---|---|
Result | List | Result data. |
1 2 3 4 5 6 7 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: Instruction Command executes Command line with parameters described in Text attribute. Commands are described in the user manual, also there are many command examples provided in "Commands" section. --> <!-- Executes "Line" command, i.e. starts to draw a line with the mouse: --> < command text = "line" /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Mode | Integer | Context menu mode: 0: replace, 1: add to bottom, 2: add to top |
Parameter | Type | Description |
---|---|---|
Items | List | Accepts Item child nodes. |
Parameter | Type | Description |
---|---|---|
Item | ListItem | Creates a context menu item with the caption from parameter "caption". This caption is returned as result data when the item is clicked. |
Parameter | Type | Description |
---|---|---|
caption | String | Caption of a menu item |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
Parameter | Type | Description |
---|---|---|
Parameters | String | Any object's attribute that has no read-only modifiers can be used as a parameter |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: Context menu instruction allows to replace the context menu by a new one or to add new menu items to the top or to the end of the current menu. When the user clicks on a menu item, its caption returns as event <MenuItemClick caption=" "/> Sender and onClick parameters of theItem are optional. They should be direct addresses to Sender object and onPopup event pointers in a parent application. --> <!-- mode: 0 - replace, 1 - to bottom, 2: to top --> < contextmenu mode = "2" > < items > < item caption = "Menu Item 1" /> < item caption = "Menu Item 2" Sender = "$00000000" /> < item caption = "Menu Item 3" Sender = "$00000000" onClick = "$00000000" /> < item caption = "Menu Item 4" Sender = "$00000000" onClick = "$00000000" onPopup = "$00000000" /> </ items > </ contextmenu > </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
Parameter | Type | Description |
---|---|---|
HatchName | String | Hatch name |
Angle | Double | Angle |
PatternScale | Double | Pattern scale |
Color | ColorCAD | Color CAD |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
Parameter | Type | Description |
---|---|---|
Selected | ListItem | Stores handles of the selected entities |
Parameter | Type | Description |
---|---|---|
Handle | EntHandle | Handle can be given directly via $ or indirectly via @ attributes, it also accepts a list of handles divided by the ";" sign. For example: Handle="$24", Handle="@1", Handle="@;$27;$28" |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | <? xml version = "1.0" encoding = "UTF-8" ?> <!-- Description: Instruction CREATEHATCH creates Hatch using selecte entities as countours. Please select entity by mouse or by xml Instruction SELECT before calling this Instruction.--> <!-- Syntax: <createhatch Hatchname="" Angle="" PatternScale="" Color=""/> Attributes: Hatchname - string - name of Hatch, default is "SOLID" which creates a solid hatch. Other names: "Box", "Escher" and others can be found in Hatch dialog in user interface. Angle - Double - rotation angle of hatch PatternScale - Double - scale of hatch's pattern Color - sring CADSoftTools color structure - color as index or RGB --> < cadsofttools version = "2" > <!-- Create simple rectangular Solid Hatch. Handle of polyline is saved as "@1" --> < add > < cstLWPolyline HandleSave = "@1" > < SubEntities > < cstVertex Point = "140,100,0" /> < cstVertex Point = "141,100,0" /> < cstVertex Point = "141,103,0" /> < cstVertex Point = "140,103,0" /> </ SubEntities > </ cstLWPolyline > </ add > <!-- Select polyline --> < Select Handle = "@1" /> <!-- Create hatch --> < createhatch /> < UnSelect Handle = "@1" /> <!-- Create polyline for Hatch, --> < add > < cstLWPolyline HandleSave = "@2" > < SubEntities > < cstVertex Point = "141,109,0" /> < cstVertex Point = "142,112,0" /> < cstVertex Point = "143,109,0" /> < cstVertex Point = "147,109,0" /> < cstVertex Point = "144,107,0" /> < cstVertex Point = "145,105,0" /> < cstVertex Point = "142,107,0" /> < cstVertex Point = "141,105,0" /> < cstVertex Point = "141,107,0" /> < cstVertex Point = "138,108,0" /> < cstVertex Point = "141,109,0" /> </ SubEntities > </ cstLWPolyline > </ add > <!-- Select polyline --> < Select Handle = "@2" /> <!-- Create hatch --> < createhatch hatchname = "BOX" Angle = "30" PatternScale = "0.1" Color = "0;34;" /> < UnSelect Handle = "@2" /> <!-- Create and select some countours for creating hatch. --> < add > < cstLine point = "120,120,0" point1 = "130,130,0" Color = "0;3;" HandleSave = "@3" /> < cstLine point = "120,120,0" point1 = "130,110,0" Color = "0;3;" HandleSave = "@4" /> < cstLine point = "130,110,0" point1 = "130,130,0" Color = "0;3;" HandleSave = "@5" /> < cstCircle point = "100,100,0" radius = "10" Color = "0;3;" HandleSave = "@6" /> </ add > <!-- Select contours --> < Select Handle = "@3;@4;@5;@6;" /> < createhatch hatchname = "SOLID" Color = "0;3;" /> < UnSelect /> < fittosize /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
CustomDraw | Boolean | The selected entities are drawn with custom color and lineweight |
ReadOnly | Boolean | Read-only status |
AskOnDelete | Boolean | If true, the library asks before deleting entities, whose handles are specified in the CUSTOMSELECTMODE parameters |
Color | ColorCAD | Color CAD |
LineWeight | Double | Line weight |
Handle | EntHandle | Handle can be given directly via $ or indirectly via @ attributes, it also accepts a list of handles divided by the ";" sign. For example: Handle="$24", Handle="@1", Handle="@;$27;$28" |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > < add > < cstLine Point = "0,0" Point1 = "10,5" HandleSave = "@1" /> < cstText Point = "2,3" Text = "Example text" Height = "0.5" HandleSave = "@2" /> < cstLine Point = "0,-3" Point1 = "10,2" HandleSave = "@3" /> </ add > <!--Changes the color and the line weight of the object selection for all the drawings.--> < CustomSelectMode CustomDraw = "True" Color = "0;33;" LineWeight = "3" /> <!-- Changes the color and the line weight of the object selection for the object with Handle=@3 and displays a confirmation dialog when deleting it. --> < CustomSelectMode ReadOnly = "False" AskOnDelete = "True" CustomDraw = "True" Color = "0;5;" LineWeight = "2" Handle = "@3" /> <!-- The object with Handle="@2" is read only; it cannot be deleted. --> < CustomSelectMode ReadOnly = "True" Handle = "@1" /> < fittosize /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
1 2 3 4 5 6 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Selects entities to delete --> < select Handle = "@1" /> < delete /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
ReadOnly | Boolean | Read-only status |
ShowEntityPrecision | Double | Property of the ShowSelectEntities instruction, a value of the precision calculation. |
ShowEntityMethod | Byte | Property of the ShowSelectEntities instruction, the type of the precision calculation. Possible parameters are (0: Proportional, 1: Absolute, 2: FitToSize) |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > < add > < cstLWPolyline > < SubEntities > < cstVertex Point = "0,0" /> < cstVertex Point = "10,0" /> < cstVertex Point = "10,5" /> < cstVertex Point = "0,5" /> < cstVertex Point = "0,0" /> </ SubEntities > </ cstLWPolyline > </ add > <!-- The editor is switched to the ReadOnly mode, modifying of objects is turned off for the current drawing, but it is possible to add new elements. --> < Editor ReadOnly = "True" /> < fittosize /> </ cadsofttools > |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > < add > < cstLWPolyline HandleSave = "@1" > < SubEntities > < cstVertex Point = "0,0" /> < cstVertex Point = "10,0" /> < cstVertex Point = "10,10" /> < cstVertex Point = "0,10" /> < cstVertex Point = "0,0" /> </ SubEntities > </ cstLWPolyline > < cstLine Point = "-5,3" Point1 = "2,7" HandleSave = "@2" /> </ add > <!-- The Editor instruction specifies global settings for the ShowSelectedEntities instruction. The ShowEntityMethod parameter can have the following values: 0- offset is specified in percents from the size of the selected object; 1- offset is specified in pixels; 2- there is no offset. --> <!-- In this example, the offset is defined as 10 pixels from the working area in the ShowSelectedEntities instruction, then the object with Handle="@2" is selected and is fitted to the working area with the help of the ShowSelectedEntities instruction with the margins set. --> < Editor ReadOnly = "False" ShowEntityMethod = "1" ShowEntityPrecision = "20" /> < Select Handle = "@2" /> < ShowSelectedEntities /> < UnSelect Handle = "@2" /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
1 2 3 4 5 | <? xml version = "1.0" encoding = "utf-8" ?> < cadsofttools version = "2" > <!-- Description: The instruction FITTOSIZE fits the drawing to the view area proportionally. --> < fittosize /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Handle | EntHandle | Handle can be given directly via $ or indirectly via @ attributes, it also accepts a list of handles divided by the ";" sign. For example: Handle="$24", Handle="@1", Handle="@;$27;$28" |
PathName | String | A set of symbols showing the location of the named sections or objects in the Converter name space (which is similar to the DXF structure). As a separator the sign ";" is used. |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
Parameter | Type | Description |
---|---|---|
DrawingData | List | Drawing data structure |
1 2 3 4 5 6 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: Instruction GET returns the full structure of the drawing if no parameters are given as a result. If handle parameter is provided, the instruction returns properties of the entity specified by this handle. --> < get /> </ cadsofttools > |
1 2 3 4 5 6 7 8 9 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: This example adds an entity and gets its parameters. HandleSave="@1" and Handle="@1" are used for handling of the entity. --> < add > < cstLine point = "10,10,0" point1 = "20,30,0" Color = "0;1;" HandleSave = "@1" /> </ add > < get Handle = "@1" /> </ cadsofttools > |
1 2 3 4 5 6 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- PathName allows to get access to the object according to its path in the Converter name space --> <!-- Example: "TABLES;LAYER" "TABLES;STYLE;STANDARD" --> < get PathName = "TABLES;LAYER" /> </ cadsofttools > |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: use of the filter in the instruction GET. --> <!-- Getting of the red lines and the green circles situated in the layer called “Layer1”. --> < get Layer = "Layer1" > < cstLine Color = "0;1;" /> < cstCircle Color = "0;3;" /> </ get > <!-- Getting of all block references of the drawing. --> < get > < cstInsert /> </ get > <!-- Getting a list of invisible layers. --> < get PathName = "TABLES;LAYER;" Visible = "false" /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Handle | EntHandle | Handle can be given directly via $ or indirectly via @ attributes, it also accepts a list of handles divided by the ";" sign. For example: Handle="$24", Handle="@1", Handle="@;$27;$28" |
PathName | String | A set of symbols showing the location of the named sections or objects in the Converter name space (which is similar to the DXF structure). As a separator the sign ";" is used. |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
Parameter | Type | Description |
---|---|---|
Box | FRect | Box |
1 2 3 4 5 6 7 8 9 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > < getbox /> < select Handle = "@1;@2" /> < getbox /> < unselect Handle = "@1;@2" /> < getbox Handle = "@1;@2" /> < getbox PathName = "BLOCKS;block1" /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Point | FPoints2DOr3D | points for conversion to cad coordinate system |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
1 2 3 4 5 6 7 8 | <? xml version = "1.0" encoding = "utf-8" ?> < cadsofttools version = "2" > <!-- Converts screen coordinates into the CAD coordinate system. The origin of screen coordinates is located in the top left corner of the display area. --> < getcadcoords Point = "10,10" /> < getcadcoords Point = "10,10" Mode = "ScreenToCad" /> <!-- Converts CAD coordinates to the screen coordinate system. The origin of screen coordinates is located in the top left corner of the display area. --> < getcadcoords Point = "0.050,2.076" Mode = "CadToScreen" /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
Parameter | Type | Description |
---|---|---|
Changed | Boolean | CHANGED returns True if any changes were implemented in a Drawing. |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: GETDRAWINGCHANGED instruction checks if any changes have been made in a Drawing. The result parameter CHANGED returns True if any changes have been implemeted in a Drawing. --> < getdrawingchanged /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
Parameter | Type | Description |
---|---|---|
Drawing | ListItem | Drawing item |
Parameter | Type | Description |
---|---|---|
Guid | String | Drawing Guid |
File | String | Path to the file |
Index | Integer | Drawing Index |
Mode | Integer | Full drawing mode |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Returns guids for all opened drawings.--> < getdrawingslist /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
Parameter | Type | Description |
---|---|---|
ExternalFile | ListItem | External file item |
Parameter | Type | Description |
---|---|---|
File | String | Path to the file |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Returns a list of dependent files (xref, imagedef) --> < GetExternalFiles /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Top | Integer | Top |
Left | Integer | Left |
Right | Integer | Right |
Bottom | Integer | Bottom |
Width | Integer | Width |
Height | Integer | Height |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
Parameter | Type | Description |
---|---|---|
base64 | Base64 | Picture in Base64 encoding. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: Returns picture of the current view in Base64 encoding. --> < getimage > < ExportParams FileName = "C:\Users\Username\Documents\CADEditorX 15\Drawings\Image" Format = ".png" > <!-- attribute 'FileName' calls additional saving to file --> < Width >1024</ Width > <!--always needs setup --> < Height >768</ Height > <!--always needs setup --> < Proportional >True</ Proportional > < BitPerPixel >24</ BitPerPixel > < MeasureInPixels >True</ MeasureInPixels > < Transparent >True</ Transparent > < BackgroundColor >$FFFFFF</ BackgroundColor > <!--default value white --> < DefaultColor >$000000</ DefaultColor > <!--default value black --> < ClipMode >4</ ClipMode > < ClipRect >0,0,0,2048,1536,0</ ClipRect > < LayoutNameExportMode >Layout Bud2</ LayoutNameExportMode > <!--default current layout. The first char '@' of this name is layout index --> </ ExportParams > </ getimage > </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
Parameter | Type | Description |
---|---|---|
SelectedCount | Integer | The number of the selected entities |
Parameter | Type | Description |
---|---|---|
Selected | ListItem | Stores handles of the selected entities |
Parameter | Type | Description |
---|---|---|
Handle | EntHandle | Handle can be given directly via $ or indirectly via @ attributes, it also accepts a list of handles divided by the ";" sign. For example: Handle="$24", Handle="@1", Handle="@;$27;$28" |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: Instruction GETSELECTED returns handles of the selected entities. --> < getselected /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Asks current view area as cstVport data. Use with SETVIEW instruction.--> < getview /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
Parameter | Type | Description |
---|---|---|
VisibleArea | ListItem | VisibleArea item |
CADArea | ListItem | CADArea item |
Parameter | Type | Description |
---|---|---|
Width | Integer | Width |
Height | Integer | Height |
Parameter | Type | Description |
---|---|---|
Rect | FRect | Rect |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Asks current view area as a rectangle. Use with SETVIEWRECT instruction.--> < getviewrect /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
1 2 3 4 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > < globalvariable Name = "ACADVer" /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Text | String | Text for the console command line, help, etc. |
File | String | Path to the file |
PathToXMLExamples | String | The path to the parent XML examples directory for using them in the HTML Help. |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
Parameter | Type | Description |
---|---|---|
Box | FRect | Box |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
1 2 3 4 5 6 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!--Invalidates the current layout or area specified by the Box attribute.--> < Invalidate /> < Invalidate Box = "10,10,0,1,1,0" /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
1 2 3 4 5 6 7 8 9 10 11 12 13 | <? xml version = "1.0" encoding = "utf-8" ?> < cadsofttools version = "2" > <!-- The Iterator Instruction* executes** XML content*** for the selected entities and iterates the block content. Use a standard filter like the one of the get or the select command Mode: bit 0: Iterates the content of a block; bit 1: Executes XML for the owner entity; --> < Iterator Mode = "2" > < apply Color = "1;65535" /> </ Iterator > </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
File | String | Path to the file |
base64 | Base64 | Picture in Base64 encoding. |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
Parameter | Type | Description |
---|---|---|
Guid | String | Drawing Guid |
File | String | Path to the file |
Index | Integer | Drawing Index |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
Parameter | Type | Description |
---|---|---|
User | String | User |
String | ||
Key | String | Key |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
Parameter | Type | Description |
---|---|---|
Registration | Integer | Registration |
1 2 3 4 5 6 7 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!--0 - Registration error. --> <!--1 - Registration was successful. --> <!--2 - The application has been registered before. --> < registration User = "" EMail = "" Key = "" /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | <? xml version = "1.0" encoding = "utf-8" ?> < cadsofttools version = "2" > <!-- The function extracts attributes of objects on the entire floor from the provided DXF file into a resulting XML file. --> < Report Name = "ExtractFloorPlanXML" FileName = "C:\ReportsXML.xml" /> <!-- The function extracts an image (in PNG or PDF format) of the entire floor plan from the provided DXF file --> < Report Name = "ExtractFloorPlanImage" > < ExportParams FileName = "C:\ImagePNG" Format = ".png" > < Width >1024</ Width > < Height >-1</ Height > < Proportional >True</ Proportional > < BitPerPixel >24</ BitPerPixel > < MeasureInPixels >True</ MeasureInPixels > </ ExportParams > </ Report > <!-- The function extracts an image of the provided object from the DXF file (in PNG or PDF format). --> < Report Name = "ExtractObjectImage" Layer = "Layer1" ObjectId = "12547367.3.003" CADBuffer = "2" > < ExportParams FileName = "C:\ImagePDF" Format = ".png" > < Width >1024</ Width > < Height >-1</ Height > < Proportional >True</ Proportional > < BitPerPixel >24</ BitPerPixel > < MeasureInPixels >True</ MeasureInPixels > </ ExportParams > </ Report > </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Visible | Boolean | Visible |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
1 2 3 4 5 6 | <? xml version = "1.0" encoding = "utf-8" ?> < cadsofttools version = "2" > <!-- Defines the ribbon visibility. --> < Ribbon Visible = "False" /> < FitToSize /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
ExportParams | List | ExportParams is a child attribute of the SAVE instruction. |
Parameter | Type | Description |
---|---|---|
Width | Integer | Width |
Height | Integer | Height |
Proportional | Boolean | |
BitPerPixel | Byte | |
MeasureInPixels | Boolean | |
Transparent | Boolean | Sets transparency for GIF |
DPUX | Byte | DPI X |
DPUY | Byte | DPI Y |
Compression | String | Compression for raster: LZW, Deflate, JPEG, CCITT3, CCITT4, CCITT6, Rle, Auto, None |
PageHeight | Integer | Page Height |
Author | String | Author |
LayoutExportMode | Byte | Selects layouts to be exported: 0: Model; 1: AllLayouts; 2:LayoutByName; 3:AllPaperSpaces; 4:CurrentLayout. |
LayoutNameExportMode | String | Layout name, used if layouts export mode is "LayoutByName." |
Version | String | DWG or DXF version. For instance: acR2004, acR2000. |
IsConvertImageToOLE | Boolean | Converts external images to OLE in DWG/DXF export. |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Saves using XML export parametrs --> <!-- Saves as a raster image--> < save > < ExportParams FileName = "C:\Users\Username\Documents\CADEditorX 15\Drawings\ImageJPG" Format = ".jpg" > < Width >1024</ Width > < Height >-1</ Height > < Proportional >True</ Proportional > < BitPerPixel >24</ BitPerPixel > <!-- Set quality in percent for JPG --> < Quality >100</ Quality > < MeasureInPixels >True</ MeasureInPixels > <!-- Set transparent for GIF --> < Transparent >False</ Transparent > <!-- Set dpi for JPG: always 2 parameters --> < DPUX >96</ DPUX > < DPUY >96</ DPUY > <!-- Compression for TIFF: LZW, Deflate, JPEG, CCITT3, CCITT4, CCITT6, Rle, Auto, None --> < Compression >LZW</ Compression > </ ExportParams > </ save > <!-- Saves as PDF--> < save > < ExportParams FileName = "C:\Users\Username\Documents\CADEditorX 15\Drawings\ImagePDF" Format = ".pdf" > <!-- Page size is set in the following ways: a) by specifying a standard <PageSize> (e.g. A4) b) by specifying <PageWidth> and <PageHeight> c) by using plot settings <UseExtentsFromPlotSettings> d) by calculating the overall dimensions <SizeAsExtents> of the drawing taking into account the scale factor <MMInCad> --> < PageSize >A4</ PageSize > < Orientation >1</ Orientation > <!-- 0: landscape; 1: portrait --> < Margin >5</ Margin > <!-- page margins in millimeters --> < Author >Author</ Author > < DrawMode >0</ DrawMode > <!-- 0: Color; 1: Custom Color; --> < BackgroundColor >$000000</ BackgroundColor > < DefaultColor >$0000FF</ DefaultColor > < UseHighQuality >True</ UseHighQuality > <!-- Set value quality - lowest quality: 0.5, highest quality: 0.01 --> <!-- Select layouts for export: 0: Model; 1:AllPaperSpaces; 2:LayoutByName; 3:AllLayouts+Model; 4:CurrentLayout; --> < LayoutExportMode >2</ LayoutExportMode > <!-- Used if layouts export mode is 'LayoutByName' --> < LayoutNameExportMode >Model</ LayoutNameExportMode > < NullWidth >0.3</ NullWidth > < SaveLineWeight >True</ SaveLineWeight > < LineWeightScale >1</ LineWeightScale > </ ExportParams > </ save > <!-- Saves as PNG --> < save > < ExportParams FileName = "C:\Users\Username\Documents\CADEditorX 15\Drawings\ImagePNG" Format = ".png" > < Width >1024</ Width > < Height >-1</ Height > < Proportional >True</ Proportional > < BitPerPixel >24</ BitPerPixel > < MeasureInPixels >True</ MeasureInPixels > </ ExportParams > </ save > <!-- When saving to DXF and DWG, the format version is inidicated in the Version parameter in the following way: AC1015 = AutoCAD2000; AC1018 = AutoCAD2004; AC1021 = AutoCAD2007; --> <!-- Saves as DXF --> < save > < ExportParams FileName = "C:\Users\Username\Documents\CADEditorX 15\Drawings\ImageDXF" Format = ".dxf" > < Version >AutoCAD2004</ Version > < IsConvertImageToOLE >True</ IsConvertImageToOLE > </ ExportParams > </ save > <!-- Saves as DWG --> < save > < ExportParams FileName = "C:\Users\Username\Documents\CADEditorX 15\Drawings\ImageDWG" Format = ".dwg" > < Version >AutoCAD2000</ Version > < IsConvertImageToOLE >True</ IsConvertImageToOLE > </ ExportParams > </ save > <!-- Saves as GCode --> < save > < ExportParams FileName = "C:\Users\Username\Documents\CADEditorX 15\Drawings\ImageGCode" Format = ".nc" > <!--MachineType: 0: milling machine; 1: cutting machine; --> < MachineTypeID >0</ MachineTypeID > <!--PassesDirectionID: 0: 1: --> < PassesDirectionID >0</ PassesDirectionID > < Precision >2</ Precision > < FeedOnZ >2000</ FeedOnZ > < FeedMillOnXY >100</ FeedMillOnXY > < FeedCutOnXY >0</ FeedCutOnXY > < SpindleSpeed >2000</ SpindleSpeed > < DepthOnZ >-2</ DepthOnZ > < DepthPass >2</ DepthPass > < NumbOfPasses >1</ NumbOfPasses > < DepartureOnZ >5</ DepartureOnZ > <!--WorkpieceZeroPointID: 0: origin; 1: top left; 2: top right; 3: bottom left; 4: bottom right; --> < WorkpieceZeroPointID >0</ WorkpieceZeroPointID > < ZeroPointOffset >50,10</ ZeroPointOffset > < LaserOnCommand >M3</ LaserOnCommand > < LaserOffCommand >M5</ LaserOffCommand > < UseLaserPower >False</ UseLaserPower > < LaserPower >128</ LaserPower > < Delay >500</ Delay > <!--UnitsID: 0: Millimetre; 1: Centimetre; 2: Metre; 3: Inch; --> < MachineUnitsID >0</ MachineUnitsID > < DrawingUnitsID >0</ DrawingUnitsID > < AddLabelOfProgam >False</ AddLabelOfProgam > < LabelOfProgram >001</ LabelOfProgram > < AddNumbering >False</ AddNumbering > < ShowComments >True</ ShowComments > < ShowPercent >True</ ShowPercent > < StartNumber >5</ StartNumber > < StepOfNumbering >5</ StepOfNumbering > </ ExportParams > </ save > </ cadsofttools > |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!--Description: the example shows how to save several CAD files in one multipage PDF --> < save > < ExportParams FileName = "C:\Users\Username\Documents\CADEditorX 15\Drawings\MultipagePDF" Format = ".pdf" > <!-- Parameters for all files--> < Margin >5</ Margin > <!-- page margins in millimeters --> < Author >Author</ Author > < DrawMode >0</ DrawMode > <!-- 0: Color; 1: Black&White; --> < Quality >0.01</ Quality > <!-- Value in range 0.5-0.01; 0.5: lowest quality; 0.01: highest quality; --> <!-- Select layouts for export: 0: Model; 1:AllPaperSpaces; 2:LayoutByName; 3:AllLayouts+Model; 4:CurrentLayout; --> < LayoutExportMode >3</ LayoutExportMode > < LayoutNameExportMode >Model</ LayoutNameExportMode > <!-- Used if layouts export mode is 'LayoutByName' --> < sources > < item FileName = "C:\Users\Username\Documents\CADEditorX 15\Samples\Gasket.dwg" /> < item FileName = "C:\Users\Username\Documents\CADEditorX 15\Samples\3DLamborgini.dwg" > <!--Parameters for the second CAD file --> < PageWidth >1024</ PageWidth > <!-- page width in millimeters --> < PageHeight >512</ PageHeight > <!-- page height in millimeters --> </ item > < item FileName = "C:\Users\Username\Documents\CADEditorX 15\Samples\Entities.dxf" > <!--Parameters for the third CAD file --> < PageWidth >210</ PageWidth > <!-- page width in millimeters --> < PageHeight >297</ PageHeight > <!-- page height in millimeters --> </ item > </ sources > </ ExportParams > </ save > </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Handle | EntHandle | Handle can be given directly via $ or indirectly via @ attributes, it also accepts a list of handles divided by the ";" sign. For example: Handle="$24", Handle="@1", Handle="@;$27;$28" |
Marker | Boolean | Shows (True) or does not show (False) editor markers for the selected entity. |
PathName | String | A set of symbols showing the location of the named sections or objects in the Converter name space (which is similar to the DXF structure). As a separator the sign ";" is used. |
Mode | Integer | 0 - set, 1 - remove, 2 - add. default value = 0 |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | <? xml version = "1.0" encoding = "utf-8" ?> < cadsofttools version = "2" > <!-- Description: Instruction SELECT selects entity(ies) by its handle(s). --> < add > < cstText Point = "-18, 0, 0" Height = "1" Text = "Text marker is visible while Ellipse markers is not shown." HandleSave = "@1" /> < cstEllipse Point = "0,0,0" RadPt = "20,0,0" Ratio = "0.5" StartAngle = "0" EndAngle = "360" HandleSave = "@2" /> </ add > < FitToSize /> <!-- The following selects Text (@1) and ellipse (@2) but the marker is shown only for text. --> <!-- After selecting an object with the help of Select instruction and fulfilling the needed operations, please, deselect this object as it remains selected. --> <!-- Mode - this mode is used if the Marker attribute is "True": 0 - set entities 1 - remove from the selected entities 2 - add to the selected entities --> < select Handle = "@1" Marker = "True" Mode = "0" /> < select Handle = "@2" Marker = "False" /> <!-- Changes color for both selected entities --> < apply Color = "0;1" /> </ cadsofttools > |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > < add > < cstSectionTables Name = "TABLES" > < SubEntities > < cstTable Name = "LAYER" > < SubEntities > < cstLayer name = "Layer2" HandleSave = "@1" /> < cstLayer name = "Layer3" HandleSave = "@2" /> </ SubEntities > </ cstTable > </ SubEntities > </ cstSectionTables > < cstLine Point = "0,0" Point1 = "10,10" Layer = "Layer2" /> < cstLine Point = "0,5" Point1 = "10,15" Layer = "Layer3" /> </ add > <!-- To edit objects that cannot be selected in the editor window set the variable Marker="False". --> <!-- After selecting an object with the help of Select instruction and fulfilling the needed operations, please, deselect this object as it remains selected. --> <!-- Here are two ways of selecting objects: 1) by specifying the object's Handle (@1) 2) by specifying the section in the file and the object name. --> < Select Handle = "@1" Marker = "False" /> < apply lineweight = "0.5" Color = "0;1;" /> < UnSelect Handle = "@1" Marker = "False" /> < Select PathName = "STYLE;STANDARD" Marker = "False" /> < apply WidthFactor = "0.75" PrimaryFont = "txt.shx" /> < UnSelect PathName = "STYLE;STANDARD" Marker = "False" /> < FitToSize /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Handle | EntHandle | Handle can be given directly via $ or indirectly via @ attributes, it also accepts a list of handles divided by the ";" sign. For example: Handle="$24", Handle="@1", Handle="@;$27;$28" |
Color | ColorCAD | Color CAD |
LineWeight | Double | Line weight |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Changes the color and lineweight for the insert --> < SetCustomInsert Handle = "@1" Color = "0;3;" LineWeight = "3" /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
Parameter | Type | Description |
---|---|---|
Guid | String | Drawing Guid |
Mode | Integer | 0 - by guid, 1 - current drawing, 2 - all drawings |
Changed | Boolean | CHANGED returns True if any changes were implemented in a Drawing. |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
1 2 3 4 5 6 7 8 9 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > < getdrawingchanged /> <!-- Set true or false value depending on changes were applied to the drawing by guid or Mode. --> < setdrawingchanged Mode = "1" changed = "false" /> < getdrawingchanged /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
1 2 3 4 5 6 7 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!--Zooms the display area to given cstVport data. Use with GETVIEW instruction.--> < setview > < cstVport CircleZoomPercent = "100" UCSOrigin = "0,0,1" UCSXDir = "1,0,0" UCSYDir = "0,1,0" UCSVP = "false" ViewAspectRatio = "1" ViewCenterPoint = "0,0,0" ViewDirection = "0,0,1" ViewTarget = "0,0,0" ViewHeight = "0" ViewTwistAngle = "0" /> </ setview > </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Rect | FRect | Rect |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!--Zooms the display area to a given rectangle. Use with GETVIEWRECT instruction.--> < setviewrect Rect = "1,2.55227261471941,0,6.0130718954248,-1.04249862711065,0" /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
ShowEntityMethod | Byte | Property of the ShowSelectEntities instruction, the type of the precision calculation. Possible parameters are (0: Proportional, 1: Absolute, 2: FitToSize) |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
1 2 3 4 5 | <? xml version = "1.0" encoding = "utf-8" ?> < cadsofttools version = "2" > <!-- Instruction SHOWSELECTEDENTITIES zooms view to show selected entities. Please select any entities with the mouse or with the help of SELECT instruction before executing SHOWSELECTEDENTITIES. --> < ShowSelectedEntities /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Event | String | The accepted event names are: "OnSelectEntity" , "OnMouseDown" , OnConfirmEntitiesDeletion. |
Enabled | Boolean | Enabled (True) or Disabled (False) |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: Instruction SignToEvent signs for particular events to accept callbacks with XML data. --> <!-- Description: mouse events. --> < signtoevent Event = "OnMouseDown" Enabled = "True" /> < signtoevent Event = "OnMouseMove" Enabled = "True" /> < signtoevent Event = "OnMouseUp" Enabled = "True" /> < signtoevent Event = "OnMouseWheel" Enabled = "True" /> <!-- Description: editor events. --> < signtoevent Event = "OnChangeEntities" Enabled = "True" /> < signtoevent Event = "OnCopyEntities" Enabled = "True" /> < signtoevent Event = "OnCreateEntities" Enabled = "True" /> < signtoevent Event = "OnDeleteEntities" Enabled = "True" /> < signtoevent Event = "OnLayoutAfterChange" Enabled = "True" /> < signtoevent Event = "OnLayoutBeforeChange" Enabled = "True" /> < signtoevent Event = "OnPasteEntities" Enabled = "True" /> < signtoevent Event = "OnRedoEntities" Enabled = "True" /> < signtoevent Event = "OnUndoEntities" Enabled = "True" /> < signtoevent Event = "OnSelectEntity" Enabled = "True" /> < signtoevent Event = "OnConfirmEntitiesDeletion" Enabled = "True" /> <!-- Description: key events. --> < signtoevent Event = "OnKeyDown" Enabled = "True" /> < signtoevent Event = "OnKeyUp" Enabled = "True" /> < signtoevent Event = "OnKeyPress" Enabled = "True" /> <!-- Description: main events. --> < signtoevent Event = "OnPaint" Enabled = "True" /> <!-- To find out if an event was set, use the command signtoevent without attributes. --> < signtoevent /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
1 2 3 4 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > < SupportedClassesList /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
1 2 3 4 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > < SupportedInstructionsList /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Index | Integer | Drawing Index |
Guid | String | Drawing Guid |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!--Switches the active drawing.--> < switchdrawing index = "0" /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
Parameter | Type | Description |
---|---|---|
Index | Integer | Drawing Index |
Guid | String | Drawing Guid |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
Parameter | Type | Description |
---|---|---|
Marker | Boolean | Shows (True) or does not show (False) editor markers for the selected entity. |
Handle | EntHandle | Handle can be given directly via $ or indirectly via @ attributes, it also accepts a list of handles divided by the ";" sign. For example: Handle="$24", Handle="@1", Handle="@;$27;$28" |
PathName | String | A set of symbols showing the location of the named sections or objects in the Converter name space (which is similar to the DXF structure). As a separator the sign ";" is used. |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Please run "add.xml" and Select all (Ctrl+A) entities. Then run 'getSelected.xml' and add unselect Handle="HANDLE" for each Handle. After that, run this xml. --> < unselect Handle = "HANDLE" /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Instruction | String | The name of the command which the result is for |
Parameter | Type | Description |
---|---|---|
Output | List | Contains the result of the command |
Errors | List | Contains the errors of the command |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | <? xml version = "1.0" encoding = "utf-8" ?> < cadsofttools version = "2" > <!-- Mode="0" is default. If Mode="0" then watermark parameters are gotten , if "1", watermark parameters are set --> < Watermark Mode = "1" > <!-- if the Scale is set, then Scale apply by axis X --> <!-- Aling: "0" - Center - for default "1" - TopLeft "2" - BottomLeft "3" - TopRight "4" - BottomRight --> < Parameters Angle = "45" FontName = "Arial" Color = "$00FF00" Scale = "1" Align = "0" /> < Text Value = "WaterMark" /> </ Watermark > </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
Angle | Double | Angle |
AskOnDelete | Boolean | If true, the library asks before deleting entities, whose handles are specified in the CUSTOMSELECTMODE parameters |
Author | String | Author |
base64 | Base64 | Picture in Base64 encoding. |
BitPerPixel | Byte | |
Bottom | Integer | Bottom |
Box | FRect | Box |
CADArea | ListItem | CADArea item |
Calcs | List | Accepts Calc child nodes. |
caption | String | Caption of a menu item |
Caption | String | Caption of button |
Changed | Boolean | CHANGED returns True if any changes were implemented in a Drawing. |
Color | ColorCAD | Color CAD |
Compression | String | Compression for raster: LZW, Deflate, JPEG, CCITT3, CCITT4, CCITT6, Rle, Auto, None |
Created | ListItem | Created |
CustomDraw | Boolean | The selected entities are drawn with custom color and lineweight |
DPUX | Byte | DPI X |
DPUY | Byte | DPI Y |
Drawing | ListItem | Drawing item |
DrawingData | List | Drawing data structure |
String | ||
Enabled | Boolean | Enabled (True) or Disabled (False) |
Errors | List | Contains the errors of the command |
Event | String | The accepted event names are: "OnSelectEntity" , "OnMouseDown" , OnConfirmEntitiesDeletion. |
ExportParams | List | ExportParams is a child attribute of the SAVE instruction. |
ExternalFile | ListItem | External file item |
File | String | Path to the file |
Format | String | Output file format |
Guid | String | Drawing Guid |
Handle | EntHandle | Handle can be given directly via $ or indirectly via @ attributes, it also accepts a list of handles divided by the ";" sign. For example: Handle="$24", Handle="@1", Handle="@;$27;$28" |
HatchName | String | Hatch name |
Height | Integer | Height |
Index | Integer | Drawing Index |
Instruction | String | The name of the command which the result is for |
IsConvertImageToOLE | Boolean | Converts external images to OLE in DWG/DXF export. |
Item | ListItem | Creates a context menu item with the caption from parameter "caption". This caption is returned as result data when the item is clicked. |
Items | List | Accepts Item child nodes. |
Key | String | Key |
LayoutExportMode | Byte | Selects layouts to be exported: 0: Model; 1: AllLayouts; 2:LayoutByName; 3:AllPaperSpaces; 4:CurrentLayout. |
LayoutNameExportMode | String | Layout name, used if layouts export mode is "LayoutByName." |
Left | Integer | Left |
LineWeight | Double | Line weight |
Marker | Boolean | Shows (True) or does not show (False) editor markers for the selected entity. |
MeasureInPixels | Boolean | |
Mode | Integer | Context menu mode: 0: replace, 1: add to bottom, 2: add to top |
Mode | Integer | 0 - set, 1 - remove, 2 - add. default value = 0 |
Mode | Integer | Full drawing mode |
Mode | Integer | 0 - by guid, 1 - current drawing, 2 - all drawings |
Output | List | Contains the result of the command |
PageHeight | Integer | Page Height |
PageWidth | Integer | Page Width |
Parameters | String | Any object's attribute that has no read-only modifiers can be used as a parameter |
PathName | String | A set of symbols showing the location of the named sections or objects in the Converter name space (which is similar to the DXF structure). As a separator the sign ";" is used. |
PathToXMLExamples | String | The path to the parent XML examples directory for using them in the HTML Help. |
PatternScale | Double | Pattern scale |
Point | FPoints2DOr3D | points for conversion to cad coordinate system |
Proportional | Boolean | |
Quality | Double | |
ReadOnly | Boolean | Read-only status |
Rect | FRect | Rect |
Registration | Integer | Registration |
Result | List | Result data. |
Right | Integer | Right |
Selected | ListItem | Stores handles of the selected entities |
SelectedCount | Integer | The number of the selected entities |
ShowEntityMethod | Byte | Property of the ShowSelectEntities instruction, the type of the precision calculation. Possible parameters are (0: Proportional, 1: Absolute, 2: FitToSize) |
ShowEntityPrecision | Double | Property of the ShowSelectEntities instruction, a value of the precision calculation. |
Text | String | Text for the console command line, help, etc. |
Top | Integer | Top |
Transparent | Boolean | Sets transparency for GIF |
Updated | ListItem | Updated |
User | String | User |
Version | String | DWG or DXF version. For instance: acR2004, acR2000. |
Visible | Boolean | Visible |
VisibleArea | ListItem | VisibleArea item |
Width | Integer | Width |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Point | FPoint | 3D Point defining entity |
Thickness | Double | Thickness |
Extrusion | FPoint | Extrusion direction point |
Point1 | FPoint | 3D point defining entity |
Point2 | FPoint | 3D point defining entity |
Point3 | FPoint | 3D point defining entity |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Point | FPoint | 3D Point defining entity |
Thickness | Double | Thickness |
Extrusion | FPoint | Extrusion direction point |
Point1 | FPoint | 3D point defining entity |
Point2 | FPoint | 3D point defining entity |
Point3 | FPoint | 3D point defining entity |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Point | FPoint | 3D Point defining entity |
BlockName | EntName | Name of a Block |
Extrusion | FPoint | Extrusion direction point |
Angle | Double | Angle value |
PScale | FPoint | Scale factor |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Name | String | Name string value |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Name | String | Name string value |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Point | FPoint | 3D Point defining entity |
Thickness | Double | Thickness |
Extrusion | FPoint | Extrusion direction point |
Radius | Double | Radius value |
Length | Double | Length value |
Area | Double | Area value |
Height | Double | Height value |
EndAngle | Double | End angle value |
StartAngle | Double | Start angle value |
1 2 3 4 5 6 7 8 | <? xml version = "1.0" encoding = "utf-8" ?> < cadsofttools version = "2" > <!-- Description: An arc is specified by a Point, a Radius, Start and End angles. --> < add > < cstArc Point = "0,0,0" StartAngle = "0" EndAngle = "180" Radius = "1" /> </ add > < fittosize /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Point | FPoint | 3D Point defining entity |
Height | Double | Height value |
Rotation | Double | Rotation angle |
WidthFactor | Double | Width factor for Style |
ObliqueAngle | Double | Oblique angle |
Point1 | FPoint | 3D point defining entity |
HAlign | Undefined | HAlign |
VAlign | Undefined | VAlign |
StyleName | String | Name of a Style |
Tag | String | Attribute or attribute definition tag string |
AttValue | String | Attribute or attribute definition value string |
1 2 3 4 5 6 7 8 | <? xml version = "1.0" encoding = "utf-8" ?> < cadsofttools version = "2" > <!-- Description: An attribute definition is specified by a Point and a Height. The Tag and Value parameters are optional. --> < add > < cstAttdef Point = "4.5,3" Height = "3.5" Tag = "Attribute tag" AttValue = "" /> </ add > < fittosize /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Point | FPoint | 3D Point defining entity |
Height | Double | Height value |
Rotation | Double | Rotation angle |
WidthFactor | Double | Width factor for Style |
ObliqueAngle | Double | Oblique angle |
Point1 | FPoint | 3D point defining entity |
HAlign | Undefined | HAlign |
VAlign | Undefined | VAlign |
StyleName | String | Name of a Style |
Tag | String | Attribute or attribute definition tag string |
AttValue | String | Attribute or attribute definition value string |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | <? xml version = "1.0" encoding = "utf-8" ?> < cadsofttools version = "2" > <!-- Description: Block attributes are added to the child element "Attribs" of the cstInsert object. --> < add > <!-- Adds a block with attributes --> <!-- Attribute flags: 1 = Attribute is invisible; 2 = This is a constant attribute; 4 = Verification is required on input of this attribute; 8 = Attribute is preset.--> < cstSectionBlocks Name = "BLOCKS" > < SubEntities > < cstBlock name = "block" > < SubEntities > < cstAttdef flags = "1" point = "0,0" height = "2.5" tag = "invisible" value = "" /> < cstAttdef flags = "2" point = "0,-4" height = "2.5" tag = "constant" value = "" color = "0;1" /> < cstAttdef flags = "2" point = "0,-8" height = "2.5" tag = "constant2" value = "constant value" color = "0;1" StyleName = "GOST" /> < cstAttdef flags = "4" point = "0,-12" height = "2.5" tag = "controlled" value = "" /> < cstAttdef flags = "8" point = "0,-16" height = "2.5" tag = "set" value = "" /> < cstAttdef point = "0,-20" height = "2.5" tag = "tag_attribute" value = "" /> < cstAttdef flags = "3" point = "0,-24" height = "2.5" tag = "invisible+constant" value = "invisible+constant value" color = "0;1" HandleSave = "@1" /> < cstAttdef flags = "5" point = "0,-28" height = "2.5" tag = "invisible+controlled" value = "" /> < cstAttdef flags = "9" point = "0,-32" height = "2.5" tag = "invisible+set" value = "" /> < cstAttdef flags = "12" point = "0,-36" height = "2.5" tag = "set+controlled" value = "" /> < cstAttdef flags = "13" point = "0,-40" height = "2.5" tag = "invisble+control+set" value = "" /> </ SubEntities > </ cstBlock > </ SubEntities > </ cstSectionBlocks > <!-- Adds entities Model --> < cstInsert blockname = "block" point = "0,0" > < SubEntities > < cstAttrib flags = "1" point = "0,0" height = "2.5" tag = "invisible" value = "invisible value" /> < cstAttrib flags = "4" point = "0,-12" height = "2.5" tag = "controlled" value = "controlled value" /> < cstAttrib flags = "8" point = "0,-16" height = "2.5" tag = "set" value = "set value" /> < cstAttrib point = "0,-20" height = "2.5" tag = "tag_attribute" value = "attribute value" color = "0;5" StyleName = "GOST" /> < cstAttrib flags = "5" point = "0,-28" height = "2.5" tag = "invisible+controlled" value = "invisible+controlled value" /> < cstAttrib flags = "9" point = "0,-32" height = "2.5" tag = "invisible+set" value = "invisible+set value" /> < cstAttrib flags = "12" point = "0,-36" height = "2.5" tag = "set+controlled" value = "set+controlled value" /> < cstAttrib flags = "13" point = "0,-40" height = "2.5" tag = "invisble+control+set" value = "" /> </ SubEntities > </ cstInsert > </ add > <!-- Selects entity with handle @1 and changes parameter Flags. --> < Select Handle = "@1" /> < apply flags = "2" /> < Unselect Handle = "@1" /> < fittosize /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Name | String | Name string value |
BasePoint | FPoint | Base 3D point |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Name | String | Name string value |
BasePoint | FPoint | Base 3D point |
Parameter | Type | Description |
---|---|---|
ExtData | StringInternal | Extended data |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Name | String | Name string value |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Name | String | Name string value |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Point | FPoint | 3D Point defining entity |
Thickness | Double | Thickness |
Extrusion | FPoint | Extrusion direction point |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Point | FPoint | 3D Point defining entity |
Thickness | Double | Thickness |
Extrusion | FPoint | Extrusion direction point |
Radius | Double | Radius value |
Length | Double | Length value |
Area | Double | Area value |
1 2 3 4 5 6 7 8 | <? xml version = "1.0" encoding = "utf-8" ?> < cadsofttools version = "2" > <!-- Description: A circle is specified by a Point and a Radius. --> < add > < cstCircle point = "0,0,0" Radius = "10" /> </ add > < fittosize /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Point | FPoint | 3D Point defining entity |
BlockName | EntName | Name of a Block |
Extrusion | FPoint | Extrusion direction point |
Angle | Double | Angle value |
PScale | FPoint | Scale factor |
ClipRect | FRect | Entity clip rect |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
HatchName | String | Name of a Hatch pattern |
SolidFill | Boolean | Specifies if a Hatch have solid filling |
Elevation | FPoint | Elevation value |
Extrusion | FPoint | Extrusion direction point |
Offset | FPoint | 3D offset point |
Parameter | Type | Description |
---|---|---|
BoundaryPolylines | List | List of polylines generated by boundaries of a Hatch |
Boundaries | List | List of boundaries of a Hatch |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Point | FPoint | 3D Point defining entity |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Name | String | Name string value |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
BlockName | EntName | Name of a Block |
Extrusion | FPoint | Extrusion direction point |
DimStyle | String | Header variable. Dimension style name |
DefPoint | FPoint | Definition point for Dimension |
LinDefPoint1 | FPoint | Start point of the first extension line for Dimension |
LinDefPoint2 | FPoint | Start point of the second extension line for Dimension |
MiddlePoint | FPoint | Middle point of dimension text for Dimension |
ArcDefPoint | FPoint | Point defining dimension arc for angular Dimension |
RadDefPoint | FPoint | Definition point for diameter, radius, and angular Dimensions |
ArrowType | Byte | Arrow type for entities |
ArrowSize | Double | Dimensioning arrow size |
Parameter | Type | Description |
---|---|---|
Properties | List | Dimension style properties |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Name | String | Name string value |
DimBlk | EntName | Arrow block name |
DimBlk1 | EntName | First arrow block name |
DimBlk2 | EntName | Second arrow block name |
DimRBlk | EntName | Arrow block name for leaders |
DimAlt | Boolean | Alternate unit dimensioning performed if nonzero |
DimAltF | Double | Alternate unit scale factor |
DimAPost | String | Alternate dimensioning suffix |
DimAsz | Double | Dimensioning arrow size |
DimSah | Boolean | Use separate arrow blocks if nonzero |
DimCen | Double | Size of center mark/lines |
DimClrD | ColorCAD | Dimension line color |
DimClrE | ColorCAD | Dimension extension line color |
DimClrT | ColorCAD | Dimension text color |
DimSD1 | Boolean | Suppression of first extension line |
DimSD2 | Boolean | Suppression of second extension line |
DimSE1 | Boolean | First extension line suppressed if nonzero |
DimSE2 | Boolean | Second extension line suppressed if nonzero |
DimDec | Integer | Number of decimal places for the tolerance values of aprimary units dimension |
DimExe | Double | Extension line extension |
DimExo | Double | Extension line offset |
DimGap | Double | Dimension line gap |
DimLFac | Double | Linear measurements scale factor |
DimLwD | Double | Dimension line lineweight |
DimLwE | Double | Extension line lineweight |
DimPost | String | General dimensioning suffix |
DimScale | Double | Overall dimensioning scale factor |
DimTad | Integer | Text above dimension line if nonzero |
DimTih | Boolean | Text inside horizontal if nonzero |
DimTix | Integer | Force text inside extensions if nonzero |
DimToh | Boolean | Text outside horizontal if nonzero |
DimTxt | Double | Dimensioning text height |
DimTp | Double | Dimensioning plus tolerance |
DimTm | Double | Dimensioning minus tolerance |
DimLUnit | Double | Sets units for all dimension types except Angular: 1 = Scientific; 2 = Decimal; 3 = Engineering; 4 = Architectural; 5 = Fractional; 6 = Windows desktop |
DimDSep | Double | Single-character decimal separator used when creating dimensions whose unit format is decimale |
DimFrac | Integer | Sets the fraction format when the DimLUnit system variable is specified as 4 (Architectural) or 5 (Fractional): 0 = Horizontal stacking; 1 = Diagonal stacking; 2 = Not stacked |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Thickness | Double | Thickness |
Extrusion | FPoint | Extrusion direction point |
Elevation | FPoint | Elevation value |
GlobalWidth | Double | Global width value |
Length | Double | Length value |
Area | Double | Area value |
Parameter | Type | Description |
---|---|---|
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Point | FPoint | 3D Point defining entity |
Thickness | Double | Thickness |
Extrusion | FPoint | Extrusion direction point |
EndAngle | Double | End angle value |
StartAngle | Double | Start angle value |
RadPt | FPoint | End point of the major axis relative to the Center point for Ellipse |
Ratio | Double | Ratio of minor axis to major axis for elliptic entities or a two values ratio |
1 2 3 4 5 6 7 8 | <? xml version = "1.0" encoding = "utf-8" ?> < cadsofttools version = "2" > <!-- Description: An ellipse is specified by a Point, a RadPt, Ratio, Start and End angles.. --> < add > < cstEllipse Point = "0,0,0" RadPt = "2,0,0" Ratio = "0.5" StartAngle = "0" EndAngle = "360" /> </ add > < fittosize /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
LineTypeScale | Double | Scale for Line Type elements |
Layer | EntName | Name of a Layer |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Name | String | Name string value |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Name | String | Name string value |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
HatchName | String | Name of a Hatch pattern |
SolidFill | Boolean | Specifies if a Hatch have solid filling |
Elevation | FPoint | Elevation value |
Extrusion | FPoint | Extrusion direction point |
Offset | FPoint | 3D offset point |
Parameter | Type | Description |
---|---|---|
BoundaryPolylines | List | List of polylines generated by boundaries of a Hatch |
Boundaries | List | List of boundaries of a Hatch |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
Count | Integer | Number of members in list |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
Count | Integer | Number of members in list |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
HatchName | String | Name of a Hatch pattern |
SolidFill | Boolean | Specifies if a Hatch have solid filling |
Parameter | Type | Description |
---|---|---|
BoundaryPolylines | List | List of polylines generated by boundaries of a Hatch |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Parameter | Type | Description |
---|---|---|
CenterPoint | FPoint | 3D center point |
EndParam | FPoint | End parameter for 2D Arc and inherited curves |
Radius | Double | Radius value |
StartParam | FPoint | Start parameter for 2D Arc and inherited curves |
Clockwise | Boolean | Specifies if Helix is twisted clockwise |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
HatchName | String | Name of a Hatch pattern |
SolidFill | Boolean | Specifies if a Hatch have solid filling |
Elevation | FPoint | Elevation value |
Extrusion | FPoint | Extrusion direction point |
Offset | FPoint | 3D offset point |
PatternAngle | Double | Angle of lines in Hatch pattern |
PatternScale | Double | Scale for Hatch pattern |
Parameter | Type | Description |
---|---|---|
BoundaryPolylines | List | List of polylines generated by boundaries of a Hatch |
Boundaries | List | List of boundaries of a Hatch |
Patterns | List | List of patterns for Hatches |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | <? xml version = "1.0" encoding = "UTF-8" ?> <!-- Description: Instruction CREATEHATCH creates Hatch using selected entities as contours. Please select an entity with the mouse or with the help of xml Instruction SELECT before calling this Instruction. --> <!-- Syntax: <createhatch Hatchname="" Angle="" PatternScale="" Color=""/> Attributes: Hatchname - string - name of Hatch, default is "SOLID" which creates a solid hatch. Other names: "Box", "Escher" and others can be found in Hatch dialog box of the user interface. Angle - Double - rotation angle of the hatch PatternScale - Double - scale of the hatch pattern Color - string CADSoftTools color structure - color as an index or RGB --> < cadsofttools version = "2" > <!-- Creates a simple rectangular Solid Hatch. Handle of polyline is saved as "@1" --> < add > < cstLWPolyline HandleSave = "@1" > < SubEntities > < cstVertex Point = "140,100,0" /> < cstVertex Point = "141,100,0" /> < cstVertex Point = "141,103,0" /> < cstVertex Point = "140,103,0" /> </ SubEntities > </ cstLWPolyline > </ add > <!-- Selects polyline --> < Select Handle = "@1" /> <!-- Creates hatch --> < createhatch /> < UnSelect Handle = "@1" /> <!-- Creates a polyline for the Hatch, --> < add > < cstLWPolyline HandleSave = "@2" > < SubEntities > < cstVertex Point = "141,109,0" /> < cstVertex Point = "142,112,0" /> < cstVertex Point = "143,109,0" /> < cstVertex Point = "147,109,0" /> < cstVertex Point = "144,107,0" /> < cstVertex Point = "145,105,0" /> < cstVertex Point = "142,107,0" /> < cstVertex Point = "141,105,0" /> < cstVertex Point = "141,107,0" /> < cstVertex Point = "138,108,0" /> < cstVertex Point = "141,109,0" /> </ SubEntities > </ cstLWPolyline > </ add > <!-- Selects polyline --> < Select Handle = "@2" /> <!-- Creates hatch --> < createhatch hatchname = "BOX" Angle = "30" PatternScale = "0.1" Color = "0;34;" /> < UnSelect Handle = "@2" /> <!-- Creates and selects some contours for creating hatch. --> < add > < cstLine point = "120,120,0" point1 = "130,130,0" Color = "0;3;" HandleSave = "@3" /> < cstLine point = "120,120,0" point1 = "130,110,0" Color = "0;3;" HandleSave = "@4" /> < cstLine point = "130,110,0" point1 = "130,130,0" Color = "0;3;" HandleSave = "@5" /> < cstCircle point = "100,100,0" radius = "10" Color = "0;3;" HandleSave = "@6" /> </ add > <!-- Selects contours --> < Select Handle = "@3;@4;@5;@6" /> < createhatch hatchname = "SOLID" Color = "0;3;" /> < UnSelect Handle = "@3;@4;@5;@6;" /> < fittosize /> </ cadsofttools > |
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Thickness | Double | Thickness |
Extrusion | FPoint | Extrusion direction point |
Degree | Double | Degree value |
StartTangentVector | FPoint | Start tangent direction point |
EndTangentVector | FPoint | End tangent direction point |
Start | FPoint | Start point for Helix |
Radius | Double | Radius value |
Turns | Double | Number of turns for Helix |
TurnHeight | Double | Turn height for Helix |
Clockwise | Boolean | Specifies if Helix is twisted clockwise |
Parameter | Type | Description |
---|---|---|
ControlPoints | FPoints2DOr3D | List of Controls for spline and based entities |
FitPoints | FPoints2DOr3D | List of Fits for spline based entities |
KnotsPoints | FPoints2DOr3D | List of Knots for spline based entities |
Weights | Singles | List of Weights for spline based entities |
Parameter | Type | Description |
---|---|---|
StartPoint | FPoint | Start point, can be used with 2D and 3D entities |
EndPoint | FPoint | End point, can be used with 2D and 3D entities |
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
Closed | Boolean | Specifies if entity is closed |
Parameter | Type | Description |
---|---|---|
Vertexes | List | List of Vertexes |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Name | String | Name string value |
FileName | String | File name string |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Point | FPoint | 3D Point defining entity |
Thickness | Double | Thickness |
Extrusion | FPoint | Extrusion direction point |
UVector | FPoint | UVector for Wipeout and inherited entities |
VVector | FPoint | VVector for Wipeout and inherited entities |
Size | FPoint | Size of image for Wipeout/Ole2Frame and inherited entities |
Width | Double | Width value |
Height | Double | Height value |
Transparency | Boolean | Definition transparency for imageent |
TransparentColor | Color | Definition transparent color for imageent |
FileName | String | File name string |
ImageDef | Handle | Handle of ImageDef object of Image entity |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Adds entities --> < add > < cstSectionObjects Name = "OBJECTS" > < SubEntities > < cstDictionary name = "IMAGEDEFS" > < SubEntities > <!-- FileName="Specify the file path" --> < cstImageDef FileName = "C:\Users\Username\Documents\CADEditorX 15\Samples\image.jpg" HandleSave = "@1" /> </ SubEntities > </ cstDictionary > </ SubEntities > </ cstSectionObjects > <!-- Point - insertion point (corresponds to the bottom left corner of the image) --> <!-- Point1 - top left corner in the drawing coordinates (top left corner of the image) --> <!-- Point2 - bottom right corner in the drawing coordinates (bottom right corner of the image) --> < cstImageEnt Point = "0,0,0" imagedef = "@1" > < Calc mode = "0" Point1 = "0,100,0" Point2 = "100,0,0" /> </ cstImageEnt > < cstImageEnt Point = "0,0,0" imagedef = "@1" > < Calc mode = "1" Width = "100" Height = "400" Angle = "30" /> </ cstImageEnt > </ add > < fittosize /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Point | FPoint | 3D Point defining entity |
BlockName | EntName | Name of a Block |
Extrusion | FPoint | Extrusion direction point |
Angle | Double | Angle value |
PScale | FPoint | Scale factor |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Point | FPoint | 3D Point defining entity |
BlockName | EntName | Name of a Block |
Extrusion | FPoint | Extrusion direction point |
Angle | Double | Angle value |
PScale | FPoint | Scale factor |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Name | String | Name string value |
Color | ColorCAD | Color specified with TsgColorCAD |
Visible | Boolean | Specifies entity visibility |
Locked | Boolean | Specifies entity editability |
Frozen | Boolean | Specifies if Layer is frozen |
FrozenByNewViewPort | Boolean | Specifies if Layer is frozen for new Viewports |
XrefLink | Boolean | Specifies if entity is externally dependent on an xref |
IsPlotting | Boolean | Specifies if this layer will be plotted |
Count | Integer | Number of members in list |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | <? xml version = "1.0" encoding = "utf-8" ?> < cadsofttools version = "2" > <!-- Description: The example shows how to add a complicated Drawing Structure Data to the current drawing. --> < add > < cstSectionTables Name = "TABLES" > < SubEntities > < cstTable Name = "LAYER" > < SubEntities > < cstLayer name = "Layer2" Color = "0;3;" Visible = "False" Locked = "True" /> </ SubEntities > </ cstTable > </ SubEntities > </ cstSectionTables > </ add > </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: getting a list of all the layers of a drawing and their info. --> < get PathName = "TABLES;LAYER" /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Name | String | Name string value |
Count | Integer | Number of members in list |
PaperSpaceBlock | EntName | Layout name |
UCSOrigin | FPoint | VPort UCS origin |
UCSXDir | FPoint | Header variable. Direction of the current UCS X axis (in WCS) |
UCSYDir | FPoint | Header variable. Direction of the current UCS Y axis (in WCS) |
Parameter | Type | Description |
---|---|---|
SubEntities | List | Sub entities list |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Thickness | Double | Thickness |
Extrusion | FPoint | Extrusion direction point |
Degree | Double | Degree value |
StartTangentVector | FPoint | Start tangent direction point |
EndTangentVector | FPoint | End tangent direction point |
Arrowhead | Boolean | Specifies if arrowhead is present for Leader |
DimStyle | String | Header variable. Dimension style name |
LeaderPathType | Integer | Specifies if Leader path is spline |
ArrowType | Byte | Arrow type for entities |
DimScale | Double | Overall dimensioning scale factor |
ArrowSize | Double | Dimensioning arrow size |
Parameter | Type | Description |
---|---|---|
ControlPoints | FPoints2DOr3D | List of Controls for spline and based entities |
FitPoints | FPoints2DOr3D | List of Fits for spline based entities |
KnotsPoints | FPoints2DOr3D | List of Knots for spline based entities |
Weights | Singles | List of Weights for spline based entities |
Properties | List | Dimension style properties |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | <? xml version = "1.0" encoding = "utf-8" ?> < cadsofttools version = "2" > <!-- Description: Adding a linear leader to the drawing. --> <!-- ArrowType = DimRBlk: 0 = _CLOSEDFILLED; 1 =_CLOSEDBLANK; 2 = _CLOSED; 3 = _DOT; 4 = _ARCHTICK; 5 = _OBLIQUE; 6 = _OPEN; 7 = _ORIGIN; 8 = _ORIGIN2; 9 = _OPEN90; 10 = _OPEN30; 11 = _DOTSMALL; 12 = _DOTBLANK; 13 = _SMALL; 14 = _BOXBLANK; 15 = _BOXFILLED; 16 = _DATUMBLANK; 17 = _DATUMFILLED; 18 = _INTEGRAL; 20 = _NONE.--> < add > <!-- Simplified adding of a leader --> < cstLeader DimStyle = "STANDARD" ArrowType = "10" ArrowSize = "2.8" color = "0;1" > < ControlPoints Values = "0,20|5,28|10,28" /> </ cstLeader > <!-- Adds a leader with properties by dimension style. When the instruction "Properties" is used, the properties of the instruction "cstLeader" are overridden and a leader is created according to the set Dimension Style. --> < cstLeader DimStyle = "GENISO" HandleSave = "@1" > < ControlPoints Values = "0,10|5,18|10,18" /> < Properties /> </ cstLeader > <!-- Adds a leader and overrides the values of the style properties. --> < cstLeader DimStyle = "GENISO" > < ControlPoints Values = "0,0|5,8|10,8" /> < Properties DimRBlk = "_ORIGIN2" DimAsz = "4" /> </ cstLeader > </ add > <!-- Selects the leader with handle "@1" and changes the type of the leader using the instruction "Properties". --> < select Handle = "@1" /> < apply color = "0;4" > < Properties DimRBlk = "_DATUMFILLED" DimAsz = "3" /> </ apply > < unselect handle = "@1" /> < fittosize /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Point | FPoint | 3D Point defining entity |
Thickness | Double | Thickness |
Extrusion | FPoint | Extrusion direction point |
Point1 | FPoint | 3D point defining entity |
Length | Double | Length value |
Angle | Double | Angle value |
1 2 3 4 5 6 7 8 | <? xml version = "1.0" encoding = "utf-8" ?> < cadsofttools version = "2" > <!-- Description: A Line is specified by two Points. --> < add > < cstLine point = "0,0,0" Point1 = "10,5,0" /> </ add > < fittosize /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Name | String | Name string value |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Thickness | Double | Thickness |
Extrusion | FPoint | Extrusion direction point |
Elevation | FPoint | Elevation value |
GlobalWidth | Double | Global width value |
Length | Double | Length value |
Area | Double | Area value |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Point | FPoint | 3D Point defining entity |
BlockName | EntName | Name of a Block |
Extrusion | FPoint | Extrusion direction point |
Angle | Double | Angle value |
PScale | FPoint | Scale factor |
ColumnCount | Integer | Number of columns |
RowCount | Integer | Number of rows |
ColSpacing | Double | Spacing for columns |
RowSpacing | Double | Spacing for rows |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Point | FPoint | 3D Point defining entity |
BlockName | EntName | Name of a Block |
Extrusion | FPoint | Extrusion direction point |
Angle | Double | Angle value |
PScale | FPoint | Scale factor |
Justify | Integer | Specifies justification type |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Name | String | Name string value |
Color | ColorCAD | Color specified with TsgColorCAD |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
HatchName | String | Name of a Hatch pattern |
SolidFill | Boolean | Specifies if a Hatch have solid filling |
Elevation | FPoint | Elevation value |
Extrusion | FPoint | Extrusion direction point |
Offset | FPoint | 3D offset point |
PatternAngle | Double | Angle of lines in Hatch pattern |
PatternScale | Double | Scale for Hatch pattern |
FillColor | ColorCAD | Fill color specified with TsgColorCAD |
Parameter | Type | Description |
---|---|---|
BoundaryPolylines | List | List of polylines generated by boundaries of a Hatch |
Boundaries | List | List of boundaries of a Hatch |
Patterns | List | List of patterns for Hatches |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Point | FPoint | 3D Point defining entity |
BlockName | EntName | Name of a Block |
Extrusion | FPoint | Extrusion direction point |
Angle | Double | Angle value |
PScale | FPoint | Scale factor |
Height | Double | Height value |
StyleName | String | Name of a Style |
BackgroundFlags | ColorCAD | Background fill setting: 0 = Background fill off, 1 = Use background fill color, 2 = Use drawing window color as background fill color |
BackgroundColor | ColorCAD | Background color |
Scale | Double | Scale value |
Transparency | Boolean | Definition transparency for imageent |
RectWidth | Double | Width of a rectangle |
Align | Word | Align |
TextValue | String | Text string value |
1 2 3 4 5 6 7 8 | <? xml version = "1.0" encoding = "utf-8" ?> <!-- Description: An Mtext is specified by a Point, a Height and a Textvalue. --> < cadsofttools version = "2" > < add > < cstMText Point = "0,0" Height = "3" TextValue = "MultilineText" /> </ add > < fittosize /> </ cadsofttools > |
1 2 3 4 5 6 7 8 | <? xml version = "1.0" encoding = "utf-8" ?> <!-- Description: The following code uses many optional parametres for MText. --> < cadsofttools version = "2" > < add > < cstMText Point = "10.5,5,1.33" Layer = "Layer1" color = "1;(145,30,45)" LineWeight = "0.23" LineType = "byblock" LineTypeScale = "0.25" Extrusion = "1,2,1" Angle = "15" PScale = "1,2,1" Height = "3.5" StyleName = "STANDARD" RectWidth = "20.1" TextValue = "MultilineText" /> </ add > < fittosize /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Point | FPoint | 3D Point defining entity |
Size | FPoint | Size of image for Wipeout/Ole2Frame and inherited entities |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Name | String | Name string value |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Point | FPoint | 3D Point defining entity |
Thickness | Double | Thickness |
Extrusion | FPoint | Extrusion direction point |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Name | String | Name string value |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Name | String | Name string value |
plPageSetupName | String | pl Page Setup Name |
plPrintOrConfigName | String | pl Print Or Config Name |
plLayoutFlags | Int64 | Flags |
plPaperUnits | Byte | Enum |
plStandardScaleType | Byte | pl Standard Scale Type |
plNumerator | Double | pl Numerator |
plDenominator | Double | pl Denominator |
plPaperSizeName | String | pl Paper Size Name |
plViewName | String | pl View Name |
plPrintableMargin | F2DRect | pl Printable Margin |
plPaperSize | F2DPoint | pl Paper Size |
plOrigin | F2DPoint | pl Origin |
plWindowAreaMin | F2DPoint | pl Window Area Min |
plWindowAreaMax | F2DPoint | pl Window Area Max |
plRotation | Byte | Enum |
plType | Byte | Enum |
plCurrentStyleSheet | String | pl Current Style Sheet |
plShadeMode | Integer | pl Shade Mode |
plShadeResolutionLevel | Integer | pl Shade Resolution Level |
plShadeCustomDPI | Integer | pl Shade Custom DPI |
plFloatingPointScaleFactor | Double | pl Floating Point Scale Factor |
plPaperImageOrigin | F2DPoint | pl Paper Image Origin |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Point | FPoint | 3D Point defining entity |
Thickness | Double | Thickness |
Extrusion | FPoint | Extrusion direction point |
1 2 3 4 5 6 7 8 | <? xml version = "1.0" encoding = "utf-8" ?> < cadsofttools version = "2" > <!-- Description: Adds a Point. --> < add > < cstPoint Point = "-0.56,1.9" /> </ add > < fittosize /> </ cadsofttools > |
1 2 3 4 5 6 7 | <? xml version = "1.0" encoding = "utf-8" ?> < cadsofttools version = "2" > <!-- Description: When a Point is added, the maximal number of parameters is used. --> < add > < cstPoint Point = "-0.56,1.69,-10.15" Layer = "Layer1" Color = "0;5" LineWeight = "0.25" LineType = "byblock" LineTypeScale = "0.3" /> </ add > </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Thickness | Double | Thickness |
Extrusion | FPoint | Extrusion direction point |
Elevation | FPoint | Elevation value |
GlobalWidth | Double | Global width value |
Length | Double | Length value |
Area | Double | Area value |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <? xml version = "1.0" encoding = "utf-8" ?> < cadsofttools version = "2" > <!-- Description: The instruction ADD adds entities and Drawing Structure Data to the current drawing. There are many examples of adding particular classes with ADD instruction which are described in Classes examples. --> < add > < cstLWPolyline Point = "0,0" Thickness = "5" > < SubEntities > < cstVertex Point = "0,0" /> < cstVertex Point = "10,0" /> < cstVertex Point = "10,10" /> </ SubEntities > </ cstLWPolyline > </ add > < fittosize /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
HatchName | String | Name of a Hatch pattern |
SolidFill | Boolean | Specifies if a Hatch have solid filling |
Parameter | Type | Description |
---|---|---|
BoundaryPolylines | List | List of polylines generated by boundaries of a Hatch |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Point | FPoint | 3D Point defining entity |
Thickness | Double | Thickness |
Extrusion | FPoint | Extrusion direction point |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Name | String | Name string value |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Point | FPoint | 3D Point defining entity |
Thickness | Double | Thickness |
Extrusion | FPoint | Extrusion direction point |
Point1 | FPoint | 3D point defining entity |
Length | Double | Length value |
Angle | Double | Angle value |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Point | FPoint | 3D Point defining entity |
Thickness | Double | Thickness |
Extrusion | FPoint | Extrusion direction point |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Name | String | Name string value |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Name | String | Name string value |
Parameter | Type | Description |
---|---|---|
Name | String | Name string value |
ACADVer | String | Header variable. The AutoCAD drawing database version number |
CodePage | String | Header variable. Drawing code page |
TextStyle | String | Header variable. Current text style name |
CLayer | String | Header variable. Current layer name |
CELType | String | Header variable. Entity linetype name, or BYBLOCK or BYLAYER |
CEColor | ColorCAD | Header variable. Current entity color |
CELTScale | Double | Header variable. Current entity linetype scale |
CELWeight | Double | Header variable. Lineweight of new objects |
DimStyle | String | Header variable. Dimension style name |
DIMTXSTY | String | Dimension text style |
DimAssoc | Byte | Associativity of dimension objects |
DimAlt | Boolean | Alternate unit dimensioning performed if nonzero |
DimAltF | Double | Alternate unit scale factor |
DimAPost | String | Alternate dimensioning suffix |
DimAsz | Double | Dimensioning arrow size |
DimSah | Boolean | Use separate arrow blocks if nonzero |
DimCen | Double | Size of center mark/lines |
DimClrD | ColorCAD | Dimension line color |
DimClrE | ColorCAD | Dimension extension line color |
DimClrT | ColorCAD | Dimension text color |
DimSD1 | Boolean | Suppression of first extension line |
DimSD2 | Boolean | Suppression of second extension line |
DimSE1 | Boolean | First extension line suppressed if nonzero |
DimSE2 | Boolean | Second extension line suppressed if nonzero |
DimDec | Integer | Number of decimal places for the tolerance values of aprimary units dimension |
DimExe | Double | Extension line extension |
DimExo | Double | Extension line offset |
DimGap | Double | Dimension line gap |
DimLFac | Double | Linear measurements scale factor |
DimLwD | Double | Dimension line lineweight |
DimLwE | Double | Extension line lineweight |
DimPost | String | General dimensioning suffix |
DimScale | Double | Overall dimensioning scale factor |
DimTad | Integer | Text above dimension line if nonzero |
DimTih | Boolean | Text inside horizontal if nonzero |
DimTix | Integer | Force text inside extensions if nonzero |
DimToh | Boolean | Text outside horizontal if nonzero |
DimTxt | Double | Dimensioning text height |
DimTp | Double | Dimensioning plus tolerance |
DimTm | Double | Dimensioning minus tolerance |
DimLUnit | Double | Sets units for all dimension types except Angular: 1 = Scientific; 2 = Decimal; 3 = Engineering; 4 = Architectural; 5 = Fractional; 6 = Windows desktop |
DimDSep | Double | Single-character decimal separator used when creating dimensions whose unit format is decimale |
DimFrac | Integer | Sets the fraction format when the DimLUnit system variable is specified as 4 (Architectural) or 5 (Fractional): 0 = Horizontal stacking; 1 = Diagonal stacking; 2 = Not stacked |
EXTMIN | FPoint | Header variable. X, Y, and Z drawing extents lower-left corner (in WCS) |
EXTMAX | FPoint | Header variable. X, Y, and Z drawing extents upper-right corner (in WCS) |
FILLETRAD | Double | Header variable. Fillet radius |
FILLMODE | Boolean | Specifies whether hatches and fills, 2D solids, and wide polylines are filled in, default True |
LWDISPLAY | Boolean | Controls the display of lineweights |
InsUnits | Integer | Header variable. Default drawing units for AutoCAD DesignCenter blocks |
LTScale | Double | Header variable. Global linetype scale |
Measurement | Integer | Header variable. Drawing units: 0 = English; 1 = Metric |
PDMODE | Integer | Header variable. Point display mode |
PDSIZE | Double | Header variable. Point display size |
TextSize | Double | Header variable. Default text height |
TileMode | Integer | Header variable. 1 for previous release compatibility mode; 0 otherwise |
UCSORG | FPoint | Header variable. Origin of current UCS (in WCS) |
UCSXDir | FPoint | Header variable. Direction of the current UCS X axis (in WCS) |
UCSYDir | FPoint | Header variable. Direction of the current UCS Y axis (in WCS) |
InsBase | FPoint | Header variable. Insertion base set by BASE command (in WCS) |
Attmode | Integer | Header variable. Attribute visibility: 0 = None 1 = Normal 2 = All |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Name | String | Name string value |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Name | String | Name string value |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Point | FPoint | 3D Point defining entity |
Height | Double | Height value |
Rotation | Double | Rotation angle |
WidthFactor | Double | Width factor for Style |
ObliqueAngle | Double | Oblique angle |
Text | String | Text string |
Point1 | FPoint | 3D point defining entity |
HAlign | Undefined | HAlign |
VAlign | Undefined | VAlign |
StyleName | String | Name of a Style |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Point | FPoint | 3D Point defining entity |
Thickness | Double | Thickness |
Extrusion | FPoint | Extrusion direction point |
Point1 | FPoint | 3D point defining entity |
Length | Double | Length value |
Angle | Double | Angle value |
Point2 | FPoint | 3D point defining entity |
Point3 | FPoint | 3D point defining entity |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Name | String | Name string value |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Thickness | Double | Thickness |
Extrusion | FPoint | Extrusion direction point |
Degree | Double | Degree value |
StartTangentVector | FPoint | Start tangent direction point |
EndTangentVector | FPoint | End tangent direction point |
Parameter | Type | Description |
---|---|---|
ControlPoints | FPoints2DOr3D | List of Controls for spline and based entities |
FitPoints | FPoints2DOr3D | List of Fits for spline based entities |
KnotsPoints | FPoints2DOr3D | List of Knots for spline based entities |
Weights | Singles | List of Weights for spline based entities |
1 2 3 4 5 6 7 8 9 10 11 | <? xml version = "1.0" encoding = "utf-8" ?> <!-- Description: A circle is specified by a Point and a Radius. --> < cadsofttools version = "2" > <!-- Adds entities --> < add > < cstSpline Point = "0,0,0" StartTangentVector = "0,0,0" EndTangentVector = "0,0,0" > < FitPoints Type = "FPoint" Values = "0,0,0|0,10.5,0|8.1,-10,0|15,10,0|20,-10,0" /> </ cstSpline > </ add > < fittosize /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Name | String | Name string value |
WidthFactor | Double | Width factor for Style |
ObliqueAngle | Double | Oblique angle |
TextGenFlags | Integer | Text generation flags for Style |
LastHeightUsed | Double | Last used font height for Style |
PrimaryFont | String | Primary font file name for Style |
BigFont | String | Bigfont file name for Style |
FontName | String | Font name |
FixedHeight | Double | Fixed text heigh for Style |
FontStyle | Integer | Font style |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: Setting the font (regular, italic, bold, bold italic) when adding a text style. It is compulsory to use the parameters PrimaryFont and FontStyle. Names for other fonts in PrimaryFont can differ from FontName. --> < add > < cstSectionTables Name = "TABLES" > < SubEntities > < cstTable Name = "STYLE" > < SubEntities > < cstStyle Name = "STANDARD-1" PrimaryFont = "arial.ttf" FontName = "Arial" FontStyle = "0" /> < cstStyle Name = "STANDARD-2" PrimaryFont = "ariali.ttf" FontName = "Arial" FontStyle = "1" /> < cstStyle Name = "STANDARD-3" PrimaryFont = "arialbd.ttf" FontName = "Arial" FontStyle = "2" /> < cstStyle Name = "STANDARD-4" PrimaryFont = "arialbi.ttf" FontName = "Arial" FontStyle = "3" /> </ SubEntities > </ cstTable > </ SubEntities > </ cstSectionTables > </ add > </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Point | FPoint | 3D Point defining entity |
BlockName | EntName | Name of a Block |
Extrusion | FPoint | Extrusion direction point |
Angle | Double | Angle value |
PScale | FPoint | Scale factor |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Name | String | Name string value |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Point | FPoint | 3D Point defining entity |
Height | Double | Height value |
Rotation | Double | Rotation angle |
WidthFactor | Double | Width factor for Style |
ObliqueAngle | Double | Oblique angle |
Text | String | Text string |
Point1 | FPoint | 3D point defining entity |
HAlign | Undefined | HAlign |
VAlign | Undefined | VAlign |
StyleName | String | Name of a Style |
1 2 3 4 5 6 7 8 9 | <? xml version = "1.0" encoding = "utf-8" ?> <!-- Description: Demonstrates how to add a single-line text. --> < cadsofttools version = "2" > < add > < cstText Point = "0,0" Height = "3" Rotation = "90" ObliqueAngle = "0" Text = "Single Line Text" StyleName = "STANDARD" Color = "0;5;" /> < cstText Point = "5,15" Height = "1.7" ObliqueAngle = "15" WidthFactor = "0.9" Text = "Simbols: \U+2205, %%d, %%p" StyleName = "GOST" LineWeight = "0.53" /> </ add > < fittosize /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Point | FPoint | 3D Point defining entity |
BlockName | EntName | Name of a Block |
Extrusion | FPoint | Extrusion direction point |
Angle | Double | Angle value |
PScale | FPoint | Scale factor |
Height | Double | Height value |
StyleName | String | Name of a Style |
BackgroundFlags | ColorCAD | Background fill setting: 0 = Background fill off, 1 = Use background fill color, 2 = Use drawing window color as background fill color |
BackgroundColor | ColorCAD | Background color |
Scale | Double | Scale value |
Transparency | Boolean | Definition transparency for imageent |
RectWidth | Double | Width of a rectangle |
Align | Word | Align |
TextValue | String | Text string value |
DimStyle | String | Header variable. Dimension style name |
DimClrD | ColorCAD | Dimension line color |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Point | FPoint | 3D Point defining entity |
Thickness | Double | Thickness |
Extrusion | FPoint | Extrusion direction point |
Point1 | FPoint | 3D point defining entity |
Length | Double | Length value |
Angle | Double | Angle value |
Point2 | FPoint | 3D point defining entity |
Point3 | FPoint | 3D point defining entity |
Parameter | Type | Description |
---|---|---|
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Point | FPoint | 3D Point defining entity |
Bulge | Double | Vertex bulge value |
StartWidth | Double | Start width for a segment |
EndWidth | Double | End width for a segment |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
PSpaceCenter | FPoint | Viewport center point on layout |
MSpaceCenter | FPoint | Viewport model view area center point |
ViewDirection | FPoint | Viewport view direction vector (in WCS) |
ViewTarget | FPoint | Viewport view target point (in WCS) |
PSpaceWidth | Double | Viewport width on layout |
PSpaceHeight | Double | Viewport height on layout |
FrontClipPlane | Double | Viewport front cut off plane |
BackClipPlane | Double | Viewport back cut off plane |
MSpaceHeight | Double | Viewport model view area height |
ViewTwistAngle | Double | Viewport view twist angle |
Scale | Double | Scale value |
TurnsOff | Boolean | Turns the viewport off |
StatusField | Integer | Viewport status field |
ThisID | Integer | Viewport ID |
ClippingBoundaryHandle | Handle | Handle of an entity that serves as a clipping boundary for the Viewport |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
PSpaceCenter | FPoint | Viewport center point on layout |
MSpaceCenter | FPoint | Viewport model view area center point |
ViewDirection | FPoint | Viewport view direction vector (in WCS) |
ViewTarget | FPoint | Viewport view target point (in WCS) |
PSpaceWidth | Double | Viewport width on layout |
PSpaceHeight | Double | Viewport height on layout |
FrontClipPlane | Double | Viewport front cut off plane |
BackClipPlane | Double | Viewport back cut off plane |
MSpaceHeight | Double | Viewport model view area height |
ViewTwistAngle | Double | Viewport view twist angle |
Scale | Double | Scale value |
TurnsOff | Boolean | Turns the viewport off |
StatusField | Integer | Viewport status field |
ThisID | Integer | Viewport ID |
ClippingBoundaryHandle | Handle | Handle of an entity that serves as a clipping boundary for the Viewport |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Name | String | Name string value |
CircleZoomPercent | Integer | VPort circle zoom percent |
UCSOrigin | FPoint | VPort UCS origin |
UCSXDir | FPoint | Header variable. Direction of the current UCS X axis (in WCS) |
UCSYDir | FPoint | Header variable. Direction of the current UCS Y axis (in WCS) |
UCSVP | Boolean | Display UCS icon at UCS origin flag |
ViewAspectRatio | Double | VPort view aspect ratio |
ViewCenterPoint | FPoint | VPort view center point |
ViewDirection | FPoint | Viewport view direction vector (in WCS) |
ViewTarget | FPoint | Viewport view target point (in WCS) |
ViewHeight | Double | VPort view height |
ViewTwistAngle | Double | Viewport view twist angle |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Name | String | Name string value |
CircleZoomPercent | Integer | VPort circle zoom percent |
UCSOrigin | FPoint | VPort UCS origin |
UCSXDir | FPoint | Header variable. Direction of the current UCS X axis (in WCS) |
UCSYDir | FPoint | Header variable. Direction of the current UCS Y axis (in WCS) |
UCSVP | Boolean | Display UCS icon at UCS origin flag |
ViewAspectRatio | Double | VPort view aspect ratio |
ViewCenterPoint | FPoint | VPort view center point |
ViewDirection | FPoint | Viewport view direction vector (in WCS) |
ViewTarget | FPoint | Viewport view target point (in WCS) |
ViewHeight | Double | VPort view height |
ViewTwistAngle | Double | Viewport view twist angle |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Point | FPoint | 3D Point defining entity |
Thickness | Double | Thickness |
Extrusion | FPoint | Extrusion direction point |
UVector | FPoint | UVector for Wipeout and inherited entities |
VVector | FPoint | VVector for Wipeout and inherited entities |
Size | FPoint | Size of image for Wipeout/Ole2Frame and inherited entities |
Width | Double | Width value |
Height | Double | Height value |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Name | String | Name string value |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Layer | EntName | Name of a Layer |
Color | ColorCAD | Color specified with TsgColorCAD |
HyperLink | String | HyperLink |
LineTypeScale | Double | Scale for Line Type elements |
Point | FPoint | 3D Point defining entity |
Thickness | Double | Thickness |
Extrusion | FPoint | Extrusion direction point |
Point1 | FPoint | 3D point defining entity |
Length | Double | Length value |
Angle | Double | Angle value |
Parameter | Type | Description |
---|---|---|
LineWeight | Double | Line Weight in mm |
Handle | EntHandle | Handle value |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
LineType | EntName | Name of a LineType |
Name | String | Name string value |
FileName | String | File name string |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: Adding a file to the current drawing as an external reference. The path to the Xref is specified in the BLOCKS section, the Flags and Name parameters are compulsory. --> < add > < cstSectionBlocks Name = "BLOCKS" > < SubEntities > < cstBlock Flags = "4" Name = "xref" > < SubEntities > <!-- FileName="Specify the file path" --> < cstXref FileName = "C:\Users\Username\Documents\CADEditorX 15\Samples\Gasket.dwg" /> </ SubEntities > </ cstBlock > </ SubEntities > </ cstSectionBlocks > <!-- Adds entities Model --> < cstInsert Point = "0.5,-0.5,0" BlockName = "xref" Extrusion = "0,0,1" Angle = "0" PScale = "1,1,1" /> </ add > < fittosize /> </ cadsofttools > |
Parameter | Type | Description |
---|---|---|
ACADVer | String | Header variable. The AutoCAD drawing database version number |
Align | Word | Align |
AlphaBlend | Integer | AlphaBlend dependent on PathKey defines one of the entity visual representations |
Angle | Double | Angle value |
AngleFromXY | Double | Angle from plane XY |
AngleInXY | Double | Angle in plane XY |
AngularPrecision | Double | Angular precision of meshes and polylines |
AngularTolerance | Double | Angular tolerance of modeller operations |
Application | Procedure | Application |
ArcDefPoint | FPoint | Point defining dimension arc for angular Dimension |
Area | Double | Area value |
AreaOOC | Double | Area value, for BREP topology |
Arrowhead | Boolean | Specifies if arrowhead is present for Leader |
ArrowSize | Double | Dimensioning arrow size |
ArrowType | Byte | Arrow type for entities |
Attmode | Integer | Header variable. Attribute visibility: 0 = None 1 = Normal 2 = All |
Attribs | List | List of attributes |
AttValue | String | Attribute or attribute definition value string |
AxisX | FPoint | AxisX |
AxisX2D | F2DPoint | Axis U vector 2D |
AxisY | FPoint | AxisY |
AxisY2D | F2DPoint | Axis V vector 2D |
AxisZ | FPoint | AxisZ |
BackClipPlane | Double | Viewport back cut off plane |
BackgroundColor | ColorCAD | Background color |
BackgroundFlags | ColorCAD | Background fill setting: 0 = Background fill off, 1 = Use background fill color, 2 = Use drawing window color as background fill color |
BasePoint | FPoint | Base 3D point |
BigFont | String | Bigfont file name for Style |
BlockName | EntName | Name of a Block |
BLOCKS | List | Blocks section |
Boundaries | List | List of boundaries of a Hatch |
Boundary | List | List of elements forming a boundary of a Hatch |
BoundaryPolyline | FPoints2DOr3D | List of polyline points generated by boundaries of a Hatch |
BoundaryPolylines | List | List of polylines generated by boundaries of a Hatch |
Box | FRect | Entity box |
Box3D | FRect | Box 3d dependent on PathKey defines one of the entity visual representations |
Bulge | Double | Vertex bulge value |
Calc | Procedure | Alternative creation method |
CanShow | Boolean | Can show |
CEColor | ColorCAD | Header variable. Current entity color |
CELTScale | Double | Header variable. Current entity linetype scale |
CELType | String | Header variable. Entity linetype name, or BYBLOCK or BYLAYER |
CELWeight | Double | Header variable. Lineweight of new objects |
CenterMass | FPoint | Center mass point, for BREP topology |
CenterPoint | FPoint | 3D center point |
CenterPoint2D | F2DPoint | 2D center point |
CircleLength | Double | Length of a circle |
CircleZoomPercent | Integer | VPort circle zoom percent |
CLayer | String | Header variable. Current layer name |
ClippingBoundaryHandle | Handle | Handle of an entity that serves as a clipping boundary for the Viewport |
ClipRect | FRect | Entity clip rect |
Clockwise | Boolean | Specifies if Helix is twisted clockwise |
Closed | Boolean | Specifies if entity is closed |
Code | String | Code |
CodePage | String | Header variable. Drawing code page |
Color | ColorCAD | Color specified with TsgColorCAD |
ColorVector | FPoint | Color vector |
ColSpacing | Double | Spacing for columns |
ColumnCount | Integer | Number of columns |
ControlPoints | FPoints2DOr3D | List of Controls for spline and based entities |
CosAngle | Double | Cosine of the angle at the apex of the cone for cone surface or cone helix |
Count | Integer | Number of members in list |
CountU | Integer | Number of U-series of spline surface control points |
CountV | Integer | Number of V-series of spline surface control points |
Dash | Double | Dash element from list of elements for dotted lines |
Data | String | Data |
Deflection | Double | Deflection value |
DefPoint | FPoint | Definition point for Dimension |
Degree | Double | Degree value |
DegreeU | Double | U degree value of spline surface |
DegreeV | Double | V degree value of spline surface |
DeltaX | Double | Delta X |
DeltaY | Double | Delta Y |
DeltaZ | Double | Delta Z |
Description | Color | Description |
DictValue | String | Dictionary value |
DimAlt | Boolean | Alternate unit dimensioning performed if nonzero |
DimAltF | Double | Alternate unit scale factor |
DimAPost | String | Alternate dimensioning suffix |
DimAssoc | Byte | Associativity of dimension objects |
DimAsz | Double | Dimensioning arrow size |
DimBlk | EntName | Arrow block name |
DimBlk1 | EntName | First arrow block name |
DimBlk2 | EntName | Second arrow block name |
DimCen | Double | Size of center mark/lines |
DimClrD | ColorCAD | Dimension line color |
DimClrE | ColorCAD | Dimension extension line color |
DimClrT | ColorCAD | Dimension text color |
DimDec | Integer | Number of decimal places for the tolerance values of aprimary units dimension |
DimDSep | Double | Single-character decimal separator used when creating dimensions whose unit format is decimale |
DimExe | Double | Extension line extension |
DimExo | Double | Extension line offset |
DimFrac | Integer | Sets the fraction format when the DimLUnit system variable is specified as 4 (Architectural) or 5 (Fractional): 0 = Horizontal stacking; 1 = Diagonal stacking; 2 = Not stacked |
DimGap | Double | Dimension line gap |
DimLFac | Double | Linear measurements scale factor |
DimLUnit | Double | Sets units for all dimension types except Angular: 1 = Scientific; 2 = Decimal; 3 = Engineering; 4 = Architectural; 5 = Fractional; 6 = Windows desktop |
DimLwD | Double | Dimension line lineweight |
DimLwE | Double | Extension line lineweight |
DimPost | String | General dimensioning suffix |
DimRBlk | EntName | Arrow block name for leaders |
DimSah | Boolean | Use separate arrow blocks if nonzero |
DimScale | Double | Overall dimensioning scale factor |
DimScaleOverall | Double | Overall dimensioning scale factor |
DimSD1 | Boolean | Suppression of first extension line |
DimSD2 | Boolean | Suppression of second extension line |
DimSE1 | Boolean | First extension line suppressed if nonzero |
DimSE2 | Boolean | Second extension line suppressed if nonzero |
DimStyle | String | Header variable. Dimension style name |
DimTad | Integer | Text above dimension line if nonzero |
DimTih | Boolean | Text inside horizontal if nonzero |
DimTix | Integer | Force text inside extensions if nonzero |
DimTm | Double | Dimensioning minus tolerance |
DimToh | Boolean | Text outside horizontal if nonzero |
DimTp | Double | Dimensioning plus tolerance |
DIMTXSTY | String | Dimension text style |
DimTxt | Double | Dimensioning text height |
Direction | FPoint | Direction vector 3D |
Distance | Double | Distance |
EedList | Procedure | Eed List |
Elevation | FPoint | Elevation value |
EndAngle | Double | End angle value |
EndParam | FPoint | End parameter for 2D Arc and inherited curves |
EndPoint | FPoint | End point, can be used with 2D and 3D entities |
EndTangentVector | FPoint | End tangent direction point |
EndWidth | Double | End width for a segment |
EntData | StringInternal | Entity data |
ENTITIES | List | Entities section |
ExtData | StringInternal | Extended data |
EXTMAX | FPoint | Header variable. X, Y, and Z drawing extents upper-right corner (in WCS) |
EXTMIN | FPoint | Header variable. X, Y, and Z drawing extents lower-left corner (in WCS) |
Extrusion | FPoint | Extrusion direction point |
FileName | String | File name string |
FillColor | ColorCAD | Fill color specified with TsgColorCAD |
FILLETRAD | Double | Header variable. Fillet radius |
FILLMODE | Boolean | Specifies whether hatches and fills, 2D solids, and wide polylines are filled in, default True |
FillStyleIndex | Integer | Fill Style Index |
FitPoints | FPoints2DOr3D | List of Fits for spline based entities |
FixedHeight | Double | Fixed text heigh for Style |
Flags | Integer | Flags are not suggested for usage. They have different meanings for particular entities, most of them are represented also directly via other attributes. |
FocalLength | Double | Parabola focal length value |
FontName | String | Font name |
FontStyle | Integer | Font style |
FrontClipPlane | Double | Viewport front cut off plane |
Frozen | Boolean | Specifies if Layer is frozen |
FrozenByNewViewPort | Boolean | Specifies if Layer is frozen for new Viewports |
GlobalWidth | Double | Global width value |
GradientAngle | Double | Angle in gradient |
GradientOneColor | ColorCAD | The first color for the gradient |
GradientTwoColor | ColorCAD | A second color for the gradient |
GradientTypeName | String | Gradient type can have the following values:CURVED, CYLINDER, HEMISPHERICAL, LINEAR, SPHERICALINVCURVED, INVCYLINDER, INVHEMISPHERICAL, INVSPHERICAL |
GradientUseCenter | Boolean | Gradient use center |
HAlign | Undefined | HAlign |
Handle | EntHandle | Handle value |
HandleSave | EntHandle | Value for alternative access to a Handle |
HatchName | String | Name of a Hatch pattern |
HEADER | List | Header section |
Height | Double | Height value |
HelixStep | Double | Distance between adjacent turns of the helix curve |
HyperLink | String | HyperLink |
ImageDef | Handle | Handle of ImageDef object of Image entity |
InsBase | FPoint | Header variable. Insertion base set by BASE command (in WCS) |
InsertsCount | Integer | Inserts count |
InsUnits | Integer | Header variable. Default drawing units for AutoCAD DesignCenter blocks |
Interval | String | Interval of curve parameters |
Interval1 | String | Interval of parameters for first curve |
Interval2 | String | Interval of parameters for second curve |
Interval2d | String | Interval of UV values |
Interval3d | String | Interval of XYZ values |
IsoLinesU | Integer | U IsoLines count |
IsoLinesV | Integer | U IsoLines count |
IsPlotting | Boolean | Specifies if this layer will be plotted |
IsPrimary | Boolean | Edge representation is primary |
IsSolid | Boolean | Specifies if pattern of a dotted line is solid |
Item | Procedure | Item |
Justify | Integer | Specifies justification type |
Knot | Double | Knot value for spline based entities |
KnotsPoints | FPoints2DOr3D | List of Knots for spline based entities |
Kx | Double | Hyperbola real axis length value |
Ky | Double | Hyperbola imaginary axis length value |
LastHeightUsed | Double | Last used font height for Style |
Layer | EntName | Name of a Layer |
LayoutScale | Color | Layout units scale |
LeaderPathType | Integer | Specifies if Leader path is spline |
Length | Double | Length value |
LinDefPoint1 | FPoint | Start point of the first extension line for Dimension |
LinDefPoint2 | FPoint | Start point of the second extension line for Dimension |
LineAngle | Double | Hatch line tilt angle |
LinearPrecision | Double | Linear precision of meshes and polylines |
LinearTolerance | Double | Linear tolerance of modeller operations |
Lines | List | List of elements for dotted lines |
LineType | EntName | Name of a LineType |
LineTypeScale | Double | Scale for Line Type elements |
LineWeight | Double | Line Weight in mm |
Locked | Boolean | Specifies entity editability |
LTScale | Double | Header variable. Global linetype scale |
LWDISPLAY | Boolean | Controls the display of lineweights |
MajorPoint | FPoint | End point of the major axis relative to the Center point for 2D Ellipse |
MajorRadius | Double | Major radius value of torus |
MatProp | Double | Material name |
Measurement | Integer | Header variable. Drawing units: 0 = English; 1 = Metric |
MiddlePoint | FPoint | Middle point of dimension text for Dimension |
MinorRadius | Double | Minor radius value of torus |
Mode | Integer | Mode for alternative creation method |
ModelScale | Color | Model units scale |
MSpaceCenter | FPoint | Viewport model view area center point |
MSpaceHeight | Double | Viewport model view area height |
Name | String | Name string value |
Normal | FPoint | Normal vector 3D |
OBJECTS | List | Objects section |
ObliqueAngle | Double | Oblique angle |
Offset | FPoint | 3D offset point |
OriginalName | String | Original name, for BREP topology |
PaperSpaceBlock | EntName | Layout name |
ParamT | Double | Curve point parameter value |
PathKey | Handle | Individual identifier of the visual representation of the modeler object |
Pattern | List | List of elements of a Hatch pattern |
PatternAngle | Double | Angle of lines in Hatch pattern |
Patterns | List | List of patterns for Hatches |
PatternScale | Double | Scale for Hatch pattern |
PDMODE | Integer | Header variable. Point display mode |
PDSIZE | Double | Header variable. Point display size |
Perimeter | Double | Perimeter |
Periodic | Boolean | Specifies if Spline based entity is periodic |
plCurrentStyleSheet | String | pl Current Style Sheet |
plDenominator | Double | pl Denominator |
plFloatingPointScaleFactor | Double | pl Floating Point Scale Factor |
plLayoutFlags | Int64 | Flags |
plNumerator | Double | pl Numerator |
plOrigin | F2DPoint | pl Origin |
plPageSetupName | String | pl Page Setup Name |
plPaperImageOrigin | F2DPoint | pl Paper Image Origin |
plPaperSize | F2DPoint | pl Paper Size |
plPaperSizeName | String | pl Paper Size Name |
plPaperUnits | Byte | Enum |
plPrintableMargin | F2DRect | pl Printable Margin |
plPrintOrConfigName | String | pl Print Or Config Name |
plRotation | Byte | Enum |
plShadeCustomDPI | Integer | pl Shade Custom DPI |
plShadeMode | Integer | pl Shade Mode |
plShadeResolutionLevel | Integer | pl Shade Resolution Level |
plStandardScaleType | Byte | pl Standard Scale Type |
plType | Byte | Enum |
plViewName | String | pl View Name |
plWindowAreaMax | F2DPoint | pl Window Area Max |
plWindowAreaMin | F2DPoint | pl Window Area Min |
Point | FPoint | 3D Point defining entity |
Point1 | FPoint | 3D point defining entity |
Point2 | FPoint | 3D point defining entity |
Point3 | FPoint | 3D point defining entity |
PointsCount | Integer | Points count |
PolylineLength | Double | Polyline length |
PrimaryFont | String | Primary font file name for Style |
Properties | List | Dimension style properties |
PScale | FPoint | Scale factor |
PSpaceCenter | FPoint | Viewport center point on layout |
PSpaceHeight | Double | Viewport height on layout |
PSpaceWidth | Double | Viewport width on layout |
RadDefPoint | FPoint | Definition point for diameter, radius, and angular Dimensions |
Radius | Double | Radius value |
RadPt | FPoint | End point of the major axis relative to the Center point for Ellipse |
Ratio | Double | Ratio of minor axis to major axis for elliptic entities or a two values ratio |
Rational | Boolean | Specifies if Spline based entity is rational |
RectWidth | Double | Width of a rectangle |
Rotation | Double | Rotation angle |
RowCount | Integer | Number of rows |
RowSpacing | Double | Spacing for rows |
Scale | Double | Scale value |
ScaleFactor | Double | ScaleFactor |
SegmentIndex | Integer | Segment index |
Sense | String | Topological orientation |
ShapesCount | Integer | Shapes count |
SinAngle | Double | Sine of the angle at the apex of the cone for cone surface or cone helix |
Size | FPoint | Size of image for Wipeout/Ole2Frame and inherited entities |
SolidFill | Boolean | Specifies if a Hatch have solid filling |
SolidsCount | Integer | Solids count |
Start | FPoint | Start point for Helix |
StartAngle | Double | Start angle value |
StartParam | FPoint | Start parameter for 2D Arc and inherited curves |
StartPoint | FPoint | Start point, can be used with 2D and 3D entities |
StartTangentVector | FPoint | Start tangent direction point |
StartWidth | Double | Start width for a segment |
StatusField | Integer | Viewport status field |
StyleName | String | Name of a Style |
SubEntities | List | Sub entities list |
TABLES | List | Tables section |
Tag | String | Attribute or attribute definition tag string |
Tangent | FPoint | Tangent vector 3D |
Text | String | Text string |
TextGenFlags | Integer | Text generation flags for Style |
TextOverride | String | Dimension text explicitly entered by the user |
TextRotation | Double | Dimension text rotation explicitly entered by the user |
TextSize | Double | Header variable. Default text height |
TextStyle | String | Header variable. Current text style name |
TextValue | String | Text string value |
Thickness | Double | Thickness |
ThisID | Integer | Viewport ID |
TileMode | Integer | Header variable. 1 for previous release compatibility mode; 0 otherwise |
Transparency | Boolean | Definition transparency for imageent |
TransparentColor | Color | Definition transparent color for imageent |
TurnHeight | Double | Turn height for Helix |
Turns | Double | Number of turns for Helix |
TurnsOff | Boolean | Turns the viewport off |
Type | String | Type |
UCSORG | FPoint | Header variable. Origin of current UCS (in WCS) |
UCSOrigin | FPoint | VPort UCS origin |
UCSVP | Boolean | Display UCS icon at UCS origin flag |
UCSXDir | FPoint | Header variable. Direction of the current UCS X axis (in WCS) |
UCSYDir | FPoint | Header variable. Direction of the current UCS Y axis (in WCS) |
UVector | FPoint | UVector for Wipeout and inherited entities |
UVPoint | F2DPoint | UV Point |
VAlign | Undefined | VAlign |
Value | Undefined | Value |
Vertex | ListItem | Vertex element |
Vertexes | List | List of Vertexes |
ViewAspectRatio | Double | VPort view aspect ratio |
ViewCenterPoint | FPoint | VPort view center point |
ViewDirection | FPoint | Viewport view direction vector (in WCS) |
ViewHeight | Double | VPort view height |
ViewTarget | FPoint | Viewport view target point (in WCS) |
ViewTwistAngle | Double | Viewport view twist angle |
Visible | Boolean | Specifies entity visibility |
Visible3D | Boolean | Visibility dependent on PathKey defines one of the entity visual representations |
Volume | Double | Volume 3d dependent on PathKey defines one of the entity visual representations |
VolumeOCC | Double | Volume value, for BREP topology |
VVector | FPoint | VVector for Wipeout and inherited entities |
Weight | Double | Weight value for spline based entities |
Weights | Singles | List of Weights for spline based entities |
Width | Double | Width value |
WidthFactor | Double | Width factor for Style |
x | Double | x |
XrefLink | Boolean | Specifies if entity is externally dependent on an xref |
y | Double | y |
z | Double | z |
Parameter | Type | Description |
---|---|---|
OnUndefined | Undefined | Abstract event |
OnMouseMove | Parameters | Return values: X="Screen X" Y="Screen Y" point="x,y,z" |
OnMouseDown | Parameters | Return values: X="Screen X" Y="Screen Y" point="x,y,z" |
OnMouseUp | Parameters | Return values: X="Screen X" Y="Screen Y" point="x,y,z" |
OnMouseWheel | Parameters | Return values: X="Screen X" Y="Screen Y" WheelDelta="DELTA" point="x,y,z" |
OnSelectEntity | String | Return values: Result handle="handle of selected entity" |
OnConfirmEntitiesDeletion | String |
Event returns handles of the entities to be deleted. Parent application can call a confirmation dialog and delete the entities by |
OnChangeEntities | String | Return values: Result handle="handle of selected entity |
OnCopyEntities | String | Return values: Result handle="handle of selected entity |
OnCreateEntities | String | Return values: Result handle="handle of selected entity |
OnDeleteEntities | String | Return values: Result handle="handle of selected entity |
OnCancelEntities | String | Return values: Result handle="handle of selected entity |
OnLayoutBeforeChange | String | Return values: Result handle="handle of selected entity |
OnLayoutAfterChange | String | Return values: Result handle="handle of selected entity |
OnPasteEntities | String | Return values: Result handle="handle of selected entity |
OnRedoEntities | String | Return values: Result handle="handle of selected entity |
OnUndoEntities | String | Return values: Result handle="handle of selected entity |
OnKeyDown | Parameters | Return values: Key="KEYCHAR" |
OnKeyUp | Parameters | Return values: Key="KEYCHAR" |
OnKeyPress | Parameters | Return values: Key="KEY" |
OnPaint | Undefined | |
OnMenuContextClick | Parameters | Return values: Caption and Index of menu |
OnMenuContextPopup | Parameters | Context menu event OnPopup |
OnMenuButtonClick | Parameters | Return values: Caption and Handle of button |
OnApplicationException | Parameters | Return values: info of an exception |
OnMeasure | Parameters | Return values: Measure |
OnGetInfo | String | Return info |
OnSelectBTIEntity | String | Return values of bti entities |
OnImageNew | String | Image new |
OnImageLoad | String | Image load |
OnImageSave | String | Image save |
OnImageClose | String | Image close |
OnAcisNumber | Parameters | Return 3d entity number in file |
OnDragAndDrop | Parameters | Return values: DragAndDrop |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Signs to OnApplicationExeption event. The result is the id of the drawing, the name and the description of the error--> < signtoevent Event = "OnApplicationExeption" Enabled = "True" /> </ cadsofttools > |
1 2 3 4 5 6 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Signs to OnCancelEntities event. The result is the handle of the object that will not be added. For instance, the user has started to create a line and then pressed esc. As a result, the handle of this line will be returned--> < signtoevent Event = "OnCancelEntities" Enabled = "True" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Signs to OnChangeEntities event. The result is a list of handles of the modified objects--> < signtoevent Event = "OnChangeEntities" Enabled = "True" /> </ cadsofttools > |
1 2 3 4 5 6 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Signs to OnConfirmEntitiesDeletion event. Result is a list of deleted entities handles. The entities deletion works only with xml commands. --> < signtoevent Event = "OnConfirmEntitiesDeletion" Enabled = "True" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Signs to OnCopyEntities event. The result is the number and a list of handles of the copied objects--> < signtoevent Event = "OnCopyEntities" Enabled = "True" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Signs to OnCreateEntities event. The result is the handle of the created object--> < signtoevent Event = "OnCreateEntities" Enabled = "True" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Signs to OnDeleteEntities event. The result is a list of handles of the deleted objects and their number--> < signtoevent Event = "OnDeleteEntities" Enabled = "True" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Signs to OnDragAndDrop event. The result is the list of files that were dragged and dropped on the application --> < signtoevent Event = "OnDragAndDrop" Enabled = "True" /> </ cadsofttools > |
1 2 3 4 5 6 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Signs to OnKeyDown event. The result is the key of the pressed key. Please also see the OnKeyUp, OnKeyPress event--> < signtoevent Event = "OnKeyDown" Enabled = "True" /> </ cadsofttools > |
1 2 3 4 5 6 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Signs to OnLayoutBeforeChange event. The result is the events before switchingto the layout. Please also see the OnLayoutAfterChange event--> < signtoevent Event = "OnLayoutBeforeChange" Enabled = "True" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Signs to OnMeasure event. The result is the measurements with the tools on the Viewer tab on the ribbon--> < signtoevent Event = "OnMeasure" Enabled = "True" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Signs to OnMenuButtonClick event. The result is the caption and the handle of the button in the custom menu in the ribbon--> < signtoevent Event = "OnMenuButtonClick" Enabled = "True" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Signs to OnMenuContextClick event. The result is the caption and the index of the button in the custom context menu--> < signtoevent Event = "OnMenuContextClick" Enabled = "True" /> </ cadsofttools > |
1 2 3 4 5 6 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Signs to OnMouseDown event. Result is X and Y in the screen and global coordinates. Please also see the OnMouseMove, OnMouseUp, OnMouseWheel events--> < signtoevent Event = "OnMouseDown" Enabled = "True" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Signs to OnPaint event. The result is the id of the drawing where the background or object color has been modified--> < signtoevent Event = "OnPaint" Enabled = "True" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Signs to OnPasteEntities event. The result is the handle of the pasted object--> < signtoevent Event = "OnPasteEntities" Enabled = "True" /> </ cadsofttools > |
1 2 3 4 5 6 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Signs to OnRedoEntities event. The result is a list of handles of the objects that have been modified, deleted or added after the Redo command applied. Please also see the OnUndoEntities event--> < signtoevent Event = "OnRedoEntities" Enabled = "True" /> </ cadsofttools > |
1 2 3 4 5 6 7 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: Signs to OnSelectEntity event. --> <!-- Handles in result will be the last selected entity. All the selected entities can be accessed through calling "GetSelected" command, see GetSelected.xml --> < signtoevent Event = "OnSelectEntity" Enabled = "True" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: return command status to XML IDE --> < command text = "GetCommandStatus LineWeight" /> </ cadsofttools > |
1 2 3 4 5 6 7 8 9 10 11 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: Open the Compare dialog and set compared filenames --> < command text = "Comparefiles " drawing1.dxf" "drawing2.dxf""/> <!-- Optional parameters: Flags DeletedColor AddedColor ModifiedColor UnmodifiedColor --> <!-- Flags bits: 0 - Handle, 1 - Layer, 2 - LineType, 3 - LineTypeScale, 4 - Thickness, 5 - Color, 6 - LineWeight, 7 - GeomertyDatas--> <!-- Flags bits for visual compare: 8 - GraphicsOnly, 8 - cf2048, 10 - cf4096, 11 - cf8196--> <!-- If optional parameters are passed, the Compare dialog are not showed --> < command text = "Comparefiles " drawing1.dxf" "drawing2.dxf" 255"/> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: Enable/disable self component --> < command text = "ComponentEnable off" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: Sets dimension style: DimStyle dimStyleName --> < command text = "DimStyle STANDARD" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: Sets dimension text style: DIMTXSTY textStyleName --> < command text = "DIMTXSTY STANDARD" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: get background color to XML IDE --> < command text = "GetCommandStatus BackgroundColor" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: get the name of the current layout --> < command text = "CLayout ?" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: GetViewMode instruction returns view mode for the current drawing --> < command text = "GetViewMode" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "utf-8" ?> < cadsofttools version = "2" > <!-- Description: Hide all interface --> < command text = "HideAllInterface" /> </ cadsofttools > |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: Uses the commands HideTabSet, HideSysButtons, HideStatusbar, HideLayoutPanel, HideInterface, HideMenuButton + on/off to hide toolbars and panels --> <!-- Hides the tab set with the open drawing --> < command text = "HideTabSet" /> <!-- Hides application system buttons --> < command text = "HideSysButtons" /> <!-- Hides the application statusbar --> < command text = "HideStatusbar" /> <!-- Hides the tab set with layouts --> < command text = "HideLayoutPanel" /> <!-- Hides the Interface --> < command text = "HideInterface" /> <!-- Hides the menu button --> < command text = "HideMenuButton" /> <!-- Hides the Ribbon --> < command text = "Ribbon off" /> <!-- Hides the Toolbar with caption Tools on the Page with caption Viewer --> < command text = "" ToolbarConf" "Viewer" "Tools" "False""/> <!-- Hides Editor page with page caption Editor --> < command text = "" ToolbarConf" "Editor" "allpage" "False""/> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: Sets current layer: CLayer layerName --> < command text = "CLayer Layer1" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Mirror of the selected objects by base point and angle: mirror BasePoint Angle --> < command text = "mirror 1,1 30" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: Mirrors the selected objects by base point and second point, which defines the angle: mirror BasePoint SecondPoint --> < command text = "mirror 1,1 0,3" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: Move CAD picture --> < command text = "MovePicture -2 -3" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: Zoom to the rectangle area specified by two points: left-bottom corner (X, Y), right-top corner (X, Y) --> < command text = "RectZooming 0,0 5,5" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: Rotates the selected objects by angle: rotate RotatePoint Angle --> < command text = "rotate 1,1 30" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: Rotates the selected objects by base point and the second point, which defines the angle: rotate BasePoint SecondPoint --> < command text = "rotate 1,1 0,4" /> </ cadsofttools > |
1 2 3 4 5 6 7 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Saves as PNG: save Filename.png Width Height Bitperpixel[default = 24] --> < command text = "filedia 0" /> < command text = "save " C:\Users\Username\Documents\CADEditorX 15\Drawings\Image1.png" 200 100"/> < command text = "filedia 1" /> </ cadsofttools > |
1 2 3 4 5 6 7 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: Hide ScrollBar in the drawing --> < command text = "ShowScrollbar Off" /> <!-- Description: Show ScrollBar in the drawing --> < command text = "ShowScrollbar On" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- SelectByScreenPoint X Y is_find_owned_insert --> < command text = "SelectByScreenPoint 10 5 False" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: set background color by RGB (BackgroundColor red green blue) --> < command text = "BackgroundColor 255 45 0" /> </ cadsofttools > |
1 2 3 4 5 6 7 8 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: JPEG export settings --> <!-- Enables JPEG Smoothing --> < command text = "ExportJPEGSmoothing on" /> <!-- Sets JPEG Quality in percent 0..100 --> < command text = "ExportJPEGQuality 32" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: disables JPEG Smooting --> < command text = "ExportJPEGSmooting off" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: Sets interface language --> < command text = "SetLanguage Russian" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: enables line weight --> < command text = "LineWeight on" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: disables line weight --> < command text = "LineWeight off" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: enables polar tracking --> < command text = "Ortho on" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: disables polar tracking --> < command text = "Ortho off" /> </ cadsofttools > |
1 2 3 4 5 6 7 8 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: Sets polar snap settings --> <!-- Enables polar tracking --> < command text = "PolarTracking on" /> <!-- Sets polar angle step --> < command text = "POLARANG 15" /> </ cadsofttools > |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Shows the tab set with open drawing --> < command text = "ShowTabSet" /> <!-- Shows application system buttons --> < command text = "ShowSysButtons" /> <!-- Shows the application statusbar --> < command text = "ShowStatusbar" /> <!-- Shows the tab set with layouts --> < command text = "ShowLayoutPanel" /> <!-- Shows the Interface --> < command text = "ShowInterface" /> <!-- Shows the menu button --> < command text = "ShowMenuButton" /> <!-- Shows the Ribbon --> < command text = "Ribbon on" /> <!-- Shows the Toolbar with caption Tools on the Page with caption Viewer --> < command text = "" ToolbarConf" "Viewer" "Tools" "True""/> <!-- Shows the Editor page with page caption Editor --> < command text = "" ToolbarConf" "Editor" "allpage" "True""/> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: Sets default SHX font --> < command text = "shxdefaultfont simplex.shx" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: Sets default SHX path --> < command text = "shxdefaultpath " C:\Users\Username\AppData\Roaming\CADSoftTools\Resources\SHX\""/> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: Adds path to path list for search SHX fonts --> < command text = "shxfonts C:\" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: Imports SHX paths to the path list for search SHX fonts --> < command text = "shxfromacad" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Switches to the model layout. --> < command text = "switchtomodel" /> </ cadsofttools > |
1 2 3 4 5 6 7 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Sets UnionEdgesPrecision variable --> < command text = "UnionEdgesPrecision 2" /> <!-- Executes UnionEdges command --> < command text = "UnionEdges" /> </ cadsofttools > |
1 2 3 4 5 | <? xml version = "1.0" encoding = "UTF-8" ?> < cadsofttools version = "2" > <!-- Description: Zoom at mouse point --> < command text = "ZoomAtPoint -120 0 0" /> </ cadsofttools > |
Go to CADEditorX
URL of this topic:
https://es.cadsofttools.com/help/cadeditorx/index.html?xml_reference.htm