US$0.00
0

Category: macros

How to Export Flat Patterns with PDMPublisher

With PDMPublisher, exporting flat patterns from a top-level SOLIDWORKS assembly is completely automated and requires no manual steps.If you have ever wondered how to export flat patterns with PDMPublisher in a reliable, hands-off way, this workflow makes the entire process effortless. Step 1: Set the Export Location In this example, the export location is defined as the DXF subfolder inside the C:\Export directory. By enabling “Export file references individually,” both the main assembly and its referenced parts will be processed automatically. Step 2: Enable Flat Pattern Export Next, check the option “Export sheet metal part to 1:1 flat pattern DXF.”This ensures that only sheet metal components are exported as clean, accurate flat patterns that are ideal for manufacturing. Step 3: Define the Naming Convention File names are automatically built using the part number (or item name) followed by the revision.This keeps every exported file organized and traceable within your vault or output folder. Step 4: Apply Filters (Optional) To avoid processing every component, you can apply filename filters.In this case, the export was limited to parts named base_shape and control_panel, allowing targeted processing for selected models. Step 5: Publish Finally, click Publish.PDM Publisher will begin processing the top-level assembly and its references, loading them into memory, extracting each flat pattern, and saving them to the target folder automatically. Step 6: Review the Results Once complete, your DXF flat pattern files are ready for fabrication, organized, clean, and consistent.

Read More »

SolidWorks Macro to Rebuild Referenced Models in All Drawing Sheets

Description This SolidWorks macro to rebuild referenced models in all drawing sheets works by rebuilding all referenced models for each sheet in an active SOLIDWORKS drawing document. It validates the active document, iterates through every sheet, and for each one, ensures the referenced model views are refreshed. After completing the rebuild process, the macro closes the models to free up memory efficiently. System Requirements Pre-Conditions Post-Conditions VBA Macro Code Macro You can download the macro from here. Customization Need to modify the macro to meet specific requirements or integrate it with other processes? We provide custom macro development tailored to your needs. Contact us

Read More »

SOLIDWORKS Macro for Reloading Sheet Formats in Drawing Documents

Description The SolidWorks macro for reloading sheet formats in drawing documents automates the process of refreshing and standardizing sheet templates across all sheets in a SOLIDWORKS drawing. It iterates through each sheet, temporarily removes the current format, and then reloads the original template. This macro ensures every sheet is updated with the correct default format, rebuilding and saving the document automatically to simplify drawing maintenance and formatting consistency. System Requirements Pre-Conditions Post-Conditions VBA Macro Code Macro You can download the macro from here. Customization Need to modify the macro to meet specific requirements or integrate it with other processes? We provide custom macro development tailored to your needs. Contact us.

Read More »

SOLIDWORKS Macro to Set Layer and Draw Line in SolidWorks Drawing

Description This macro sets the specified layer as the current layer in the active SolidWorks drawing document and adds a sketched line on that layer. It automates the process of layer management and drawing creation, ensuring that all subsequent sketched entities are added to the specified layer. This is particularly useful for organizing different sketch entities in separate layers. A SolidWorks macro to set layer and draw line in SolidWorks drawing helps users to keep drawing elements structured without any repetitive manual steps. System Requirements Pre-Conditions Results VBA Macro Code Macro You can download the macro from here. Customization Need to modify the macro to meet specific requirements or integrate it with other processes? We provide custom macro development tailored to your needs. Contact us.

Read More »

SOLIDWORKS Macro to Align All Dimensions Automatically

Description This VBA macro automates selecting and arranging dimensions in SOLIDWORKS drawings. It loops through views, selects display dimensions, and auto-arranges them. System Requirements To run this VBA macro, ensure that your system meets the following requirements: Prerequisites In order for the macro to run as intended, the following condition must be satisfied: Steps to Set Up the Macro Open Your Drawing Load the Macro File (.swp) This SolidWorks macro to align all dimensions automatically ensures your dimension layout stays clean and readable without manual adjustments. Run the Macro VBA Macro Code Macro You can download the macro from here. Customization Need to modify the macro to meet specific requirements or integrate it with other processes? We provide custom macro development tailored to your needs. Contact us.

Read More »

SOLIDWORKS Macro to Programmatically Insert a Block into SolidWorks Drawing

Description A one-line function call to programmatically insert a block into SolidWorks drawing allows you to quickly place a block in the active document. This macro returns the SketchBlockInstance for the inserted block, enabling users to efficiently place and manage sketch blocks within a drawing. It is particularly useful for automating the placement of standardized blocks, reducing repetitive tasks. System Requirements Pre-Conditions Results VBA Macro Code Macro You can download the macro from here. Customization Need to modify the macro to meet specific requirements or integrate it with other processes? We provide custom macro development tailored to your needs. Contact us

Read More »
0
    0
    Your Cart
    Your cart is emptyReturn to Shop