Smart-Utils menu

Smart Tools Menu

Smart Tools User Manual

Smart Tools for CAD (SmartUtils) is collection of Visual Lisp routines written based on users demand which makes the software customized for most of the clients. The software is updated and enhanced frequently as part of the support to the clients. 


Command: CX

This command is a  generic command used to check intersection between polylines, arcs or circles and flag the cross points. However, some presets were added to make checking clashes between utility corridors easier.
The groups are selected based on their layers. 
To run the command without the presets click [Advanced] or run the command CX2 instead.
 The first windows will show a list of the drawing layers on the left, plus two more lists on the right side, for the user to move the corridor layers to go to the top right list while the structures and centerlines to go to the right bottom list.
Then select on of the preset cases then click [GO]
The crossings will be listed in a dialog box and user can inspect them one by one or to flag them all on the drawing
To show the results dialog again use the command CXR

su_cx1.gif
  • Command: EF 
    This command will erase only CX flags, an filters out other objects to erase flag user can select either the text or the leader.
  • Command: CXZ
    This command will find and select zero length curves (lines, polylines, arcs).
  • Command: CXT
    This command will find invisible text objects, text becomes invisible if it has only spaces or nothing, the command will ask the user to delete or keep the collected objects.
  • Command: PLC
    his command will find and prompt user to close 2 types of open polylines, first is the clearly open poly where start and end points are away from each others, the second type is where start and end points are at the same coordinates but AutoCAD still consider it 'Open' and needs to be marked 'Closed' explicitly.
  • Command: PLOL?
    This command will create outline for polylines with variable width(s). body parts of pages.
  • Command: PLU
    This command will create one lwpolyline surrounding 2 closed lwpolylines.
  • Command: PLUALL
    Same as PLU for all objects in selected layers..
  • Command: PLX
    This command will subtract overlaping areas of lwpolylines with a polyline.
  • Command: PLD
    This command will convert all curve segments in polylines to small segments it works with ARC as well.
  • Command: H2PL
    This command will convert selected hatch objects to closed lwpolylines.
  • Command: EEX
    Delete objects with type not similar to the 1st selected object.
  • Command: LON
    This command is similar to AutoCADs command LayISO but it saves the layers status (ON/OFF) before running the command The layers can be restored with the command LONU which will undo only the layer status.
  • Command: LONU
    This command will restore the layers status (ON/OFF) before the last run of the command LON. Useful with LON to isolate layers, modify then undo only the layer status.
  • Command: LPUSH
    This command saves the status of the layers (ON/OFF Freeze Lock). User can do any number of layer ON/OFF commands then revert to the saved status with the command LPOP.
  • Command: LPOP
    This command will restore the saved status of the layers using the commands LON or LPUSH.
  • Command: HWT
    This command will try to create solid hatch for closed area with gap tolerance.
  • Command: J1
    Another command will try to join curves (Lines, Polylines and Arcs) that are connected end to end (chain connection) into one lwPolyline in one click.
  • Command: J2
    This command to connect the adjacent ends of two polylines to create one closed Polylines.
  • Command: BA
    Simple command to break polyline at intersection (or vertex) point.
  • Command: EE
    Delete objects with type similar to the 1st selected object.

. MOF (Multi-Offset or Rainbow Corridors)

This command will create utility corridors as closed polylines offset from centerline. The user can define a list of cross sections then apply the sections on the related center lines.
The sections can be saved to an XML file to be used/edited later.
To start run the command MOF, the first run will take the user into the Editor window.
- Click [New] to start new file
- Click [Edit] to start creating corridors references (labels and layers)
- Click [Add] and fill the dialog for each entry (Utility Name, Tag to be used later, The corridor layer and the center line layer)
- Click [OK]  then [Add ] to continue for the other Utilities.
- Click [OK] when finished to go back to the Edit/Select Dialog.

Now to define the cross sections click [Edit]
The Composer window will show:

su_mof1.png

To add corridor to the section click [Add] the Add corridor window will appear, Select one of available utilities form the Utility drop list, in this list you will see the Tag of the utility not the full name. now type the Width of the corridor.
Typically corridors are added right next to the previous corridors, if the corridor has gap then type the distance here, or leave it, it will be considered zero which is the typical case where no gaps between corridors.
Now click [Add to Left] or [Add to Right], if you add it to one side and you want to Copy it to the other side click [ <-- c] or [c-->] then it can be modified or deleted.
To move any corridor left or right use the [<<] [>>] keys and watch the section moving in the top window.
Before Clicking [ OK ] make sure the section has unique ID and Name, if not it will ask you to go back or replace the existing one.
In the first window select your section then select the cross section center line, then click anywhere to the right side of  the center line.
Next run of the command, the setting window will not show and the default section will the last used section.

su_mof2.png

. Command: LLL

This command is used to insert a label with Latitude Longitude LL84 in Degree Minute Second format for the drawings with UTM-WGS84 coordinate system. It will take care of the conversion from UTM to DMS automatically.
The dialog box appears when the command runs for the first time and later only when the user responds with Enter instead of picking the first point.

st_lll.png
  • ( 1 ) User must select correctly the UTM zone based on WGS84 and the hemisphere name (South or North).If the drawing coordinates are not related to UTM Projection,WSG84 Datum the command will not function correctly. in AutoCAD Civil 3D user can check the drawing zone using the command EDITDRAWINGSETTINGS -> Units and Zones and set the Datum to UTM, WSG84. However, some drawings may not have the zone settings set to any datum or coordinate system but the drawing X, Y readings are correct and they are referenced to a UTM Projection and WGS85 Datum, this is fine with the drawing but still in order for the command to do the conversion correctly the Zone must be specified.
  • ( 2 ) The format to display
  • ( 3 ) Prefix for the values and the number of decimal digits. User then will be asked to pick the fist point and last point.
  • if the user responded with Enter to the first point, the setting dialog will show
  • if the user responds with Enter to the second point, the point will be
  • calculated to look similar to the last lable.

. PLD (De-curve LWPolyline)

If an LWPolyline has one or more arcs it is possible to convert these arcs into small straight lines in different ways as follows:

  • Divide the arcs into number of segments of equal distance, the user should response to the prompt by typing a value. (e.g. 1.5 or 3 or 5.0). 
  • Divide the arcs into segments with maximum shift distance from the original curve line. To specify this distance type the distance value followed by s letter. The program will calculate the required segment lengths and angles (e.g. 0.3s or 1S).
  • Divide the arcs into segments that create an angle between them. To do so, Type the angle value in degrees followed by d letter (e.g. 11.25d or 25.5D)
  • To de-curve only one arc use the command PLD1
su_pld.gif

Command: 2DWG

With this command user can copy objects from the current drawing to other drawings without opening them.
If the current layout is The "Model" Space the objects will be copied to the "Model" Space,
if the current layout is one of the Paper Space layouts, the user will have the choice to copy to selected layouts that match a regular expression pattern and if no match found the user can type the name of an alternative layout to copy to. This layout will be created if not exists.

su_2dwgs.png

© Copyright 2021 Ai Productions - All Rights Reserved

Page was built with Mobirise