McadLayerGroupMgr and MoveLayerGroupEntities problem
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
McadLayerGroupMgr and MoveLayerGroupEntities problem

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






Posted: Wed Mar 30, 2005 10:05 am    Post subject: McadLayerGroupMgr and MoveLayerGroupEntities problem Reply with quote

In Acad Mech 2005 SP1 running on winxp sp2.

I'm having a problem with the MoveLayerGroupEntities method in that I
get a compile error when I try to run code including the following:

Dim mCad As McadApplication
Set mCad =
ThisDrawing.Application.GetInterfaceObject("Mcad.Application")
' Layer Manager reference
Dim LayerMGR As McadLayerGroupMgr
Set LayerMGR = mCad.ActiveDocument.LayerGroupMgr
Dim RetVar As Boolean
RetVar = LayerMGR.MoveLayerGroupEntities("PART10", "PART1")

I get a "compile error" "Expected function or variable" with the error
highlighted on the MoveLayerGroupEntities method. I'm no trained vb pro
but have been through the help and syntax and think I've got it right.
Can anyone explain why this doesn't work.

Cheers

Mike

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
Powered by phpBB