Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
*Allen Johnson
Message 1 of 13 (178 Views)

Convert to Multileader

178 Views, 12 Replies
03-27-2007 09:21 AM
Has anyone done anything that allows one to convert a group of text objects and a leader line to the new AC2008 Multileader?
If someone has started something, then I don't need to reinvent the wheel? Otherwise I'll guess I'll try to invent a new wheel.
Thanks.
*Allen Johnson
Message 2 of 13 (178 Views)

Re: Convert to Multileader

03-28-2007 09:02 AM in reply to: *Allen Johnson
I resorted to VBA. Here's what I've got so far, if anyone cares....
*Daniel J. Altamura, R.A.
Message 3 of 13 (178 Views)

Re: Convert to Multileader

03-30-2007 10:54 AM in reply to: *Allen Johnson
Allen,
I have to plead complete ignorance when it comes to VBA. Any chance you
could convert to VLISP for us, or at least explain how to load this?

Thanks,
Dan
--
Daniel J. Altamura, R.A.
Altamura Architectural Consulting
and SoftWorx, Autodesk Authorized Developer
http://partnerproducts.autodesk.com/popups/company.asp?rdid=2139
-----------------------------------------------------------------------


"Allen Johnson" wrote in message
news:5533546@discussion.autodesk.com...
I resorted to VBA. Here's what I've got so far, if anyone cares....
Distinguished Contributor
eloquintet
Posts: 156
Registered: ‎07-21-2005
Message 4 of 13 (178 Views)

Re: Convert to Multileader

03-30-2007 11:27 AM in reply to: *Allen Johnson
i loaded it but can't seem to run it. what is the macro name?daniel put the file in your search path then type vbaload find the file and load it. then add this to your startup suite so it will load everytime you open. to run it type -vbarun then the macro name which we need to get from allen. you can put this into a button and add to a toolbar
*Daniel J. Altamura, R.A.
Message 5 of 13 (178 Views)

Re: Convert to Multileader

03-30-2007 11:44 AM in reply to: *Allen Johnson
I meant ask how to run it. I can load it also, but can't run the macro.

--
Daniel J. Altamura, R.A.
Altamura Architectural Consulting
and SoftWorx, Autodesk Authorized Developer
http://partnerproducts.autodesk.com/popups/company.asp?rdid=2139
-----------------------------------------------------------------------


wrote in message news:5536757@discussion.autodesk.com...
i loaded it but can't seem to run it. what is the macro name?daniel put the
file in your search path then type vbaload find the file and load it. then
add this to your startup suite so it will load everytime you open. to run it
type -vbarun then the macro name which we need to get from allen. you can
put this into a button and add to a toolbar
*Allen Johnson
Message 6 of 13 (178 Views)

Re: Convert to Multileader

03-30-2007 12:19 PM in reply to: *Allen Johnson
I've been working on it but found some issues. See the autodesk.autocad.customization.vba newgroup topic "Multileader code appears
to create a corrupt drawing"

http://discussion.autodesk.com/thread.jspa?threadID=557485
Distinguished Contributor
eloquintet
Posts: 156
Registered: ‎07-21-2005
Message 7 of 13 (178 Views)

Re: Convert to Multileader

03-30-2007 12:40 PM in reply to: *Allen Johnson
the macro is usually the text after the sub like updateattribute would be the macro in this example

Public Sub Updateattribute()

i see a cml and makemleader but neither work hmmmm
*Jeff Mishler
Message 8 of 13 (178 Views)

Re: Convert to Multileader

03-30-2007 01:16 PM in reply to: *Allen Johnson
CML works, but it expects there to be a previous selection set. Just select
the group containing the leader & text, initiate the Move command, and ESC.
Now try to run CML.


wrote in message news:5536886@discussion.autodesk.com...
the macro is usually the text after the sub like updateattribute would be
the macro in this example

Public Sub Updateattribute()

i see a cml and makemleader but neither work hmmmm
*Allen Johnson
Message 9 of 13 (178 Views)

Re: Convert to Multileader

03-30-2007 02:31 PM in reply to: *Allen Johnson
Or use the select command to select the objects, then start CML.


"Jeff Mishler" wrote in message news:5536935@discussion.autodesk.com...
CML works, but it expects there to be a previous selection set. Just select
the group containing the leader & text, initiate the Move command, and ESC.
Now try to run CML.


wrote in message news:5536886@discussion.autodesk.com...
the macro is usually the text after the sub like updateattribute would be
the macro in this example

Public Sub Updateattribute()

i see a cml and makemleader but neither work hmmmm
*Allen Johnson
Message 10 of 13 (178 Views)

Re: Convert to Multileader

03-30-2007 02:40 PM in reply to: *Allen Johnson
This is what I'm using. It assumes that you have group selection on and that you define the "VBAPath" variable as the path to the
dvb file.

(defun C:MM ()
(command "select" "si" pause)
(vl-vbarun (strcat VBAPath "ConvertMleader.dvb!modCML.CML"))
(princ)

)
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.