CAD Forum - Database of tips, tricks and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
Czech English Deutsch
Login/Register:
 Visitors: 5293 
RSS tips RSS channel - CAD tips
RSS discussion RSS channel - CAD discussion

Discussion Discussion forum

HelpCAD discussion

CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.

How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Rectangle Lisp

 Post Reply Post Reply
Author
cjhooka View Drop Down
Newbie
Newbie


Joined: 24.Aug.2016
Location: Australia
Using: CAD 2017
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote cjhooka Quote  Post ReplyReply Direct Link To This Post Topic: Rectangle Lisp
    Posted: 15.Apr.2017 at 22:12
Hi, I've spent all night reading up forums trying to find someone who's had the same request for a lisp but to no avail. Cry
this'll probably be my first post, but I've been lurking around this forum for a while now (using it for the awesome resource that it is) and after coming up dry I thought I should ask.

Well at the moment I'm using the RECTANG command, picking the first point, hitting D for Dimension, have to then Hatch it as Solid, followed by entering Mtext centered within the RECTANG which would include the Room/Rectangle Name and Size. This seems really long winded... Without yet knowing how to write the code myself, what I would like to have is a lisp that includes the following:

Prompts:
- Asking to pick start point.
- Asking to specify length and width in millimeters.
- Asking to specify room name.
 
Autonomously:
- To draw the rectangle using the current layer @ 100mm thickness.
- To solid hatch the rectangle created using a layer I have which is named: "-- NON PLOT --" or "defpoints"
- To insert Mtext with the Room name as the first line (Geometric Center of the Rectangle).
- To insert the dimensions for the room as the second line of the Mtext (displayed as meters eg: 10.5 x 8.0m).
- To draw a point @ 50mm off of each corner of the Rectangle.


Any help would be greatly appreciated. Clap (Pretty sure this is easy for those that are beyond picking apart shared LISP's to try get an understanding of what's going on).

Kind regards,

CJ.
Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,109 seconds.