Tuesday 30 September 2014

Get User Login Name For Fields

If you want to use part of the users login name in a field in text, mtext or block attribute, you can use the following diesel expression

$(getvar,"loginname")

The expression below gets the first and last letters of the loginname and capitalises them, which is useful if the login name uses the first name and the first initial of the last name.

$(upper,$(substr,$(getvar,"loginname"),1,1)$(substr,$(getvar,"loginname"),$(strlen,$(getvar,"loginname")),1))

Tuesday 19 July 2011

Create Boundaries Around Object

If you need to draw a closed polyline around objects or inside objects, you can run the command "BOUNDARY".

Type "BOUNDARY" on the command line (without the quotes) in civil3d, and the dialogue below will come up.



You can choose to have polyline created around any closed internal obejcts by checking "Island Detection" at 2 (default behaviour).

You can choose to only work with certain objects by clicking the button at 3 and selecting the objects to work with.

This will mean that all other objects will be ignored when running this command.

Pick a point inside the area you want to create a polyline around by clicking the button at 1 and the polylines are created.



If you need to draw a polyline around the outside of a group of objects, you could draw a rough polyline that encloses the objects, run the "BOUNDARY" command and select inside your rought polyline with island detection on. This will wrap the object in a polyline, similar to shrinkwrap.

Friday 17 June 2011

Create a Corridor with a 90 Degree Bend

It is possible to create a corridor with a 90 degree bend without using outside curves.

A corridor with two 90 degree bends

Friday 6 May 2011