CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.096.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator and the updated Barcode generator. New AutoCAD 2026 commands and variables.
Plex.Earth connects AutoCAD and Google Earth
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

?
CAD discussions, advices, exchange of experience

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.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
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

Topic ClosedCreating Macros

 Post Reply Post Reply
Author
benny View Drop Down
Newbie
Newbie


Joined: 04.Jul.2008
Location: Australia
Using: autocad 2011
Status: Offline
Points: 7
Direct Link To This Post Topic: Creating Macros
    Posted: 28.Mar.2011 at 06:06
hello,
 
hopefully someone can help me. I havent had to create macros or used macros for over a year and have forgotten some of the basics.
 
the couple of main ones want to start with are:
 
-what to have a macro where it sets to a certain Layer and then starts drawing a line.
 
-again sets to a certain Layer and then does a hatch. so what to click the button and then click in a box and the hatch i want is allready preset.
 
Hopefully that makes sense.
 
thanks.
Back to Top
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
Direct Link To This Post Posted: 28.Mar.2011 at 12:09
Macros cannot make use of dialog boxes so you will have to use the command line version of the commands you want to use.  For example, here is a macro that will start a line on a newly defined layer called "pipe".
 
^C^C-layer;make;pipe;color;red;;;line;endpoint;
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>

Back to Top
benny View Drop Down
Newbie
Newbie


Joined: 04.Jul.2008
Location: Australia
Using: autocad 2011
Status: Offline
Points: 7
Direct Link To This Post Posted: 28.Mar.2011 at 22:11
ok thanks for that but had figured it out again.
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,066 seconds.