Saturday, December 18, 2010
【 Weak current College 】 practical AutoCAD add-on tools and system variables
AutoCAD is the most popular computer-aided design software, in fact, in addition to our usual use kernel commands, AutoCAD also offers a number of very useful additional tool (bonustools), deposit them in bonus directory (R14), if the user's own AutoCAD is no discovery that directory, run the Setup program, in the SetupChoices dialog box select the "Add", added Bonus. In addition to some system variables are reset, or you can let us work with handy, to achieve a multiplier effect. For everyone explain some of the more practical additional tools and system variables.
System variable: access to the system variables in general there are two ways: most of the system variables available through drop-down menu, or command to access (such as: ddunits command set angbase variable); all system variable to pass the Autolisp programs or on the command line, type the name of the variable to access. Here are a few variables. In addition, special instructions are for version R14.
Angbase and Angdir: control the current coordinate system of the zero point of the direction and angle of rotation. Geology in common GEODESIC coordinates, we can change the values of two variables, so that the north direction is below zero, coordinates with clockwise rotation, in accordance with our professional habits, eliminating many intermediate conversion into trouble.
Cursorsize: control cross cursor size. Have used the previous version R14, perhaps more accustomed to full-screen cross cursor, or need a full-screen used to broadly cross cursor control entities. The variable is to meet this need.
Dwgcodepage: set code page (R12 version). Many users might be a problem: used R12 version do graphics file cannot be opened in the version R14, or open all garbled characters. Try to open it in R12 version, change the value of the variable as "iso8859-2", filed after R14 Edition opens, you will be pleasantly surprised: all former (don't forget: first with the Preferences command will need font file directory into the "surportfilesearchpath")!
Mirrtext: control text entities mirror backward direction. After the text in the mirror, by default, text is not readable, as we see in the mirror, the text is written. Will the value of the variable to 0, type lens backward still maintain the original writing direction.
Plinetype: determines whether to use optimized light polylines. Optimization of polylines will greatly reduce the storage space; to involve Pline line code table's original Autolisp programs will still run, some users prefer to Pline line is still the original format.
Explmode: non-proportional inserted block can explode. By default, non-proportional inserted block will not respond to explode command, change the value, you can explmode blasted this block.
Useri1-Useri5, Userr1-Userr5, Users1-users5: respectively can hold 5 integers, real numbers, 5 x 5 characters in channeling of 15 system variable, the variable values are saved with the following graphics file (I think only five integers, five real value of a variable can be saved). Program developers may want to save a graphic for certain parameters for program access, along with graphics files saved in these variables, is a very safe and effective method.
In addition, programmers often used, for example: current graphic file name (including path), the current time, the current figure to modify state and many other data or status, notification and informed access to a system variable. Please see the relevant information.
Additional tools: from Autodesk company provided free of charge to users. Additional tool itself is a program (including .lsp, .arx and .exe), these programs by ac_bonus.lsp unified organization, mount. In ac_bonus.lsp internal also defines some common procedures for these programs. You can use the bonus menu (menu file name is ac_bonus.mnc), tool bar or people-mounted after the command to start. These programs on AtuoCAd kernel command is a very good complement, or it can be modified to your own lisp programs. Here is a brief introduction to several practical program functionality, specific implementation details according to the command prompt, or see related information.
Textmask.lsp: features: text (text or mtext command produces may) background in solid shielding. Menu call for bonus-> text-> textmask, command calls for textmask. In the actual drawing, text often being hatched and other entities in the way, it is difficult to distinguish. Run the command, select text (if you choose to set different entities, will be filtered out), according to the command prompt, you can mask off the background pattern. Even if you later move the text, its new background same shielding. Use this command when it is necessary to pay attention to two points: the command generates a standard called Wipeout of non-CAD entity in the program (Textmask.lsp) internal procedures, to be called wipout.arx if wipout.arx file does not exist, the command cannot be run; to define properties, perform the insert command inserts the text of the command can do, but we can use burst with resolve.
Burst.lsp function: explode attribute block, the attribute value processing into text. Menu call for bonus-> text-> explodeattributestotext, command calls to burst. This command can be combined with textmask, shielding properties text backKing.
Gatte.lsp: one-time modify property values. Menu call for bonus-> text-> globalattributeedit, command calls for gatte. If you repeatedly insert a block containing property when a property value is one or a few, found the property value should be the same, you can select the block (or type the block name) uniform modify attribute value for a certain value.
Chtext.lsp: Omni-directional text editor to modify the selected text, height, alignment, position, rotation angle, font style, and text content. Menu call for bonus-> text-> changetext, command calls the cht. The command on the selected text can be processed separately, or harmonization of processing (e.g. the selection of all of the text content is changed to the same content). If the selected entities, including non-text entities are automatically filtered.
Find.lsp: find and replace. Menu call for bonus-> text-> findandreplacetext, command calls to find. In the selected text, drag a character or string replaced by another character or string. Can only handle a single line of text entities (not the mtext command generated text).
Extrim.lsp: extended crop (trim) command. Menu call to modify-bonus-> > cookiecuttertrim, command calls for extrim. Sometimes we have to cut out an area (particularly the circular area) within or outside of a graphic, use the trim command is very troublesome. Use extrim command, as long as you point out which side to crop out, won't have to bother.
Mpedit.lsp: multiple polylines editing commands. Menu call to modify-bonus-> > mutiplepedit, command calls for mpedit. Pedit command can only edit one polylines, if we want to change some polylines in width, with very convenient mpedit command, the command in addition to not have vertex editing and connectivity features, other pedit can do it all. It also can be a set of line (line)-and (or) arc (arc) to polylines.
Popup.arx: drop-down menu to the pop-up menu. Menu call for Bonus-Tools-> >, command calls to the PopupMenu bonuspopup. Used version R14 to the pop-up menu (on the drawing area, press CTRL + right mouse button) will not be strange, it is convenient to more Microsoft style. Users may prefer the tools drop-down menu is made (the original drop-down menu still exists) pop-up menu, do one of the commands, follow the prompts to bonuspopup (very simple!) Operation, it is easy to make. Users can put their own development program, or a set of commands commonly used to make a menu file, use menuload command, or menu tools-> customizemenus mount this menu (do menu and how to execute commands we will not repeat them menuload), run the command, a very rich personality is turned into a pop-up menu.
Packngo.arx, packngo.hlp: packaging. Menu call for Bonus-> Tools-> Pack ' nGo, the command calls to pack. We often run into this problem: by one computer, edit the graphic file, use another computer to bring up the text changed after, this is due to two computers does not match the font file. Use this command, the graphics file used include fonts, hatched, external references, etc. supporting data once packed into a single directory, as long as the directory to be copied to another machine, open the back guarantee consistent with the original edit graphics.
Sysvdlg.arx: Edit system variable. Menu call for Bonus-> Tools-> SystemVariableEditor, command calls for sd. Earlier we mentioned system variables generally available two ways to access, this additional tool is a third approach. Execute the command, the system will pop up system variable form, you can query the significance of the various system variables, current value, change the value of a variable, you can also save the current settings of all variables to a .svf files, or from importing .svf files set to overwrite the current values of variables. This is a comprehensive, system variables Editor.
Alias.exe, Alias.hlp: Edit command aliases and shell executable commands. Menu call for Bonus-> tools-> CommandAlias
Editor, command calls for aliasedit. By default, if the command line, type "e", the system executes the erase command as the system of the "e" is defined as command "erase" alias. These correspondence deposited acad.pgp (text file), the user can be modified directly. Use the command Edit alias, you do not have to care about acad.pgp file format, follow the prompts to directly modify or add to conform to their own habits. In addition, the command again, you can determine which shell command (DOS, Windows or applications) can be directly invoked on the command line.
Xdata.lsp: expands data attached to a solid or show a particular entity's extended data. Additional extended data: menu call for Bonus-> Tools-> XdataAttachment, command calls to xdata; display called the extended data: menu as Bonus-> Tools-> ListEntityXdatA call to xdlist, command. Worked as program development users on the extended data must be very interested, but the extended data code table is complex, to repeat the debugger side. This file has a very high reference value.
Here again: the program is a program named ac_bonus.lsp unified package, loaded, each program may require the definition of public function ac_bonus.lsp support. If you change the above .lsp files into your own program, you need to configure certain ac_bonus.lsp also changed it for some while to join their program.
There are many additional tools, here is no longer covered, interested users can run bonus of help files, find out what good things inside.
Labels:
[:]
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment