Skip to content

Solidworks API Part Drawing Automation #454

@dininon

Description

@dininon

I've attempted to write some macros that take a multi-body part, apply custom properties to the cut list items (Name, Thickness, Description) by identifying the features in the part and drawing from their dimensions and feature types and so on. I've then also attempted to write a second macro that requires you to select a view within a drawing (presumably a view of one of the multi bodied parts from above that has had the aforementioned script run on it and had custom properties set to the cut list items). This second macro will then place individual views of each unique body in the cut list on a sheet according to its type (Profile, Folding, or Weldment) and label each of those views with that cut list items Name, Description, and Quantity... I have succeeded to a degree, but cannot work out why what I've written works in some cases and not others. I think I've managed to observe that sometimes the array containing the Cut List is larger than the actual cut list but I can't figure out why. Any experts able to have a look at my very amatuer attempt of coding these macros and help me solve this?

This submission box wont allow me to insert an .swp file or I would have given you my files...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions