- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
So, I am currently working on a macro in AutoCAD 2014 LT to increase drawing efficiency for our company.
What I am essentially trying to achieve is the following:
1) Draw a polyline of an unknown amount of points (can range from 4 points to 10 points)
2) Fillet said polyline with a radius of 2
3) Set said polyline to one of a specific set of layers
We have around 9 layers that we will be putting these polylines on, so my intent was to make an individual macro command for drawing a filleted polyline onto each layer.
My first attempt was almost what I want:
*^C^Csetvar;filletrad;2;fillet;p;last;-layer;m;AnalogueVideo;c;Green;;;_pline
- The above works OK, but it needs an initial previously selected polyline in the drawing to work.
- This also leaves me on the layer that I make in the macro, ideally I would have my default layer set back to '0'.
My second attempt solved the layer setting issue (in this instance I have my 9 layers already set up in the template, so no layer creation is required):
*^C^Csetvar;filletrad;2;fillet;p;last;change;last;;p;layer;AnalogueVideo;;_pline
- The above still works OK, but as before, it needs an initial previously selected polyline to work.
- Whilst this version solved the layer issue, it created another issue - if I use this to create polylines on my 'AnalogueVideo' layer, if i were to then use another version of the macro for another layer, the last 'AnalogueVideo' polyline I drew will be changed to the second layer.
It seems to me that all my problems would be solved if I could pause for user input infinitely on the polyline command until the line is drawn and the command is finished.
However, I have had a look and this only seems possible in LISP?
Any help would be extremely appreciated on this.
Oliver Allington
Solved! Go to Solution.