Jump to content

Line type macro .......


Filthy McNasty

Recommended Posts

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 by SLW210
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 ..........

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  • 9 months later...

^c^c-la;m;LAYERNAME;lt;hidden;;c;1;;^c^cpl;

 

 

))))))))))))))))))))))))))))))))))((((((((((((((((((((((((((((((((((((

Edited by SLW210
Added Code Tags
Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...