Need to figure how to give the opposite corner of 10 x 10 instead of the user doing. Here I am trying to add the known dimensions of 10 x 10 instead of having the user pick the size manually. (setq ptc (getpoint pt1 "\nSpecify the corner point: ")) (setq pt1 (getpoint "\nSpecify the center point: ")) Here is the existing code that I found: (defun C:CENRECT ( / pt1 ptc vec) The user picks a point and a 10 x 10 rectangle is created off of that center point. I want to replace the manual part with known dimensions of 10 x 10. I found existing code that creates a rectangle by its center point, but the user has to give size by picking the opposite corner. "AcDbMText") Identifies the entity as MTEXT.Im trying to create a 10 x 10 rectangle from its center point. "AcDbEntity") Required for all post-R12 entities. For example, the following is the minimum code required to create a MTEXT entity with entmake: (entmake '( These entries must follow group code 0 and must precede group codes that are specifically used to define entity properties in the entmake list. In addition, one or more subclass marker entries are required to identify the specific sub-entity type. All AutoCAD entities have the AcDbEntity subclass marker, and this must be explicitly included in the entmake list. entmake cannot create viewport entities.įor entity types introduced in AutoCAD Release 13 and later releases, you must also specify subclass markers (DXF group code 100) when creating the entity.Any internal fields passed to entmake are ignored.There is one exception: entmake accepts new layer names. AutoCAD must recognize all objects that the entity list refers to.Plot using layouts and multiple viewports to get high definition technical papers in any scale with highest possible precision. i coded in the group codes for width and height to eliminate the textsize variable to retrieve all of the data from the text style. The new entity that the list describes is appended to the drawing database (it becomes the last entity in the drawing). then in entmake add (cons 51 obang)) re: area calculation lisp vbcad (technicaluser) (op) 1 sep 05 10:41. ![]() Like that of entmod, the argument to entmake is a list whose format is similar to that returned by entget. It comes with powerful drafting tools to make complex drawings and technical papers. An application can add an entity to the drawing database by calling the entmake function. If the first member does not specify the type, it can specify only the name of the entity: group -1 (the name is not saved in the database). BabaCAD Home edition is the right choice for professional 2D drafters. It all depends on an individuals needs, but for me I preferred the simpler method which just used the dim commands. For example, my routine only has about 4 or 5 lines of code but entmake required 20 lines or more.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |