File StructureYou can define hole standards in .xml files with specific structures. Sample file structure for simple hole <?xml version="1.0" ?> <std:node name="S1_standard" xmlns:std="http://www.dsweb.com/std"> <std:node name="Units"> <std:node name="Length"> <std:strval name="Length">mm</std:strval> </std:node> <std:node name="Angle"> <std:strval name="Angle">deg</std:strval> </std:node> </std:node> <std:typedef name="SimpleHoleValues"> <std:strval name="Name">S1</std:strval> <std:floatval name="MainDiameter">5.</std:floatval> <std:floatval name="MainDepth">10.</std:floatval> <std:floatval name="BottomAngle">110.</std:floatval> <std:floatval name="ThreadDiameter">6.</std:floatval> <std:floatval name="ThreadDepth">8.</std:floatval> <std:floatval name="Pitch">1.</std:floatval> <std:strval name="ThreadDescription" >THD_S_01</std:strval> </std:typedef> <std:node name="SimpleHoleValues"> <std:typeval name="SimpleHoleValues"> <std:strval name="Name">S1</std:strval> <std:floatval name="MainDiameter">5.</std:floatval> <std:floatval name="MainDepth">10.</std:floatval> <std:floatval name="BottomAngle">105.</std:floatval> <std:floatval name="ThreadDiameter">6.</std:floatval> <std:floatval name="ThreadDepth">8.</std:floatval> <std:floatval name="Pitch">1.</std:floatval> <std:strval name="ThreadDescription" >THD_S_01</std:strval> </std:typeval> <std:typeval name="SimpleHoleValues"> <std:strval name="Name">STD_S_S2</std:strval> <std:floatval name="MainDiameter">6.</std:floatval> <std:floatval name="MainDepth">12.</std:floatval> <std:floatval name="BottomAngle">100.</std:floatval> <std:floatval name="ThreadDiameter">7.</std:floatval> <std:floatval name="ThreadDepth">10.</std:floatval> <std:floatval name="Pitch">1.05</std:floatval> <std:strval name="ThreadDescription" >THD_S_02</std:strval> </std:typeval> </std:node> </std:node> Sample file structure for tapered hole <?xml version="1.0" ?> <std:node name="T1_standard" xmlns:std="http://www.dsweb.com/std"> <std:node name="Units"> <std:node name="Length"> <std:strval name="Length">mm</std:strval> </std:node> <std:node name="Angle"> <std:strval name="Angle">deg</std:strval> </std:node> </std:node> <std:typedef name="TaperedHoleValues"> <std:strval name="Name">T1</std:strval> <std:floatval name="MainDiameter">5.0</std:floatval> <std:floatval name="MainDepth">10.</std:floatval> <std:floatval name="TaperedAngle">90.0</std:floatval> <std:intval name="AnchorPoint">0</std:intval> <std:floatval name="BottomAngle">110.0</std:floatval> <std:floatval name="ThreadDiameter">6.0</std:floatval> <std:floatval name="ThreadDepth">8.</std:floatval> <std:floatval name="Pitch">1.0</std:floatval> <std:strval name="ThreadDescription" >THD_T_01</std:strval> </std:typedef> <std:node name="TaperedHoleValues"> <std:typeval name="TaperedHoleValues"> <std:strval name="Name">T1</std:strval> <std:floatval name="MainDepth">10.</std:floatval> <std:floatval name="MainDiameter">5.0</std:floatval> <std:floatval name="TaperedAngle">90.0</std:floatval> <std:intval name="AnchorPoint">0</std:intval> <std:floatval name="BottomAngle">100.0</std:floatval> <std:floatval name="ThreadDiameter">6.0</std:floatval> <std:floatval name="ThreadDepth">8.</std:floatval> <std:floatval name="Pitch">1.0</std:floatval> <std:strval name="ThreadDescription" >THD_T_01</std:strval> </std:typeval> <std:typeval name="TaperedHoleValues"> <std:strval name="Name">STD_T_2</std:strval> <std:floatval name="MainDiameter">6.0</std:floatval> <std:floatval name="MainDepth">12.</std:floatval> <std:floatval name="TaperedAngle">85.0</std:floatval> <std:intval name="AnchorPoint">0</std:intval> <std:floatval name="BottomAngle">105.0</std:floatval> <std:floatval name="ThreadDiameter">7.0</std:floatval> <std:floatval name="ThreadDepth">10.</std:floatval> <std:floatval name="Pitch">1.05</std:floatval> <std:strval name="ThreadDescription" >THD_T_02</std:strval> </std:typeval> </std:node> </std:node> Sample file structure for counterbored hole <?xml version="1.0" ?> <std:node name="CB1_standard" xmlns:std="http://www.dsweb.com/std"> <std:node name="Units"> <std:node name="Length"> <std:strval name="Length">mm</std:strval> </std:node> <std:node name="Angle"> <std:strval name="Angle">deg</std:strval> </std:node> </std:node> <std:typedef name="CounterBoredHoleValues"> <std:strval name="Name">CB1</std:strval> <std:floatval name="MainDiameter">5.0</std:floatval> <std:floatval name="CounterBoredDiameter">10.0</std:floatval> <std:floatval name="CounterBoredDepth">5.0</std:floatval> <std:floatval name="BottomAngle">120.0</std:floatval> <std:floatval name="ThreadDiameter">6.0</std:floatval> <std:floatval name="Pitch">1.0</std:floatval> <std:strval name="ThreadDescription" >THD_CB_01</std:strval> </std:typedef> <std:node name="CounterBoredHoleValues"> <std:typeval name="CounterBoredHoleValues"> <std:strval name="Name">CB1</std:strval> <std:floatval name="MainDiameter">5.0</std:floatval> <std:floatval name="CounterBoredDiameter">10.0</std:floatval> <std:floatval name="CounterBoredDepth">5.0</std:floatval> <std:floatval name="BottomAngle">115.0</std:floatval> <std:floatval name="ThreadDiameter">6.0</std:floatval> <std:floatval name="Pitch">1.0</std:floatval> <std:strval name="ThreadDescription" >THD_CB_01</std:strval> </std:typeval> <std:typeval name="CounterBoredHoleValues"> <std:strval name="Name">STD_CB_2</std:strval> <std:floatval name="MainDiameter">6.0</std:floatval> <std:floatval name="MainDepth">15.</std:floatval> <std:floatval name="CounterBoredDiameter">11.0</std:floatval> <std:floatval name="CounterBoredDepth">5.0</std:floatval> <std:floatval name="BottomAngle">110.0</std:floatval> <std:floatval name="ThreadDiameter">7.0</std:floatval> <std:floatval name="ThreadDepth">10.</std:floatval> <std:floatval name="Pitch">1.05</std:floatval> <std:strval name="ThreadDescription" >THD_CB_02</std:strval> </std:typeval> </std:node> </std:node> Sample file structure for countersunk hole <?xml version="1.0" ?> <std:node name="CS1_standard" xmlns:std="http://www.dsweb.com/std"> <std:node name="Units"> <std:node name="Length"> <std:strval name="Length">mm</std:strval> </std:node> <std:node name="Angle"> <std:strval name="Angle">deg</std:strval> </std:node> </std:node> <std:typedef name="CounterSunkHoleValues"> <std:strval name="Name">CS1</std:strval> <std:floatval name="MainDiameter">5.0</std:floatval> <std:intval name="Mode">0</std:intval> <std:floatval name="CounterSunkDepth">5.0</std:floatval> <std:floatval name="CounterSunkAngle">90.0</std:floatval> <std:floatval name="CounterSunkDiameter">0.0</std:floatval> <std:floatval name="BottomAngle">120.0</std:floatval> <std:floatval name="ThreadDiameter">6.0</std:floatval> <std:floatval name="Pitch">1.0</std:floatval> <std:strval name="ThreadDescription" >THD_CS_1</std:strval> </std:typedef> <std:node name="CounterSunkHoleValues"> <std:typeval name="CounterSunkHoleValues"> <std:strval name="Name">CS1</std:strval> <std:floatval name="MainDiameter">5.0</std:floatval> <std:intval name="Mode">0</std:intval> <std:floatval name="CounterSunkDepth">5.0</std:floatval> <std:floatval name="CounterSunkAngle">90.0</std:floatval> <std:floatval name="CounterSunkDiameter">0.0</std:floatval> <std:floatval name="BottomAngle">120.0</std:floatval> <std:floatval name="ThreadDiameter">6.0</std:floatval> <std:floatval name="Pitch">1.0</std:floatval> <std:strval name="ThreadDescription" >THD_CS_1</std:strval> </std:typeval> <std:typeval name="CounterSunkHoleValues"> <std:strval name="Name">STD_CS_2</std:strval> <std:floatval name="MainDiameter">6.0</std:floatval> <std:floatval name="MainDepth">12.</std:floatval> <std:intval name="Mode">0</std:intval> <std:floatval name="CounterSunkDepth">6.0</std:floatval> <std:floatval name="CounterSunkAngle">85.0</std:floatval> <std:floatval name="CounterSunkDiameter">0.0</std:floatval> <std:floatval name="BottomAngle">115.0</std:floatval> <std:floatval name="ThreadDiameter">7.0</std:floatval> <std:floatval name="ThreadDepth">10.</std:floatval> <std:floatval name="Pitch">1.05</std:floatval> <std:strval name="ThreadDescription" >THD_CS_2</std:strval> </std:typeval> </std:node> </std:node> Sample file structure for counterdrilled hole <?xml version="1.0" ?> <std:node name="CD1_standard" xmlns:std="http://www.dsweb.com/std"> <std:node name="Units"> <std:node name="Length"> <std:strval name="Length">mm</std:strval> </std:node> <std:node name="Angle"> <std:strval name="Angle">deg</std:strval> </std:node> </std:node> <std:typedef name="CounterDrilledHoleValues"> <std:strval name="Name">CD1</std:strval> <std:floatval name="MainDiameter">5.0</std:floatval> <std:intval name="Mode">0</std:intval> <std:floatval name="CounterDrilledDiameter">10.0</std:floatval> <std:floatval name="CounterDrilledDepth">5.0</std:floatval> <std:floatval name="CounterDrilledAngle">90.0</std:floatval> <std:floatval name="CounterSunkDiameter">0.0</std:floatval> <std:floatval name="BottomAngle">120.0</std:floatval> <std:floatval name="ThreadDiameter">6.0</std:floatval> <std:floatval name="Pitch">1.0</std:floatval> <std:strval name="ThreadDescription" >THD_CD_1</std:strval> </std:typedef> <std:node name="CounterDrilledHoleValues"> <std:typeval name="CounterDrilledHoleValues"> <std:strval name="Name">CD1</std:strval> <std:floatval name="MainDiameter">5.0</std:floatval> <std:intval name="Mode">0</std:intval> <std:floatval name="CounterDrilledDiameter">10.0</std:floatval> <std:floatval name="CounterDrilledDepth">5.0</std:floatval> <std:floatval name="CounterDrilledAngle">90.0</std:floatval> <std:floatval name="CounterSunkDiameter">0.0</std:floatval> <std:floatval name="BottomAngle">120.0</std:floatval> <std:floatval name="ThreadDiameter">6.0</std:floatval> <std:floatval name="Pitch">1.0</std:floatval> <std:strval name="ThreadDescription" >THD_CD_1</std:strval> </std:typeval> <std:typeval name="CounterDrilledHoleValues"> <std:strval name="Name">STD_CD_2</std:strval> <std:floatval name="MainDiameter">6.0</std:floatval> <std:floatval name="MainDepth">12.</std:floatval> <std:floatval name="CounterDrilledDiameter">11.0</std:floatval> <std:floatval name="CounterDrilledDepth">5.0</std:floatval> <std:floatval name="CounterDrilledAngle">85.0</std:floatval> <std:floatval name="BottomAngle">115.0</std:floatval> <std:floatval name="ThreadDiameter">7.0</std:floatval> <std:floatval name="ThreadDepth">10.</std:floatval> <std:floatval name="Pitch">1.05</std:floatval> <std:strval name="ThreadDescription" >THD_CD_2</std:strval> </std:typeval> </std:node> </std:node> Hole Standard ParametersDifferent parameters are available for each hole type. Some parameters are optional. Simple hole
Tapered hole
CounterBored hole
CounterSunk hole
CounterDrilled hole
Notes:
Location of Hole Standards FilesYou must store hole standards .xml files in separate directories under the following directory. PartDesignFeature\CNext\resources\standard You must create the following directories under the standard directory.
You can also mention norms related to the hole, such as, ISO, ASME, and ANSI, in the .xml file. Set the environment variable as follows: set CATCollectionStandard = dir1\xxx\yyy Name of Hole StandardYou can name the standards file as required. The name of the standard is the name of the source file. Description of Hole StandardYou must provide a name to only one description. |