I’m fairly VBA centric, but this one has me flummoxed.
I’ve got a butt load of old 3D dwg’s that I got from KraftMaid years ago, which are cabinet models.
Way back yonder, I used SketchUp to design a kitchen, but I’m doing a new kitchen and want to use Swx.
I can’t for the life of me figure out how to import a dwg into a part instead of a drawing or a sketch via the API.
I’ve got a nice macro for importing folders of step files and saving to SolidWork parts that I was leveraging for this, but SolidWorks is insistent on importing the dwg’s either into drawings or sketches.
I can do this manually. I’ve tried recording a macro doing it and that’s useless as running it again imports the dwg as a drawing.
Does this help at all? I know it isn’t importing it the way you want, but it’s a start. It’s probably a matter of figuring out how to set the arguments.
I was going to suggest the same thing, but I tried it out and it puts all the entities into a sketch for any argument that applies to a part file. I’m not sure of a way to get it to convert the dxf into curve features.
Wow, just wow. Just for fun, I went over to the SolidWorks user forum to see if I could find anything there.
That’s friggen useless. No topic segregation so everything just get jammed together. The chances of finding anything are remote, and I suspect any message asking for assistance is going to get lost in the noise.
So, I filed a support request. That’s 2 in 2 days! I’m on a roll…