Using Design automation API, I am extracting the data from 2d DWG file. Extracted data contains circles, lines, polylines and so.
Question: Objects in viewer API and data extracted from design API for the same 2d DWG file. So, can we able to identify those objects from both APIs by its object ID's? or is there any way to map viewer API object with design API output?
Yes, you can use object handles to uniquely identify objects in the viewer and design automation. It sounds like what you want to do is extract some data from the dwg using design automation and then show this data in the viewer. We have a sample that does this: https://github.com/Autodesk-Forge/design.automation-custom-data-viewer This sample actually shows how to generate viewer data on design automation too (thus avoiding having to process the dwg twice).