![]() ![]() if a valid selection set was generated, then proceed. prompt the user to select closed polylines set a reference to the current model space. create an empty list, set a counter variable, and ![]() Upon issuing the command syntax PJ at the AutoCAD command-line, the program will prompt the user for a selection of lines, arcs and/or polylines following any necessary conversion to polylines, the program will attempt to join the selected objects to form. (defun C:POLYTABLE ( / *MS* A CNT I LST MYTABLE PT1 ROW SSET TLST) This program is effectively a wrapper for the standard AutoCAD PEDIT command, allowing the user to join multiple sets of lines, arcs & polylines without needing to traverse the various prompts issued by the standard command. These sizes used here work with the Standard tablestyle in a new empty drawing. Joining lines and arcs together that represent a single object (such as a door frame, or a pane of glass) allow you pick that object with a single pick. The TABLE is creating on the current tablestyle, so depending on the settings of your current tablestyle, you may have to adjust the sizing arguments in the (vla-addTable.) function in order for the table to look acceptable. Use AutoCAD’s Polylines to help organize your lines and arcs into single entities. You could easily adapt this to show the layer, color or any other property. One containing the area, and the other containing the ObjectID. This routine allows the user to select closed polylines, and it will create a TABLE with two columns. This example also creates some FIELDS using lisp. Here is an example of creating a TABLE entity using lisp. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |