News:

When posting a problem be sure to include which version you are using.  Give as much information as possible.  If the problem is with a specific file be sure to attache it to your post.

Main Menu

How do I add an Undo Record for copied graphics.

Started by nikkipollard, April 09, 2021, 02:58:22 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

nikkipollard

Does anyone know how to add an Undo record for a copied graphic
I have tried this  - (which works with new graphics )
It doesn't cause an error but it

Dim G1 As IMSIGX.Graphic
Dim G1 As IMSIGX.Graphic
Set G1 = TcDraw.Selection(0)
Dim UndoRec As IMSIGX.UndoRecord
Set UndoRec = TCdraw.AddUndoRecord("My copies")
Dim gCopy As IMSIGX.Graphic
Set gCopy = G1.Duplicate
gCopy.MoveRelative 100,0,0
UndoRec.AddGraphic Gcopy
UndoRec.Close

Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

nikkipollard

I got it to work .
I needed to add
gCopy.Draw after moving the copy
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h