Notifications
Clear all
[Closed] unable to undo xref change
Mar 14, 2007 8: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 objectSelectedXref[obj].proxyFileName = SelectedXref[obj].FileName = Xref_SwapRoll.NewXrefLoc.text
SelectedXref[obj].name = SelectedXref[obj].objectName = NewRef SelectedXref[obj].proxyObjectName = NewProx )
)
)
1 Reply
Mar 14, 2007 8:54 pm
Also…after i create the xref in code…while still in the code, how do i select the xref ?