Hi,
I saw a change in the behaviour in Rhino 8 SR13.
I’m inserting a 3dm file as a block.
I insert 3 different files and when I repeat the insert for the first one, the order of the object ids is modified and the “last object” now is the “first one”.
Command: -_Insert
Name of block to insert ( File=No ): "Block_Pave_Black.3dm"
Insert as <Block> ( Block Group Objects ): _Block
Insertion point ( Rotate Scale ): 0,0,0
Scale factor <1.000> ( ReferencePoint XYZ Rotate ): 1
Rotation angle <0.000> ( AxisAlign ReferencePoint ): 0
Object Id: c53e387d-9daa-4a35-a363-2c54315e164e (THIS OBJECT END UP AS FIRST OBJECT)
Command: -_Insert
Name of block to insert ( File=No ): "Block_Pave_Orange.3dm"
Insert as <Block> ( Block Group Objects ): _Block
Insertion point ( Rotate Scale ): 0,0,0
Scale factor <1.000> ( ReferencePoint XYZ Rotate ): 1
Rotation angle <0.000> ( AxisAlign ReferencePoint ): 0
Object Id: 993e11e0-55a8-4fef-aedc-367f2e72e8ca
Object Id: c53e387d-9daa-4a35-a363-2c54315e164e
Command: -_Insert
Name of block to insert ( File=No ): "Block_Pave_Purple.3dm"
Insert as <Block> ( Block Group Objects ): _Block
Insertion point ( Rotate Scale ): 0,0,0
Scale factor <1.000> ( ReferencePoint XYZ Rotate ): 1
Rotation angle <0.000> ( AxisAlign ReferencePoint ): 0
Object Id: b5f4bbd8-8002-4b3c-976d-6b1e43490adc
Object Id: 993e11e0-55a8-4fef-aedc-367f2e72e8ca
Object Id: c53e387d-9daa-4a35-a363-2c54315e164e (HERE IS STILL THE LAST OBJECT AS IT IS EXPECTED)
Command: -_Insert
Name of block to insert ( File=No ): "Block_Pave_Black.3dm"
Insert as <Block> ( Block Group Objects ): _Block
Insertion point ( Rotate Scale ): 0,0,0
Scale factor <1.000> ( ReferencePoint XYZ Rotate ): 1
Rotation angle <0.000> ( AxisAlign ReferencePoint ): 0
Object Id: c53e387d-9daa-4a35-a363-2c54315e164e (HERE BECOME THE FIRST ONE)
Object Id: 49ccc9a1-1ba7-4edd-893c-049df24d73e4
Object Id: b5f4bbd8-8002-4b3c-976d-6b1e43490adc
Object Id: 993e11e0-55a8-4fef-aedc-367f2e72e8ca
I’m using this little script to print the ids in order:
Sub PrintAllObjectIds()
Dim currentObjectId
currentObjectId = Rhino.FirstObject()
While currentObjectId <> ""
Rhino.Print currentObjectId
currentObjectId = Rhino.NextObject(currentObjectId)
Wend
End Sub
Is this change in behaviour, expected? It is breaking my plugin.
Best regards,
Jordi