AutoCAD Development Tools Overview

With the development of CAD technology, more and more software is available in the CAD field. Many companies at home and abroad have successively launched their leading products. Autodesk is currently the developer of CAD in the world, and it has been developing AutoCAD. It is a mainstream product in the CAD market. With the increasing popularity of AutoCAD, the tools for secondary development on it have also been launched by the company. Many companies purchase AutoCAD software, not just as a "replacement board." Only when the secondary development is actually implemented can we fully utilize the role of AutoCAD. So far, Autodesk has provided four major secondary development tools: AutoLisp (VisuaLisp), ADS, ObjectARX, and VBA (VB). This article will give you an introduction to this. 1 AutoLisp language The Lisp language is a table processing language and is widely used in artificial intelligence languages. AutoLisp language is completely nested inside AutoCAD, organically integrated with AutoCAD. It not only has the basic structure and function of general high-level language, but also has the graphics processing capability that general high-level languages ​​do not have. AutoLisp can directly call almost all AutoCAD commands. Second development of AutoCAD. A typical example of using AutoLisp to develop AutoCAD is to implement parametric drawing programming. AutoLisp has the following features: AutoLisp language is an interpretive programming language that runs inside AutoCAD in an interpreted way. AutoLisp has no statement concept or other grammatical structure and the program is very concise. All its components are given as functions. Executing an AutoLisp program is a matter of executing some functions and then calling other functions. AutoLisp expresses data and programs as a table structure. Therefore, programs can be treated as data, and data can be treated as programs. The program running process in the AutoLisp language is the process of evaluating the function, and the function of the function is implemented in the process of evaluating the function. The main control structure of the AutoLisp language uses a recursive approach. The use of recursive methods makes the program easy to understand. VisuaLisp is the development of AutoLisp, which uses a visual programming environment to reduce learning difficulty. Its characteristics can be summed up more than a dozen, but basically a combination of visualization and Autolisp, no longer listed. Here's a small program that uses AutoLisp to draw a keyway. You can see its simplicity: (defun C:LWX()
(setq a(getrcal "a="))
(setq b(getreal "b='))
(setq pO(getpoint "Enter start point:"))
(setq r(getreal "r="))
(setq x(car p0) y(cadr p0))
(setq xe(- x (/a 2.0)))
(setq ye(+ y (sqrt(- (* rr) (*aa 0.25)))))
(sctq ce(list xe ye))
(setq p1(list(- xa) y))
(setq p2(list(- xa)(- yb)))
(setq p3(list x (- yb)))
(command "pline" p0 "a" "ce" ce p1 "1" p2 p3 "c")
) Execute this procedure and enter the values ​​of a, b, and r to draw the keyway. 2 ADS (AutoCAD Development System) Development System ADS is a system developed based on C language that was introduced from AutoCAD R11. ADS is not a subset of C language, nor is it a proprietary language based on C (such as Microstation's MDL), but it includes all the features of C. It requires a high level of developer C language, C is a compiled language, and powerful, so ADS easily overcome many shortcomings inherent in AutoLisp and has the characteristics of high speed and high security. ADS is not included in AutoCAD but is loaded, interpreted, and requested by AutoCAD as a set of AutoLisp external functions by the AutoLisp interpreter. Its characteristics are as follows: The ADS program is an executable file that needs to communicate with AutoLisp and AutoCAD. The ADS program is more "insulated" and the ADS program is a series of independent processes. A program crash does not necessarily cause the AutoCAD system to crash (though not always). The ADS program is not reloadable. The ADS program runs like a macro. Functions in ADS (such as ads_command) and communication with AutoLisp make ADS programs work like automatic macros. ADS still can only use the traditional C language for programming and can only adopt traditional structured programming. In the early days, common domestic applications were developed using ADS. However, ADS programs must be loaded with AutoLisp. Therefore, the performance of various aspects of ADS is limited. At the same time, with the rapid development of network technology, process-oriented ADS has been somewhat inadequate. Therefore, the object-oriented development tool ARX is provided in AutoCAD R13. The example code for ADS is similar to ARX (for example, the object name ads_name in ADS is equivalent to AcDbObjectld in ARX) and will not be given here. 3 ObjectARX (AutoCAD Runtime Extension) Development System The widely used ObjectARX in recent years is a brand-new object-oriented development environment launched from AutoCAD R13. It is the first object-oriented development tool provided by AutoCAD. It provides an object-oriented development environment and application programming interface based on C++, which can quickly access AutoCAD graphics and databases. ObjectARX supports object-oriented programming methods while being backward compatible with ADS. Its characteristics are obvious: The ARX program differs from the ADS program and the AutoLisp program in many ways. The most important point is that the ARX program is essentially a dynamic link library (DLL) that shares the address space with AutoCAD and communicates directly with AutoCAD. In ARX, each command has a separate entry. ARX ​​programs can also create new classes that can be shared by other programs to take advantage of the benefits of object-oriented programming. The ARX program creates entities that are almost identical to AutoCAD's intrinsic entities. For applications that need to communicate with AutoCAD frequently, the ARX program runs faster than the ADS program. The operating speed here mainly refers to the speed of accessing the AutoCAD database. But ARX is more "fragile," and ARX programs and AutoCAD share process space. ARX program crashes often cause AutoCAD systems to crash. In contrast, ARX programs are more basic than macros. The main program (AutoCAD) can call each of the commands registered by the ARX program. The ARX program has the ability to access and control AutoCAD that ADS programs and AutoLisp programs do not have. The ARX program can monitor and process various AutoCAD events. It can define AutoCAD commands, including commands that can be executed transparently. These commands can be called by AutoLisp and ADS just like AutoCAD's own commands. ARX provides object-oriented programming technology, and object-oriented programming technology has become the mainstream technology for software development. ARX ​​fully supports C++ and fully supports object-oriented programming. For ARX programming, Autodesk recommends using a development environment with Visual C++ 4.2 or higher. This requires a high level of language learning. Here is a partial code of the line drawing function: void myLine(AcGcPoint3d.AcGePoint3d Pt2)
{AcDbLine * pline=new AcDbLine(Pt1,Pt2):
AcDbBlockTable * pBlockTable:
AcdbCurDwg()->getBlockTable(pBlockTable.AcDb::kForRead);
AcDbBlockTableRecord * pBlockTableRecord;
pBlockTable->getAt(ACDB MODEL_SPACE pBlockTableRecord,AcDb::kForWrite);
pBlockTable->close();
AcDbObjectld lineld;
pBlockTableRecord->appendAcDbEntity(lineld,pline):
pBlockTableRecord->closc();
pLine->close();} 4 VBA (Visual Basic for Application) and VB As a secondary development tool VBA (VB) provided after AutoCAD R14, people who desire CAD programming have a better choice. Users do not have to learn ADS. , ARX and AutoLisp can develop AutoCAD with VBA (VB). Autodesk has built VBA development tools from R14, and provides an ActiveX Automation object model suitable for VBA (VB) development. The main features of VBA (VB) are as follows: VBA was originally a programming language embedded in Ofice97. It is easy to learn, easy to use, and powerful. So Autodesk company also embedded it in AutoCAD after Rl4. VBA (VB) can use the interfaces provided by ActiveX Automation to access and control all AutoCAD drawing and non-graphical objects, and to access methods and properties of these objects. VBA (VB) is rich in data types and user-friendly. VBA is a programming language embedded in AuLoCAD that depends on the platform, but VB has improved it. Just as ADS needs C language to be based on the same, VBA (VB) to develop AutoCAD must also be familiar with the VB language as the premise. Here also gives a straight line drawing program. With VBA, it is programmed as follows: Dim stpt, enpt As Variant Dim prompt1, prompt2 As String Dim startpoint (1 To 3) As Double Dim endpoint (1 To 3) As Double Dim lineobj As Acadline prompt1 = NL & “Start point:” prompt2 = NL & "Endpoint:" stpt = ThisDrawing.Utility.GetPoint(, prompt1) enpt = ThisDrawing.Utility.GetPoint(stpt, prompt2) startpoint(1) = stpt(0) startpoint(2) = sptt(1) startpoint(3) = stpt(2) endpoint(1) = enpt(0) endpoint(2) = enpt(1) endpoint(3) = enpt(2) Set lineobj = ThisDrawing.ModelSpace.AddLine(startpomt,endpoint) Developing AutoCAD with VB The main difference with VBA is that the reference method of the current graphic object is different. VB object to get GetObject () and CreatObject () function to effectively start and switch AutoCAD window, the specific code is as follows: Public acadDoc As Object Public ModSpace As Object Public acadApp As Object On Error Resume Next 'Error Handling Set acadlApp = Get Object(, "AutoCAD.Application") If Err Then Err.Clear Set =cadlApp=CreateObject("AutoCAD.Application") If Err Then MsgBox Err.Description Exit sub End If End If AcadApp.Visible=True Set acadDoc = acadApp.ActiveDocument Set ModSpace = acadDoc.ModelSpace
The code for drawing straight lines is basically the same as VBA. Simply replace thisDrawing with acadDoc. In short, through the above analysis we can see that AutoLisp is still the basic development method of AutoCAD, and it is suitable for ten general developers to use for the development of relatively simple interactive programs. ADS will gradually be replaced by more sophisticated ARX. VBA has become another force for secondary development of AutoCAD users. AutoCAD provides development tools that allow developers of all types to have their own development tools.

Scarifying Machine, also called surface planers or milling machines, remove concrete faster and more aggressively than grinders. That's because they use the pummeling action of multi-tipped cutting wheels, or flails, that rotate at high speeds to chip away at the concrete surface. 

Road Scarifying Machine is used for creating grooves in concrete surfaces and removes paint or coating and to clean and prepare concrete surface prior to coating and floor covering installation rugged sand casting and heavy gauge steel construction. 

Road Scarifying Machine

FURD Road scrarifying machine features:


- Adopt Japanese NSK bearing to ensure strong load and high speed. Imported excellent tough alloy blade, which is sharp, wearable and long serving life. 

- Adopted ringfeder in drum, has the advantages of shock resistance.  

- Single bearings support, excellent welt performance, which is suitable for operation in workshop.
- The milling depth is controlled freely. 



Road Scarifying Machine

Road Scarifying Machine,Scarifying Machine,Road Milling Machine,Road Planer Scarifier Machine

Jining Furuide Machinery Manufacturing Co., Ltd. , https://www.furdroller.com