Filthy McNasty Posted January 7, 2011 Share Posted January 7, 2011 (edited) I wonder if someone can help me ............. First, I want to create a macro which will draw a polyline on a layer which will have a certain line type (hidden, center, whatever) Something like this : ^C^C-layer;make;FC-DGNINFO_F_C_CW-412;color;blue;;;pline \w;0;; I tried several option such as ^C^C-layer;make;FC-DGNINFO_F_C_CW-412;linetype;center;color;blue;;;pline \w;0;; But it didn`t work out. Second, another macro which will calculate length of existing polyline and place the value on top of the line. I am using AutoCAD 2010 version Thank you! Edited October 31, 2011 by SLW210 Quote Link to comment Share on other sites More sharing options...
ReMark Posted January 7, 2011 Share Posted January 7, 2011 There are a couple of lisp routines, here at CT, that with display the value of a picked line and place it above the top of the line. A quick search should turn one or both of them up. Quote Link to comment Share on other sites More sharing options...
Filthy McNasty Posted January 7, 2011 Author Share Posted January 7, 2011 I`ve been searching the forum and haven`t found anything that work with 2010 version. For the first macro, second option is what I found in the forum but as I mentioned, it does not work with AC2010. I am assuming it takes some minor tweaking in the code ........ tried several options but couldn`t figure it out. Quote Link to comment Share on other sites More sharing options...
Filthy McNasty Posted January 10, 2011 Author Share Posted January 10, 2011 I managed first macro to work, just a little tweak........ but I have another problem, can not save macro , when I close AutoCAD and open it again, non of macros are working ....... that`s so weird ........ anybody has idea? Quote Link to comment Share on other sites More sharing options...
ReMark Posted January 11, 2011 Share Posted January 11, 2011 Assign the macro to a button. You'll have to edit your CUI. Another option might be to use the Action Recorder found on the manage tab of the Ribbon. See the Action Recorder panel. Quote Link to comment Share on other sites More sharing options...
Filthy McNasty Posted January 11, 2011 Author Share Posted January 11, 2011 Assign the macro to a button. You'll have to edit your CUI. I did that............ for some strange reason macro is not saved. I had similar problem with 2008 version , macro box in CUI was grayed out so I couldn`t edit it but in this case I can edit it but not save it .......... Quote Link to comment Share on other sites More sharing options...
ReMark Posted January 11, 2011 Share Posted January 11, 2011 The process for creating a button and assigning a macro to it is pretty straight forward and usually presents no problem whatsoever. Perhaps you missed a step. Are you following the steps laid out in your Customization Guide? Quote Link to comment Share on other sites More sharing options...
jmyrwen Posted October 30, 2011 Share Posted October 30, 2011 (edited) ^c^c-la;m;LAYERNAME;lt;hidden;;c;1;;^c^cpl; ))))))))))))))))))))))))))))))))))(((((((((((((((((((((((((((((((((((( Edited October 31, 2011 by SLW210 Added Code Tags Quote Link to comment Share on other sites More sharing options...
SLW210 Posted October 31, 2011 Share Posted October 31, 2011 Please read the CODE POSTING GUIDELINES, these apply to macros also. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.