• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

lost relationships on sketches: select and delete automatically

  • Thread starter Thread starter gumfab
  • Start date Start date

gumfab

Guest
hello to everyone, I usually create a set with inside a master file consisting of "n" sketches. the sketches of this file will go to create the 3d models that will compose my equipment, with the convert entity command or hooking the remarkable points. This makes my job easier when I have to change. many times reuse of similar models to create new ones, within the same together. when I carry out this operation of course solidworks (other cads automatically hook), in the new model all relationships are interrupted and the “?”. even if the interruption of relations is clear, the relationship even if interrupted remains (I have never understood why) and to change it is forced to cancel them to proceed with the work. I ask you: did someone manage to create a macro, procedure or idea that selects me only the broken relationships and gates at once only, without opening the relationship panel every time? Thank you.2023-11-06 18_30_06-SOLIDWORKS 2022 SP5.0 - [Schizzo2 di ST769_P137 -in- ST769_10_20.sldasm _].webp
 
hello to everyone, I usually create a set with inside a master file consisting of "n" sketches. the sketches of this file will go to create the 3d models that will compose my equipment, with the convert entity command or hooking the remarkable points. This makes my job easier when I have to change. many times reuse of similar models to create new ones, within the same together. when I carry out this operation of course solidworks (other cads automatically hook), in the new model all relationships are interrupted and the “?”. even if the interruption of relations is clear, the relationship even if interrupted remains (I have never understood why) and to change it is forced to cancel them to proceed with the work. I ask you: did someone manage to create a macro, procedure or idea that selects me only the broken relationships and gates at once only, without opening the relationship panel every time? Thank you.View attachment 6959
hello, a macro ready not, but it is very simple to complete.
in this link get external references (vba) - 2020 - solidworks api helpfind a macro that by selecting a sketch returns external references and status for each entity of the sketch.
the status that is returned is a number, 4 is out of context, which is the "?1699341513782.webpIf during the data reading phase, you create an array of entities out of context, you could create a function that at the end deletes relationships out of context.

I hope the explanation is clear
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top