I used InsertReferencePoint to insert 100 points in a 3D sketch - how to delete them - Please help !
try getting all features with "RefPoint" type (swFeat.GetTypeName = "RefPoint") select them and apply swModel.EditDeleteHere is an example: #CODE|Remove Features With Specific TypeName Hope this helpsRegards
You should be able to RMB the point and delete it.
I need VBA code Sir !
You might be able to set your filter to "points" and utilize "window selection".
I needed VBA Macro code sir !
Excel's web site might help you with writing the code.
Thanks a Ton It deleted all the points.
Only one problem - That it also deletes my 3D spline on which i have these points !
Hi Pulkit,The macro selects all points and deletes them. If there were other elements were pre selected then they would be deleted as well.It is safer to use: "swModel.ClearSelection2 True" at the beginning of the method.
Thanks ... Viktor !
Worked like a charm
Thanks a ton !
Yes ...way suggested by Viktor Bovzdarenko is right one or you can use DeleteSelection2 Method (IModelDocExtension) method .This method does not ask the user to confirm the deletion while method EditDelete Method (IModelDoc2) ask the user to confirm the deletion.
Thanks Akshay It deleted all the points when i used Viktor's Macro.
Only one problem - That it also deletes my 3D spline on which i have these points along with the 3D points which i inserted using insertreferrencepoints command
Before calling DeleteSelection2 Method (IModelDocExtension) , call method DeleteRelation Method (ISketchRelationManager) on selected points.
2016 SOLIDWORKS API Help - DeleteRelation Method (ISketchRelationManager)
hope this helps you.
My Bad ... It worked now .. I was selecting the spline manually ...
Thanks a ton guys .. u rock !
Retrieving data ...