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
)
)
)
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
)
)
)
