Rename a point for VBA extraction

Hello 

I am currently doing a macro to take the coordinates of points according to their name, the problem is that these names have not been forced (but generated automatically) it is possible that their name changes after some modification of the SW file (same problem encountered for the quotes, but the name is easily modifiable for them) 

So I would like to know if it is possible to change the name of a point?

Thank you.

You can use the Internal ID instead of the name with the GetID function

http://help.solidworks.com/2012/english/api/sldworksapi/SolidWorks.Interop.sldworks~SolidWorks.Interop.sldworks.ISketchPoint~GetID.html

See also the different methods for referencing an object

https://www.codestack.net/solidworks-api/document/tracking-objects/

 

 

2 Likes

I didn't know this codestack site, it seems very interesting, thank you!

 

Do you know if there is a place on Lynkoa where the sites where we can hunt for information are referenced? Whether it's modeling or macro.