Has anyone had success in using WBlockCloneObjects() on polylines from an XREF?
Essentially I am copying polylines from an XREF and using WBlockCloneObjects() to place in the host database. This works fine. However, if I then manually explode the polylines, all of the subentities disappear.
If I try to programmatically explode the polylines I get eWrongDatabase.
What am I doing wrong?
I'm basically using the code from the Autodesk link below, just on polyline object.
http://docs.autodesk.com/ACD/2011/ESP/filesMDG/WS1a9193826455f5ff2566ffd511ff6f8c7ca-3f78.htmI'm using the PromptForNestedEntity which returns properly, then pass into this as newCloneColl
Using docLock As DocumentLock = destDoc.LockDocument
Using tr As Transaction = destDb.TransactionManager.StartTransaction()
Try
tr.TransactionManager.QueueForGraphicsFlush()
destDb.WblockCloneObjects(newCloneColl, destDb.CurrentSpaceId, idMap, DuplicateRecordCloning.Ignore, False)
tr.Commit()
Catch ex As System.Exception
destEd.WriteMessage(vbLf & "Error during NCOPY: " & ex.Message)
End Try
End Using
End Using
Again, this works fine until you explode the polyline object.