<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Jari,<br>
<br>
it looks as though if FCShapeDef:SaveWithType does the same as
SaveNewWithType: it creates a <b>new</b> shape. Here is a code
snippet that does a simple load and save. The resulting shape has a
new item number instead of the old one. When I use :Save() instead
of :SaveWithType(...) the shape item number remains the same.<br>
<br>
local shape=finale.FCShapeDef()<br>
shape:Load(1)<br>
print(shape.ItemNo,shape.Type)<br>
shape:SaveWithType(shape.Type)<br>
print(shape.ItemNo,shape.Type)<br>
<br>
Prints:<br>
1 0<br>
127 0 -> I would expect 1 0 (127 is the new shape item no)<br>
<br>
Jan<br>
</body>
</html>