Autodesk Inc. is weighing an acquisition of rival engineering-software provider PTC Inc., according to people familiar with the matter. PTC rose as much as 19% on the news.