
This routine assigns a department to all blocks within a polyline in the drawing.
The routine goes through the following process:
- The user is first prompted to select a department from a pop-up window.The list of departments is populated by data held in the IconSystem.
- Once a department is selected then the user will be prompted to select a polyline .
- Once a polyline is selected each block within the polyline will then be iterated through and the corresponding ICONSYSTEMBLOCKLOCATION attribute value will be set to the value of the selected department. If the attribute does not exist on the block it will be created and populated.
Note: This routine will not work with blocks that are on 'Off', 'Frozen' or 'Locked' layers.
19/11/18: Initial release.