2013
Table Of Contents
- Contents
- Basic Customization
- Custom Linetypes
- Custom Hatch Patterns
- User Interface Customization
- DIESEL
- Command Scripts
- Introduction to Programming Interfaces
- Shapes and Shape Fonts
- Overview of Shape Files
- Create Shape Definition Files
- Shape Descriptions
- Vector Length and Direction Code
- Special Codes
- Use Special Codes
- Codes 0, 1, and 2: End of Shape and Draw Mode Control
- Codes 3 and 4: Size Control
- Codes 5 and 6: Location Save/Restore
- Code 7: Subshape
- Codes 8 and 9: X-Y Displacements
- Code 00A: Octant Arc
- Code 00B: Fractional Arc
- Codes 00C and 00D: Bulge-Specified Arcs
- Code 00E: Flag Vertical Text Command
- Text Font Descriptions
- Sample Files
- Big Font Descriptions
- Unicode Font Descriptions
- Superscripts and Subscripts in SHX Files
- Index
It is recommended to use an organized folder structure for larger applications
as this can significantly speed up load times. The following is an example of
a plug-in that contains multiple LSP files and resource files. The plug-in in
this example is named OfficeSymbols and its folder structure might look
something like:
OfficeSymbols.bundle
|- PackageContents.xml
|- Contents
|- OfficeSymbolsMain.lsp
|- OfficeSymbolsUtilities.lsp
|- Resources
|- OfficeSymbols.dwg
|- OfficeSymbols.cuix
|- OfficeSymbols.ico
|- Help
|- OfficeSymbols.htm
Definition of the PackageContents.xml
<?xml version="1.0" encoding="utf-8" ?>
<ApplicationPackage
SchemaVersion="1.0"
AppVersion="1.0"
Author="ABC Indoor CAD, Inc."
ProductCode="[Add Unique Plug-in GUID Here]"
Name="Office Symbols (contains Full version)"
Icon="./Contents/Resources/OfficeSymbols.ico"
Helpfile="./Contents/Help/OfficeSymbols.htm"
>
<CompanyDetails
Name="ABC Indoor CAD, Inc."
Phone="1 (555)-415-1234"
PhoneEsp="34 5554 151234"
Url="www.abcindoorcad.com"
UrlEsp="www.abcindoorcad.es"
Email="support@abcindoorcad.com"
106 | Chapter 7 Introduction to Programming Interfaces