Setting
Get/Set Methods
Return Value or <Value> or <OnFlag>
Comment
Paper margins - Top
ISldWorks::GetUserPreferenceDoubleValue(swUserPreferenceDoubleValue_e.swPageSetupPrinterTopMargin)
ISldWorks::SetUserPreferenceDoubleValue(swUserPreferenceDoubleValue_e.swPageSetupPrinterTopMargin, <Value>)
Double value in meters
Specifies width of left margin
Paper margins - Bottom
ISldWorks::GetUserPreferenceDoubleValue(swUserPreferenceDoubleValue_e.swPageSetupPrinterBottomMargin)
ISldWorks::SetUserPreferenceDoubleValue(swUserPreferenceDoubleValue_e.swPageSetupPrinterBottomMargin, <Value>)
Paper margins - Left
ISldWorks::GetUserPreferenceDoubleValue(swUserPreferenceDoubleValue_e.swPageSetupPrinterLeftMargin)
ISldWorks::SetUserPreferenceDoubleValue(swUserPreferenceDoubleValue_e.swPageSetupPrinterLeftMargin, <Value>)
Paper margins - Right
ISldWorks::GetUserPreferenceDoubleValue(swUserPreferenceDoubleValue_e.swPageSetupPrinterRightMargin)
ISldWorks::SetUserPreferenceDoubleValue(swUserPreferenceDoubleValue_e.swPageSetupPrinterRightMargin, <Value>)
Paper margins - Use printer's margins
ISldWorks::GetUserPreferenceToggle(swUserPreferenceToggle_e.swPageSetupPrinterUsePrinterMargin)
ISldWorks::SetUserPreferenceToggle(swUserPreferenceToggle_e.swPageSetupPrinterUsePrinterMargin, <OnFlag>)
Boolean value
Specifies whether to print document with printer's default margin values
Provide feedback on this topic
SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.
* Required
Thank you for your comments. We will contact you if we have questions regarding your feedback.
Sincerely,The SOLIDWORKS Documentation Team
Print Topic
Select the scope of content to print:
We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.
Web Help Content Version: API Help (English only) 2023 SP05 To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help. To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.