Express tool Laymrg
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Express tool Laymrg

 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA
Author Message
Nate Hunter
Guest





Posted: Tue Jan 18, 2005 1:50 am    Post subject: Express tool Laymrg Reply with quote

How can I pass to the AutoCAD command line the laymrg. What I am doing
currently is:

'set a selection set before sending the next line.
ObjAcad.ActiveDocument.SendCommand ("laymrg") & vbCr ' Start the Layer Merge
Express tool
ObjAcad.ActiveDocument.SendCommand ("l") & vbCr ' Select the selection set
passed in before
ObjAcad.ActiveDocument.SendCommand ("oldname") 'Set the old name to merge
from
ObjAcad.ActiveDocument.SendCommand ("newname") 'Set the newname to merge to


This process does not work. When I pass the laymrg to the command line
AutoCAD does not allow me to pass the next line. It only will pass if I
physically type it in.

My goal is to be able to take old layers and convert them to our new company
standards. I know I could probably use the Layer Translator that AutoCAD
provides but for all that I am doing this will not work.

Any Ideas??

Back to top
hendie
Guest





Posted: Tue Jan 18, 2005 2:30 am    Post subject: Re: Express tool Laymrg Reply with quote

It would be easier to create a selection set of all objects on the specified layer, then loop through each object setting the layer property as desired
Back to top
Nate Hunter
Guest





Posted: Tue Jan 18, 2005 2:54 am    Post subject: Re: Express tool Laymrg Reply with quote

thanks I will give it a try.


"hendie" <nospam@address.withheld> wrote in message
news:23378177.1105997457183.JavaMail.jive@jiveforum2.autodesk.com...
Quote:
It would be easier to create a selection set of all objects on the
specified layer, then loop through each object setting the layer property
as desired


Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Contact Us
Powered by phpBB