Managing Non Onshape "Parts" in Onshape?

S1mon
S1mon Member Posts: 4,648 PRO

I know about items, but what I'm mainly thinking of is cables at the moment. We have a tool which can create simple PDFs with a schematic drawing showing the two connectors (and their part numbers), the length of cable, and the pin outs.

Long term we hope to fully model the cabling using the wiring custom features, but that may be too much time for our early builds.

To start with, we may not have 3D models. Can we add a "thing" documented on a PDF to a BOM in Onshape? Do I need some sort of pseudo part to do this?

I have "Files" (e.g. a PDF) set up to take part numbers and revisions, but I can't figure out a way to add them to an assembly BOM. I can figure out how to add them to a release, but not to a BOM.

Simon Gatrall | Product Development, Engineering, Design, Onshape | Ex- IDEO, PCH, Unagi, Carbon | LinkedIn

Comments

  • RhettRobinson
    RhettRobinson Member Posts: 250 ✭✭✭✭

    Items is the first thing that came to mind, but then you can't connect the PDF to it because those live somewhere outside of the normal document structure. Pseudo part seems fairly straightforward, just decide on some sort of geometry to use or control it with display states. You could make an incredibly tiny cube with the properties connected haha.

  • wille_j
    wille_j Member Posts: 160 ✭✭✭

    Interesting! I believe the only way to add something to a BOM in Onshape is by inserting ‘a thing’ or an item.

    Items are useful as they can be associated with other ‘things’, yet a manual hassle to handle well metadata-wise from enterprise administration.

    Another approach I have heard of but haven't actually rolled out for anything at our enterprise (yet), is that composite parts can be empty, i.e. an item in an assembly without any geometry. It's hilarious, because you can still make it own mate connectors and all metadata and release management is exactly as if 'the thing' had a body. It's just not possible with the native composite part feature.

    Do I get an Onshape sticker for the shortest ever actually useful FeatureScript?

    FeatureScript 3095;
    import(path : "onshape/std/common.fs", version : "3095.0");
    
    annotation { "Feature Type Name" : "Empty composite" }
    export const myFeature = defineFeature(function(context is Context, id is Id, definition is map)
        precondition
        {
        }
        {
            opCreateCompositePart(context, id + "comp", { "bodies" : qOrigin(EntityType.BODY) });
        });
    

    This means all kinds of options opens up:

    • You can have this 'thing' configured, for may different PDF source documents. There's likely some database management to balance the PDF and 'the thing' release.
    • If you import PDFs as images instead, they can be inserted in the part studio sketches and released with 'the thing' - looking up a released thing in Onshape and you will see the image in the part studio. It may work with publications too, but I haven't used those in a while.
    • You can release the thing, and an associated drawing, on which you place the PDF. Which may be a bit convoluted.
    • We use this for internally designed PCBs and harnesses from other tools than Onshape; make 'the thing', which is usually a PCB studio or Eplan 3D harness import 'Not revision managed', and manually maintained at the Altium- or Eplan-revision and part number. It's a bit manual, but means release-here-and-release there is not needed. But could still be released both places if it's useful for checked-approved processes you may have internally.
  • S1mon
    S1mon Member Posts: 4,648 PRO

    Interesting. A composite that has no geometry seems to be part of the starting point for the actual wiring features.

    Perhaps that would also be the solution for the issues with PCB Studio blowing away metadata each time there's an updated import.

    Simon Gatrall | Product Development, Engineering, Design, Onshape | Ex- IDEO, PCH, Unagi, Carbon | LinkedIn

  • wille_j
    wille_j Member Posts: 160 ✭✭✭

    From memory credit is due to @NeilCooke for this composite trick 🎉

  • NeilCooke
    NeilCooke Moderator, Onshape Employees Posts: 6,128 image

    True, but you could have made your script even shorter by removing + "comp" 😂

    Senior Director, Technical Services, EMEA
  • wille_j
    wille_j Member Posts: 160 ✭✭✭

    Darn! 😭