Quantcast
Channel: 3DVision Blog
Viewing all articles
Browse latest Browse all 108

LoadDraftingStandard

$
0
0

SolidWorks Tips Tricks News | 3DVision Technologies Blog - SolidWorks 3D Design engineering solutions, including 3DCAD, Simulation, FEA, Data Management, Plastics, Electrical, Rapid Prototyping, Mechanical Design and more.

Imagine you received a set of SolidWorks drawings from an outside source. Unfortunately the people who created the drawings didn’t use your drafting standards. [The peasants!]

You may be tempted to create a little macro that goes through every one of your settings, one at a time, setting user preference toggles, integer values, blah, blah… Not a bad idea, but doing this is slow, tedious and you’ll run into some “undocumented issues” that my lawyers don’t want me to get into. So instead, open your drawing template and save your standards out as a file.

ExternalFile

Now in your API code, after you open the drawing, use the “Drawing.Extension.LoadDraftingStandard” method to load the standards file you created. This one line of code can then take place of the possible hundreds of lines of codes setting the preferences one at a time.

Jeff Sweeney

CSWE Engineering Data Specialist 3DVision Technologies

The post LoadDraftingStandard appeared first on SolidWorks Tips Tricks News | 3DVision Technologies Blog.


Viewing all articles
Browse latest Browse all 108

Trending Articles