To add a code to a subassembly created from a polyline
After you create a subassembly from a polyline, the next step is to add the necessary codes to the subassembly. 
- In the drawing, select the subassembly, then right-click it and click Add Code. 
- Enter the code and press Enter. Note:  The code you enter must be an existing code, or, if it is a new code, you must make sure that it gets  added to the codes file ( C3DStockSubassemblyScripts.codes).  
 
- Select a point, link, or shape on the subassembly. 
- To see the code, in Toolspace, on the Prospector tab, right-click the subassembly and select Properties. Click the Codes tab. The code added is displayed in the Name column under the point, link, or shape collections.