My problem is that I would like to display one or more geometric annotations/tolerancing of a 2D drawing, on its 3D model (which does not include any annotation) in the same location with an application in Visual Studio. Basically, redo the work of the Solidworks MBD.
Is this a windows form app? If not, you can create an addin for SW. See here http://help.solidworks.com/2016/english/api/sldworksapiprogguide/GettingStarted/Visual_Basic_.NET_Standalone_and_Add-in_Applications.htm?id=029ccc0478e841979a5b979518ea7642#Pg0
Well I think it will help to better understand the way it works and so we can make customizations. But by the way, it's a project I have to do, I don't have a say in it xD
Thank you very much for your link, SW's help helps a lot.
Certainly this kind of application takes a lot of time, I was just thinking that there might be people who were able to make small parts that I could assemble and adapt to the application, for example:
1- We open a drawing file (drawing)
2- Select the views and retrieve the annotations
3- We open the 3D model (the partdoc)
4- I'm not sure about it, but you may have to go through the faces and entities
5- For the transition of the annotations from the Plan to the 3D model, for the moment I have no idea
1- We open a drawing file: http://help.solidworks.com/2016/english/api/sldworksapi/save_file_as_pdf_example_vbnet.htm
2- Select the views and retrieve the annotations: http://help.solidworks.com/2016/english/api/sldworksapi/get_annotations_arrays_example_vbnet.htm
3- We open the 3D model (the partdoc): http://help.solidworks.com/2016/english/api/sldworksapi/solidworks.interop.sldworks~solidworks.interop.sldworks.isldworks~opendoc6.html
I apologize for the delay, I was traveling. So, for the project, I'm still struggling. I managed to make an application that connects with Solidworks and open the Drawing and 3D Model files.
Now I would like to be able to select an annotation of the drawing (for example a tolerance or reference) and make it appear on the 3D model. If you have any ideas:)