Initial Commit of the PDM project (ready for DWS migration)

This commit is contained in:
will
2026-04-20 08:42:38 -05:00
commit dda7b664e7
2721 changed files with 442772 additions and 0 deletions

View File

@@ -0,0 +1,394 @@
<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
<html>
<!--(==============================================================)-->
<!--(Document created with RoboEditor. )============================-->
<!--(==============================================================)-->
<head>
<title>Bitmasks</title>
<!--(Meta)==========================================================-->
<meta http-equiv=content-type content="text/html; charset=windows-1252">
<meta NAME=MS-HKWD CONTENT=Bitmasks>
<meta name=generator content="RoboHELP by eHelp Corporation - www.ehelp.com">
<meta name=generator-major-version content=0.1>
<meta name=generator-minor-version content=1>
<meta name=filetype content=kadov>
<meta name=filetype-version content=1>
<meta name=page-count content=1>
<meta name=layout-height content=409>
<meta name=layout-width content=534>
<!--(Links)=========================================================-->
<link rel="StyleSheet" href="ApiHelp.css">
</head>
<!--(Body)==========================================================-->
<body>
<h1><span style="font-weight: normal; font-size: 7.5pt;">SOLIDWORKS PDM Professional API Help</span></font></h1>
<h1>Bitmasks</h1>
<p>Bitmasks are essentially bitwise comparisons. Understanding how bitmasks
work might make more sense if you think of their binary representation.</p>
<p>The binary representation of the decimal number 1 is 0001, 2 is 0010,
4 is 0100, etc. </p>
<p>Think of each bit as a switch. For example, the decimal number 5 in
binary is 0101. The third bit (0100) is on and the first bit (0001) is
on. So, 0101 = 0100 + 0001. </p>
<p><!--kadov_tag{{<spaces>}}-->&nbsp;<!--kadov_tag{{</spaces>}}-->If a
SOLIDWORKS PDM Professional enumerator has a bitmask like the following:</p>
<p><!--kadov_tag{{<spaces>}}-->&nbsp;<!--kadov_tag{{</spaces>}}--></p>
<!--(Table)=========================================================-->
<table x-use-null-cells
style="x-cell-content-align: top;
width: 42.005%;
border-spacing: 0px;
border-spacing: 0px;"
cellspacing=0
width=42.005%>
<col style="width: 31.63%;">
<col style="width: 37.027%;">
<col style="width: 31.344%;">
<tr style="x-cell-content-align: top;"
valign=top>
<td style="width: 31.63%;
padding-right: 10px;
padding-left: 10px;
background-color: #dbdbdb;
border-bottom-style: None;
border-right-style: None;
border-left-style: None;
border-top-style: None;"
bgcolor=#DBDBDB
width=31.63%>
<p style="font-weight: bold; text-align: center;"
align=center>Decimal</td>
<td style="width: 37.027%;
padding-right: 10px;
padding-left: 10px;
background-color: #dbdbdb;
border-bottom-style: None;
border-right-style: None;
border-top-style: None;"
bgcolor=#DBDBDB
width=37.027%>
<p style="font-weight: bold; text-align: center;"
align=center>Option</td>
<td style="width: 31.344%;
padding-right: 10px;
padding-left: 10px;
background-color: #dbdbdb;
border-bottom-style: None;
border-top-style: None;
border-right-style: None;"
bgcolor=#DBDBDB
width=31.344%>
<p style="font-weight: bold; text-align: center;"
align=center>Binary</td></tr>
<tr style="x-cell-content-align: top;"
valign=top>
<td style="width: 31.63%;
padding-right: 10px;
padding-left: 10px;
border-bottom-style: None;
border-right-style: None;
border-left-style: None;"
width=31.63%>
<p style="text-align: center;"
align=center>1</td>
<td style="width: 37.027%;
padding-right: 10px;
padding-left: 10px;
border-bottom-style: None;
border-right-style: None;"
width=37.027%>
<p style="text-align: center;"
align=center>OptionA</td>
<td style="width: 31.344%;
padding-right: 10px;
padding-left: 10px;
border-bottom-style: None;
border-right-style: None;"
width=31.344%>
<p style="text-align: center;"
align=center>0001</td></tr>
<tr style="x-cell-content-align: top;"
valign=top>
<td colspan=1
rowspan=1
style="width: 31.63%;
padding-right: 10px;
padding-left: 10px;
border-bottom-style: None;
border-right-style: None;
border-left-style: None;"
width=31.63%>
<p style="text-align: center;"
align=center>2</td>
<td colspan=1
rowspan=1
style="width: 37.027%;
padding-right: 10px;
padding-left: 10px;
border-bottom-style: None;
border-right-style: None;"
width=37.027%>
<p style="text-align: center;"
align=center>OptionB</td>
<td colspan=1
rowspan=1
style="width: 31.344%;
padding-right: 10px;
padding-left: 10px;
border-bottom-style: None;
border-right-style: None;"
width=31.344%>
<p style="text-align: center;"
align=center>0010</td></tr>
<tr style="x-cell-content-align: top;"
valign=top>
<td colspan=1
rowspan=1
style="width: 31.63%;
padding-right: 10px;
padding-left: 10px;
border-bottom-style: None;
border-right-style: None;
border-left-style: None;"
width=31.63%>
<p style="text-align: center;"
align=center>4</td>
<td colspan=1
rowspan=1
style="width: 37.027%;
padding-right: 10px;
padding-left: 10px;
border-bottom-style: None;
border-right-style: None;"
width=37.027%>
<p style="text-align: center;"
align=center>OptionC</td>
<td colspan=1
rowspan=1
style="width: 31.344%;
padding-right: 10px;
padding-left: 10px;
border-bottom-style: None;
border-right-style: None;"
width=31.344%>
<p style="text-align: center;"
align=center>0100</td></tr>
<tr style="x-cell-content-align: top;"
valign=top>
<td colspan=1
rowspan=1
style="width: 31.63%;
padding-right: 10px;
padding-left: 10px;
border-right-style: None;
border-left-style: None;
border-bottom-style: None;"
width=31.63%>
<p style="text-align: center;"
align=center>8</td>
<td colspan=1
rowspan=1
style="width: 37.027%;
padding-right: 10px;
padding-left: 10px;
border-right-style: None;
border-bottom-style: None;"
width=37.027%>
<p style="text-align: center;"
align=center>OptionD</td>
<td colspan=1
rowspan=1
style="width: 31.344%;
padding-right: 10px;
padding-left: 10px;
border-bottom-style: None;
border-right-style: None;"
width=31.344%>
<p style="text-align: center;"
align=center>1000</td></tr>
</table>
<p><!--kadov_tag{{<spaces>}}-->&nbsp;<!--kadov_tag{{</spaces>}}--></p>
<p>and you want OptionA and OptionC on, then add their two values together:</p>
<p><!--kadov_tag{{<spaces>}}-->&nbsp;<!--kadov_tag{{</spaces>}}--></p>
<!--(Table)=========================================================-->
<table x-use-null-cells
style="x-cell-content-align: top;
width: 42.005%;
border-spacing: 0px;
border-spacing: 0px;"
cellspacing=0
width=42.005%>
<col style="width: 31.63%;">
<col style="width: 37.027%;">
<col style="width: 31.344%;">
<tr style="x-cell-content-align: top;"
valign=top>
<td style="width: 31.63%;
padding-right: 10px;
padding-left: 10px;
background-color: #dbdbdb;
border-bottom-style: None;
border-right-style: None;
border-left-style: None;
border-top-style: None;"
bgcolor=#DBDBDB
width=31.63%>
<p style="font-weight: bold; text-align: center;"
align=center>Decimal</td>
<td style="width: 37.027%;
padding-right: 10px;
padding-left: 10px;
background-color: #dbdbdb;
border-bottom-style: None;
border-right-style: None;
border-top-style: None;"
bgcolor=#DBDBDB
width=37.027%>
<p style="font-weight: bold; text-align: center;"
align=center>Option</td>
<td style="width: 31.344%;
padding-right: 10px;
padding-left: 10px;
background-color: #dbdbdb;
border-bottom-style: None;
border-top-style: None;
border-right-style: None;"
bgcolor=#DBDBDB
width=31.344%>
<p style="font-weight: bold; text-align: center;"
align=center>Binary</td></tr>
<tr style="x-cell-content-align: top;"
valign=top>
<td style="width: 31.63%;
padding-right: 10px;
padding-left: 10px;
border-bottom-style: None;
border-right-style: None;
border-left-style: None;"
width=31.63%>
<p style="text-align: center;"
align=center><!--kadov_tag{{<spaces>}}-->&nbsp;&nbsp;&nbsp;<!--kadov_tag{{</spaces>}}-->1</td>
<td style="width: 37.027%;
padding-right: 10px;
padding-left: 10px;
border-bottom-style: None;
border-right-style: None;"
width=37.027%>
<p style="text-align: center;"
align=center>OptionA</td>
<td style="width: 31.344%;
padding-right: 10px;
padding-left: 10px;
border-bottom-style: None;
border-right-style: None;"
width=31.344%>
<p style="text-align: center;"
align=center>0001</td></tr>
<tr style="x-cell-content-align: top;"
valign=top>
<td colspan=1
rowspan=1
style="width: 31.63%;
padding-right: 10px;
padding-left: 10px;
border-bottom-style: None;
border-right-style: None;
border-left-style: None;"
width=31.63%>
<p style="text-align: center;"
align=center>+ 4</td>
<td colspan=1
rowspan=1
style="width: 37.027%;
padding-right: 10px;
padding-left: 10px;
border-bottom-style: None;
border-right-style: None;"
width=37.027%>
<p style="text-align: center;"
align=center>OptionC</td>
<td colspan=1
rowspan=1
style="width: 31.344%;
padding-right: 10px;
padding-left: 10px;
border-bottom-style: None;
border-right-style: None;"
width=31.344%>
<p style="text-align: center;"
align=center>0100</td></tr>
<tr style="x-cell-content-align: top;"
valign=top>
<td colspan=1
rowspan=1
style="width: 31.63%;
padding-right: 10px;
padding-left: 10px;
border-bottom-style: None;
border-right-style: None;
border-left-style: None;"
width=31.63%>
<p style="text-align: center;"
align=center>= 5</td>
<td colspan=1
rowspan=1
style="width: 37.027%;
padding-right: 10px;
padding-left: 10px;
border-bottom-style: None;
border-right-style: None;"
width=37.027%>
<p>&nbsp;</td>
<td colspan=1
rowspan=1
style="width: 31.344%;
padding-right: 10px;
padding-left: 10px;
border-bottom-style: None;
border-right-style: None;"
width=31.344%>
<p style="text-align: center;"
align=center>0101</td></tr>
</table>
<p><!--kadov_tag{{<spaces>}}-->&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--kadov_tag{{</spaces>}}--></p>
<p><!--kadov_tag{{<spaces>}}-->&nbsp;<!--kadov_tag{{</spaces>}}--></p>
</body>
</html>