Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:

  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

set points coincident

mlml Member Posts: 53 PRO
edited July 2016 in Community Support
while not satisfied with the dxf import: https://forum.onshape.com/discussion/4356/imported-dxf-problems#latest
i would like to try it with a featurescript solution: https://cad.onshape.com/documents/150b4b8582755bae310054ab/w/e7f86ea4d976b93e892239e1/e/ae4e6be500f0024054ffe3f8

first, why will the sketch entities disappears after closing the box - the script does not anything?

would be nice if anyone could give me some hints for the questions in the action part. could not find a good entry point.
// get start and end point coordinates
// calculate the distances: start1 - start2, start1 - end2, end1 - start2, end1 - end2
// if one is smaller than range
// set them coincident on the sketch

thanks in advance

ps: never get a category filter to select - even now in edit mode - so it is at the wrong place. sorry for that
Tagged:

Answers

  • dave_cowdendave_cowden Member, Developers Posts: 445 ✭✭✭
    @ml I've tackled this problem already-- and I've got some cool tools that ease the pain. PM me and we can talk more about what you're trying to do.
    I ran into this problem importing 1300 or so AISC drawings, and 1000k 8020 DXF drawings ( many of which were riddled with issues).  Now they are all clean, as you can see in these two featurescripts:

    https://cad.onshape.com/documents/ccf713ca7463aeb3cbebce26/w/98577b0c5518f6fa1d06d69b/e/05fed5e3fd0d0ef69021b468
    https://cad.onshape.com/documents/b66d1ff63684957c167272d8/w/2ac42f22fbfa9366e2f4df35/e/33b8950d87918aefcb267a4f

    I can help you as well with your project.

  • mlml Member Posts: 53 PRO
    @dave_cowden thank you for your replay.
    in the meantime i was able with a featurescript to detect the points to set coincident - see original link above to the document.
    now i need an input how to set them coincident in featurescript.

    or, a featurescript that do this and allready exists. importing a dxf into a new sketch would also be fine.

    are you willing to share yours, or a stripped version?

    thanks

  • dave_cowdendave_cowden Member, Developers Posts: 445 ✭✭✭
    @ml my code isn't Featurescript, it's actually python that generates clean and compact  Featurescript by parsing dxf files.

    If you are interested, PM me some sample drawings, and I will convert them and you can see how you like them.

    The input is a bunch of dxf files, the output is a Featurescript that allows you to choose one of them by name and use it to extrude or cut or whatever. 




Sign In or Register to comment.