questions about named UCSs
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
questions about named UCSs

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





Posted: Mon Apr 04, 2005 1:02 pm    Post subject: questions about named UCSs Reply with quote

(I found a bug in my apps) I have this lines:

With ThisDrawing
Set oldUCS = .ActiveUCS
.SendCommand "UCS New View UCS New X 180" & vbCr
End With

At a certain point, the macro works no more. I noticed at long last that SendCommand creates and saves a new UCS, and names it, say, “_Active1” (if there is already an “_Active1”, it may be “_Active2” and so on).

Oddly, if I do NOT move or change the current UCS while drawing, I can call my macro whatever times I want, even having changed the point of viw: my macro always uses the same name, say, “_Active1” again. But if I move or change the current UCS, a recall to my macro makes SendCommand create a new saved UCS, say, “_Active2”

It seams to me that the previous UCS (I mean the current UCS *before* calling the macro) causes the macro creating (or not creating) a new named UCS.

With my current settings, when I reach 14 saved UCS, the line .SendCommand "UCS New View UCS New X 180" & vbCr makes the macro crash.

My prog ends restoring the current UCS:
ThisDrawing.ActiveUCS = oldUCS

So my questions:
why does SendCommand save that temporary UCS? How could I delete that temporary UCS?

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