View Full Version : Mlisp Creation
prose
2008-11-20, 06:15 PM
*edit - I meant to put Mleader in the subject, sorry.*
I am trying to find a lisp routine that will create a Mleader Style and make it current.
I have done a search here and google and have yet to find what I'm looking for.
I was hoping that someone on this site would already have something similar.
Thanks ahead of time.
hofcad
2008-11-20, 06:51 PM
*edit - I meant to put Mleader in the subject, sorry.*
I am trying to find a lisp routine that will create a Mleader Style and make it current.
I have done a search here and google and have yet to find what I'm looking for.
I was hoping that someone on this site would already have something similar.
Thanks ahead of time.
Dear Prose,
Did you see:
http://forums.augi.com/showthread.php?p=826861
http://discussion.autodesk.com/forums/thread.jspa?threadID=652319
Regards, HofCAD CSI
blybrook
2008-11-20, 06:55 PM
If your search was for "Mleader" you should have found the following thread:
Mleader Lisp
The code to create mleaders was there, and will set the last one created as the current style
*edit - I see this was linked above, and that you're having issues with it... It was originally utilized in 2008
HTH
Bill
prose
2008-11-20, 06:56 PM
Dear Prose,
Did you see:
http://forums.augi.com/showthread.php?p=826861
Regards, HofCAD CSI
I have, and when I try that, I get the error message below.
Command: mleadercreate
; error: Automation Error. Key not found
I am using AutoCAD 2008
hofcad
2008-11-20, 07:06 PM
I have, and when I try that, I get the error message below.
Command: mleadercreate
; error: Automation Error. Key not found
I am using AutoCAD 2008
Sorry Prose,
I'm also using AutoCAD 2008, and I have no error message.
Can you see where it happens?
Regards, HofCAD CSI.
blybrook
2008-11-20, 07:11 PM
I have, and when I try that, I get the error message below.
Command: mleadercreate
; error: Automation Error. Key not found
I am using AutoCAD 2008
Try the attached, it's the same code, just has multiple mleaders on creation. The arrowhead styles were loaded off of another drawing that I had embedded into the template, I can't find that right now, not at the right computer to get to it.
It's working for me in both 2008 & 2009
Bill
hofcad
2008-11-20, 07:36 PM
Try the attached, it's the same code, just has multiple mleaders on creation. The arrowhead styles were loaded off of another drawing that I had embedded into the template, I can't find that right now, not at the right computer to get to it.
It's working for me in both 2008 & 2009
Bill
Dear Bill,
Where are _dot.dwg and _dotblank.dwg?
Regards, HofCAD CSI.
blybrook
2008-11-20, 08:51 PM
_dot.dwg and _dotblank.dwg are embedded into my template now & the originals are on another computer that I can't get to at this time. The call out can be changed to any particular arrowhead style you wish. I didn't edit the code to remove that call out before I posted it.
If I can get to those drawings today, I'll edit the post and add them as well.
Bill
prose
2008-11-20, 09:25 PM
Sorry Prose,
I'm also using AutoCAD 2008, and I have no error message.
Can you see where it happens?
Regards, HofCAD CSI.
No worries. I got blybrook's to work.
Try the attached, it's the same code, just has multiple mleaders on creation. The arrowhead styles were loaded off of another drawing that I had embedded into the template, I can't find that right now, not at the right computer to get to it.
It's working for me in both 2008 & 2009
Bill
Its wierd, the first one had an issue, but the "mlsetup.lsp" worked fine.
Dear Bill,
Where are _dot.dwg and _dotblank.dwg?
Regards, HofCAD CSI.
I just created my own block and named it "_dot.dwg" and "_dotblank.dwg" and put it in my paths. It seems to work just fine.
Thank you all for your help.
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.