Cleaning up large assemblies from a STEP import

Programming and macros
User avatar
bentlybobcat
Posts: 64
Joined: Tue Sep 21, 2021 8:43 am
Answers: 0
x 3
x 48

Cleaning up large assemblies from a STEP import

Unread post by bentlybobcat »

More on the same trend as my previous pots.

Oftentimes, we get assemblies to import that are STEP files.

Depending on the original CAD system, some do just fine, but there are some where the parts all come in as surfaces, whether there is an error or not.

Typically running the repair gizmo will either, immediately convert the surface to a solid, or fix the error with the fix all command.

Again, I can parse the assembly tree easily enough, any thoughts on the best methodology to do the repair on every part in the tree?

thanks again
Bent
RichGergely
Posts: 190
Joined: Wed Apr 14, 2021 11:18 pm
Answers: 0
x 109
x 156

Re: Cleaning up large assemblies from a STEP import

Unread post by RichGergely »

Depends what CAD system they originate from and how they have exported them. I can get a STEP file from the same organisation from the same CAD system. One file imports fine and the other won't. I can give them a call and they rectify the export (other times I just fix it myself).

Systems that predominantly work on surfaces and layer systems is where you most likely will have problems -VERO, Rhino etc.

Don't even get me started on Catia files, often the actual problem is the design in Catia is poor with gaps and overlaps in the original file. No export, stitch or layer settings is ever going to fix. It's just poor surfacing by the user.
Jordan Brown
Posts: 26
Joined: Wed Jul 21, 2021 3:20 pm
Answers: 0
x 6
x 2

Re: Cleaning up large assemblies from a STEP import

Unread post by Jordan Brown »

If you are already stepping through the ASM using the api, then you should be able to open each part and then run the import diagnosis. The link to the method is below:

http://help.solidworks.com/2021/english ... Redirect=1

It looks like it should perform the operation on multiple import bodies (in the same part) all at once.
User avatar
bentlybobcat
Posts: 64
Joined: Tue Sep 21, 2021 8:43 am
Answers: 0
x 3
x 48

Re: Cleaning up large assemblies from a STEP import

Unread post by bentlybobcat »

Jordan Brown wrote: Fri Feb 25, 2022 11:26 am If you are already stepping through the ASM using the api, then you should be able to open each part and then run the import diagnosis. The link to the method is below:

http://help.solidworks.com/2021/english ... Redirect=1

It looks like it should perform the operation on multiple import bodies (in the same part) all at once.
Thanks,

I'll give that a shot.
Bent
Post Reply