Display of the annotations of an MEP on the 3D model (VB.NET)!

Hello

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.

An example attached.

Thank you

 


2d-3d.png

Hello

Have you already started coding your app?

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

1 Like

Hi @remrem,

Yes, this is a win form app. The part of conexion with SW is done.

Hello

What I meant is that instead of creating an app that manipulates SW.

You can create an AddIn that will be integrated into the SW window. This is as a complement.

What is your experience of vb.net?

1 Like

Hello

I've never created a plugin and I'm not doing it.

Otherwise in vb.net I'm just starting out but I think I can get by a little bit. By the way, I'm also starting in CAD with solidworks!

>Basically, redo the work of the Solidworks MBD.

Just for a little clarification, why "Redo" something that exists?

1 Like

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

I think you don't really understand the work that is necessary and especially the amount of time you will have to devote to it.

I think you have to review the objectives with your superiors.

I still send you this link: http://help.solidworks.com/2016/english/api/sldworksapi/get_annotations_arrays_example_vbnet.htm

You will see how to manipulate annotations in a drawing as well as 3D elements

1 Like

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

Keep us informed of the progress of your project.

1 Like

Hello

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:)

Thank you