PDA

View Full Version : unable to undo xref change


Hobbs
03-14-2007, 07:54 PM
Hello

I have a script that allows a user to select a max file, and then change the target xref objects to the objects in that file. Unfortunately, my undo on this process does not seem to work.

Here is a sample of my code where the problem is......is it possible to be able to get an undo here or no?

NewRef and NewProx are determined early in another function



for obj = 1 to SelectedXref.count by 1 do
(
with undo on
(
if Classof SelectedXref[obj] == XRefObject then
(--see if object is Xref object

SelectedXref[obj].proxyFileName = SelectedXref[obj].FileName = Xref_SwapRoll.NewXrefLoc.text

SelectedXref[obj].name = SelectedXref[obj].objectName = NewRef
SelectedXref[obj].proxyObjectName = NewProx

)

)

)

Hobbs
03-14-2007, 10:22 PM
Also...after i create the xref in code...while still in the code, how do i select the xref ?

CGTalk Moderation
03-14-2007, 10:22 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.